diff --git a/docs/lts/api-ref/ALL_META.TXT.json b/docs/lts/api-ref/ALL_META.TXT.json index 05a66dc43..4b0cf2474 100644 --- a/docs/lts/api-ref/ALL_META.TXT.json +++ b/docs/lts/api-ref/ALL_META.TXT.json @@ -1,301 +1,1784 @@ [ { - "uri":"lts_02_0001.html", + "dockw":"API Reference" + }, + { + "uri":"lts_api_0000.html", + "node_id":"lts_api_0000.xml", "product_code":"lts", "code":"1", "des":"Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform ", "doc_type":"api", "kw":"API Description,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"API Description", "githuburl":"" }, { - "uri":"lts_02_0002.html", + "uri":"lts_api_0002.html", + "node_id":"lts_api_0002.xml", "product_code":"lts", "code":"2", + "des":"LTS extension APIs allow you to use the basic LTS functions. For example, you can query API versions, create, query, and delete log groups or log streams.Table 1 describe", + "doc_type":"api", + "kw":"API Overview,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"API Overview", + "githuburl":"" + }, + { + "uri":"lts_api_0003.html", + "node_id":"lts_api_0003.xml", + "product_code":"lts", + "code":"3", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Calling APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Calling APIs", + "githuburl":"" + }, + { + "uri":"lts_api_0004.html", + "node_id":"lts_api_0004.xml", + "product_code":"lts", + "code":"4", + "des":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "doc_type":"api", + "kw":"Making an API Request,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Making an API Request", + "githuburl":"" + }, + { + "uri":"lts_api_0005.html", + "node_id":"lts_api_0005.xml", + "product_code":"lts", + "code":"5", + "des":"You can use either of the following authentication methods when calling APIs:Token-based authentication: Requests are authenticated using a token.AK/SK-based authenticati", + "doc_type":"api", + "kw":"Authentication,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Authentication", + "githuburl":"" + }, + { + "uri":"lts_api_0007.html", + "node_id":"lts_api_0007.xml", + "product_code":"lts", + "code":"6", + "des":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", + "doc_type":"api", + "kw":"Response,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Response", + "githuburl":"" + }, + { + "uri":"lts_api_0010.html", + "node_id":"lts_api_0010.xml", + "product_code":"lts", + "code":"7", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"APIs", + "githuburl":"" + }, + { + "uri":"lts_02_0002.html", + "node_id":"lts_02_0002.xml", + "product_code":"lts", + "code":"8", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Group Management (Old Version)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Log Group Management (Old Version)", "githuburl":"" }, { "uri":"lts_02_0003.html", + "node_id":"lts_02_0003.xml", "product_code":"lts", - "code":"3", + "code":"9", "des":"This API is used to create a log group. All API URLs described in this section must be case-sensitive.This function describes how to create a log group for log storage an", "doc_type":"api", "kw":"Creating a Log Group,Log Group Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Creating a Log Group", "githuburl":"" }, { "uri":"lts_02_0004.html", + "node_id":"lts_02_0004.xml", "product_code":"lts", - "code":"4", + "code":"10", "des":"This function describes how to query a log group you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/{", "doc_type":"api", "kw":"Querying a Log Group,Log Group Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Querying a Log Group", "githuburl":"" }, { "uri":"lts_02_0005.html", + "node_id":"lts_02_0005.xml", "product_code":"lts", - "code":"5", + "code":"11", "des":"This function describes how to delete a log group that will not be used.Before deleting a log group, ensure that the log group has no log transfer tasks. Deleted log grou", "doc_type":"api", "kw":"Deleting a Log Group,Log Group Management (Old Version),API Reference", - "title":"Deleting a Log Group", - "githuburl":"" - }, - { - "uri":"lts_api_0011.html", - "product_code":"lts", - "code":"6", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Log Group Management (New Version)", - "title":"Log Group Management (New Version)", - "githuburl":"" - }, - { - "uri":"lts_api_0012.html", - "product_code":"lts", - "code":"7", - "des":"This API is used to create a log group for log retention and query. You can create a maximum of 100 log groups.POST /v2/{project_id}/groupsURI parameterParameterMandatory", - "doc_type":"api", - "kw":"Creating a Log Group,Log Group Management (New Version),API Reference", - "title":"Creating a Log Group", - "githuburl":"" - }, - { - "uri":"lts_api_0013.html", - "product_code":"lts", - "code":"8", - "des":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Status code: 200Status c", - "doc_type":"api", - "kw":"Querying All Log Groups of an Account,Log Group Management (New Version),API Reference", - "title":"Querying All Log Groups of an Account", - "githuburl":"" - }, - { - "uri":"lts_api_0024.html", - "product_code":"lts", - "code":"9", - "des":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", - "doc_type":"api", - "kw":"Modifying a Log Group,Log Group Management (New Version),API Reference", - "title":"Modifying a Log Group", - "githuburl":"" - }, - { - "uri":"lts_api_0014.html", - "product_code":"lts", - "code":"10", - "des":"This API is used to delete a specified log group. If the log streams in a log group have been associated with log transfer tasks, you need to delete the tasks first.DELET", - "doc_type":"api", - "kw":"Deleting a Log Group,Log Group Management (New Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Deleting a Log Group", "githuburl":"" }, { "uri":"lts_02_0006.html", + "node_id":"lts_02_0006.xml", "product_code":"lts", - "code":"11", + "code":"12", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Stream Management (Old Version)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Log Stream Management (Old Version)", "githuburl":"" }, { "uri":"lts_02_0007.html", + "node_id":"lts_02_0007.xml", "product_code":"lts", - "code":"12", + "code":"13", "des":"This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.URI formatPOST /v2.0/{project_id}/log-gro", "doc_type":"api", "kw":"Creating a Log Stream,Log Stream Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Creating a Log Stream", "githuburl":"" }, { "uri":"lts_02_0008.html", + "node_id":"lts_02_0008.xml", "product_code":"lts", - "code":"13", + "code":"14", "des":"This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/", "doc_type":"api", "kw":"Querying a Log Stream,Log Stream Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Querying a Log Stream", "githuburl":"" }, { "uri":"lts_02_0009.html", + "node_id":"lts_02_0009.xml", "product_code":"lts", - "code":"14", + "code":"15", "des":"This function describes how to delete a log stream that will not be used.Before deleting a log stream, ensure that the log stream has no log transfer tasks. Deleted log s", "doc_type":"api", "kw":"Deleting a log stream,Log Stream Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Deleting a log stream", "githuburl":"" }, { - "uri":"lts_api_0015.html", + "uri":"lts_api_1015.html", + "node_id":"lts_api_1015.xml", "product_code":"lts", - "code":"15", + "code":"16", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Log Stream Management (New Version)", - "title":"Log Stream Management (New Version)", + "kw":"Host Group Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Host Group Management", "githuburl":"" }, { - "uri":"lts_api_0016.html", + "uri":"ListHost.html", + "node_id":"listhost.xml", "product_code":"lts", - "code":"16", + "code":"17", + "des":"Query the host list.POST /v3/{project_id}/lts/host-listStatus code: 200Status code: 400Status code: 500Hosts are sorted by filters specified in the request body. If no fi", + "doc_type":"api", + "kw":"Querying Host Information,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Host Information", + "githuburl":"" + }, + { + "uri":"ListHostGroup.html", + "node_id":"listhostgroup.xml", + "product_code":"lts", + "code":"18", + "des":"Query the host group list.POST /v3/{project_id}/lts/host-group-listStatus code: 200Status code: 400Status code: 500Host groups are sorted by filters specified in the requ", + "doc_type":"api", + "kw":"Querying Host Groups,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Host Groups", + "githuburl":"" + }, + { + "uri":"CreateHostGroup.html", + "node_id":"createhostgroup.xml", + "product_code":"lts", + "code":"19", + "des":"Create a host group.POST /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Create a host group. Parameters host_group_name and host_group_typ", + "doc_type":"api", + "kw":"Creating a Host Group,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Host Group", + "githuburl":"" + }, + { + "uri":"DeleteHostGroup.html", + "node_id":"deletehostgroup.xml", + "product_code":"lts", + "code":"20", + "des":"Delete a host group.DELETE /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Delete one or multiple host groups at a time.Status code: 200Hos", + "doc_type":"api", + "kw":"Deleting a Host Group,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Host Group", + "githuburl":"" + }, + { + "uri":"UpdateHostGroup.html", + "node_id":"updatehostgroup.xml", + "product_code":"lts", + "code":"21", + "des":"Modify a host group.PUT /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Update a host group. Parameter host_group_id is mandatory.Status co", + "doc_type":"api", + "kw":"Modifying a Host Group,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Host Group", + "githuburl":"" + }, + { + "uri":"lts_api_0011.html", + "node_id":"lts_api_0011.xml", + "product_code":"lts", + "code":"22", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Group Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Group Management", + "githuburl":"" + }, + { + "uri":"CreateLogGroup.html", + "node_id":"createloggroup.xml", + "product_code":"lts", + "code":"23", + "des":"This API is used to create a log group.POST /v2/{project_id}/groupsStatus code: 201Status code: 400Status code: 401Status code: 403Status code: 500Status code: 503Creatin", + "doc_type":"api", + "kw":"Creating a Log Group,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Group", + "githuburl":"" + }, + { + "uri":"ListLogGroups.html", + "node_id":"listloggroups.xml", + "product_code":"lts", + "code":"24", + "des":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Querying All Log Groups ", + "doc_type":"api", + "kw":"Querying All Log Groups of an Account,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying All Log Groups of an Account", + "githuburl":"" + }, + { + "uri":"DeleteLogGroup.html", + "node_id":"deleteloggroup.xml", + "product_code":"lts", + "code":"25", + "des":"This API is used to delete a specified log group. If log transfer is enabled for log streams in a log group, you need to disable the log transfer before the deletion.DELE", + "doc_type":"api", + "kw":"Deleting a Log Group,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Log Group", + "githuburl":"" + }, + { + "uri":"UpdateLogGroup.html", + "node_id":"updateloggroup.xml", + "product_code":"lts", + "code":"26", + "des":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", + "doc_type":"api", + "kw":"Modifying a Log Group,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Log Group", + "githuburl":"" + }, + { + "uri":"lts_api_0015.html", + "node_id":"lts_api_0015.xml", + "product_code":"lts", + "code":"27", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Stream Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Stream Management", + "githuburl":"" + }, + { + "uri":"CreateLogStream.html", + "node_id":"createlogstream.xml", + "product_code":"lts", + "code":"28", "des":"This API is used to create a log stream in a specified log group.POST /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 201Status code: 400Status code: 401Status", "doc_type":"api", - "kw":"Creating a Log Stream,Log Stream Management (New Version),API Reference", + "kw":"Creating a Log Stream,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Creating a Log Stream", "githuburl":"" }, { - "uri":"lts_api_0017.html", + "uri":"ListLogStream.html", + "node_id":"listlogstream.xml", "product_code":"lts", - "code":"17", + "code":"29", "des":"This API is used to query information about all log streams in a specified log group.GET /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 200Status code: 401Sta", "doc_type":"api", - "kw":"Querying All Log Streams in a Specified Log Group,Log Stream Management (New Version),API Reference", + "kw":"Querying All Log Streams in a Specified Log Group,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Querying All Log Streams in a Specified Log Group", "githuburl":"" }, { - "uri":"lts_api_0018.html", + "uri":"ListLogStreams.html", + "node_id":"listlogstreams.xml", "product_code":"lts", - "code":"18", - "des":"This API is used to delete a specified log stream from a specified log group. If a log transfer task has been associated with the log stream, delete the task first.DELETE", + "code":"30", + "des":"This API is used to query log streams.GET /v2/{project_id}/log-streamsStatus code: 200Status code: 400Status code: 500If you leave the request body empty, all log streams", "doc_type":"api", - "kw":"Deleting a Log Stream,Log Stream Management (New Version),API Reference", + "kw":"Querying Log Streams,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Log Streams", + "githuburl":"" + }, + { + "uri":"DeleteLogStream.html", + "node_id":"deletelogstream.xml", + "product_code":"lts", + "code":"31", + "des":"This API is used to delete a specified log stream from a specified log group. If log transfer is enabled for a log stream, you need to disable the log transfer before the", + "doc_type":"api", + "kw":"Deleting a Log Stream,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Deleting a Log Stream", "githuburl":"" }, { - "uri":"lts_api_0029.html", + "uri":"UpdateLogStream.html", + "node_id":"updatelogstream.xml", "product_code":"lts", - "code":"19", + "code":"32", + "des":"This API is used to modify the log retention duration of a specified log stream.PUT /v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}Status code: 200Stat", + "doc_type":"api", + "kw":"Modifying a Log Stream,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Log Stream", + "githuburl":"" + }, + { + "uri":"topic_300000003.html", + "node_id":"topic_300000003.xml", + "product_code":"lts", + "code":"33", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Log Management", "githuburl":"" }, { - "uri":"lts_api_0028.html", + "uri":"Deletefavorite.html", + "node_id":"deletefavorite.xml", "product_code":"lts", - "code":"20", + "code":"34", + "des":"This API is used to remove a specified resource from favorites.DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}Status code: 200Status code: 400Status code: 500Removing", + "doc_type":"api", + "kw":"Removing a Resource from Favorites,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Removing a Resource from Favorites", + "githuburl":"" + }, + { + "uri":"ListTopnTrafficStatistics.html", + "node_id":"listtopntrafficstatistics.xml", + "product_code":"lts", + "code":"35", + "des":"This API is used to collect traffic statistics on top n log groups or log streams.POST /v2/{project_id}/lts/topn-traffic-statisticsStatus code: 200Status code: 400Status ", + "doc_type":"api", + "kw":"Collecting Traffic Statistics on Top N Log Groups or Log Streams,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Collecting Traffic Statistics on Top N Log Groups or Log Streams", + "githuburl":"" + }, + { + "uri":"ListLogHistogram.html", + "node_id":"listloghistogram.xml", + "product_code":"lts", + "code":"36", + "des":"This API is used to query the distribution of reported log events that contain a specified keyword over a certain period. If no keyword is specified, the distribution of ", + "doc_type":"api", + "kw":"Querying the Log Histogram,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying the Log Histogram", + "githuburl":"" + }, + { + "uri":"Createfavorite.html", + "node_id":"createfavorite.xml", + "product_code":"lts", + "code":"37", + "des":"This API is used to add a log to favorites.POST /v1.0/{project_id}/lts/favoriteStatus code: 201Status code: 400Status code: 500Adding a Log to FavoritesStatus code: 201A ", + "doc_type":"api", + "kw":"Adding a Log to Favorites,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Adding a Log to Favorites", + "githuburl":"" + }, + { + "uri":"ListTimeLineTrafficStatistics.html", + "node_id":"listtimelinetrafficstatistics.xml", + "product_code":"lts", + "code":"38", + "des":"This API is used to query resources by time segment.POST /v2/{project_id}/lts/timeline-traffic-statisticsStatus code: 200Status code: 400Status code: 500Querying Resource", + "doc_type":"api", + "kw":"Querying Resources by Time Segment,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Resources by Time Segment", + "githuburl":"" + }, + { + "uri":"ListLogs.html", + "node_id":"listlogs.xml", + "product_code":"lts", + "code":"39", "des":"This API is used to query logs in a specified log stream.POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/queryStatus code: 200Status code: 400", "doc_type":"api", "kw":"Querying Logs,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Querying Logs", "githuburl":"" }, { - "uri":"lts_api_0026.html", + "uri":"topic_300000004.html", + "node_id":"topic_300000004.xml", "product_code":"lts", - "code":"21", + "code":"40", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Ingestion", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Ingestion", + "githuburl":"" + }, + { + "uri":"CreateAgencyAccess.html", + "node_id":"createagencyaccess.xml", + "product_code":"lts", + "code":"41", + "des":"This API is used to create a cross-account log ingestion configuration.POST /v2.0/{project_id}/lts/createAgencyAccessStatus code: 201Status code: 400Status code: 500Creat", + "doc_type":"api", + "kw":"Creating a Cross-Account Log Ingestion Configuration,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Cross-Account Log Ingestion Configuration", + "githuburl":"" + }, + { + "uri":"ListAccessConfig.html", + "node_id":"listaccessconfig.xml", + "product_code":"lts", + "code":"42", + "des":"This API is used to query log ingestion configurations in LTS.POST /v3/{project_id}/lts/access-config-listStatus code: 200Status code: 400Status code: 500Log ingestion co", + "doc_type":"api", + "kw":"Querying Log Ingestion Configurations,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Log Ingestion Configurations", + "githuburl":"" + }, + { + "uri":"CreateAccessConfig.html", + "node_id":"createaccessconfig.xml", + "product_code":"lts", + "code":"43", + "des":"This API is used to create a log ingestion configuration.POST /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Creating a log ingestion c", + "doc_type":"api", + "kw":"Creating a Log Ingestion Configuration,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Ingestion Configuration", + "githuburl":"" + }, + { + "uri":"DeleteAccessConfig.html", + "node_id":"deleteaccessconfig.xml", + "product_code":"lts", + "code":"44", + "des":"This API is used to delete log ingestion configurations.DELETE /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Deleting Log Ingestion Co", + "doc_type":"api", + "kw":"Deleting Log Ingestion Configurations,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting Log Ingestion Configurations", + "githuburl":"" + }, + { + "uri":"UpdateAccessConfig.html", + "node_id":"updateaccessconfig.xml", + "product_code":"lts", + "code":"45", + "des":"This API is usde to modify a log ingestion configuration.PUT /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Modifying a Log Ingestion C", + "doc_type":"api", + "kw":"Modifying a Log Ingestion Configuration,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Log Ingestion Configuration", + "githuburl":"" + }, + { + "uri":"topic_300000005.html", + "node_id":"topic_300000005.xml", + "product_code":"lts", + "code":"46", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Transfer", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Log Transfer", "githuburl":"" }, { - "uri":"lts_api_0027.html", + "uri":"lts_api_0029.html", + "node_id":"lts_api_0029.xml", "product_code":"lts", - "code":"22", + "code":"47", "des":"This API is used to transfer logs of one or more specified log streams to Object Storage Service (OBS).POST /v2/{project_id}/log-dump/obsStatus code: 201Status code: 400S", "doc_type":"api", - "kw":"Creating a Log Transfer Task,Log Transfer,API Reference", - "title":"Creating a Log Transfer Task", + "kw":"Creating a Log Transfer Task (Old Version),Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Transfer Task (Old Version)", "githuburl":"" }, { - "uri":"lts_api_0030.html", - "product_code":"", - "code":"23", + "uri":"CreateTransfer.html", + "node_id":"createtransfer.xml", + "product_code":"lts", + "code":"48", + "des":"This API is used to create an OBS transfer task.POST /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Transferring logs to OBSStatus code: 200The", + "doc_type":"api", + "kw":"Creating a Log Transfer Task (New Version),Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Transfer Task (New Version)", + "githuburl":"" + }, + { + "uri":"DeleteTransfer.html", + "node_id":"deletetransfer.xml", + "product_code":"lts", + "code":"49", "des":"This API is used to delete an OBS transfer task.DELETE /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Deleting a log transfer task based on the", - "doc_type":"", + "doc_type":"api", "kw":"Deleting a Log Transfer Task,Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Deleting a Log Transfer Task", "githuburl":"" }, { - "uri":"lts_api_0031.html", - "product_code":"", - "code":"24", - "des":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskPUT https://{en", - "doc_type":"", + "uri":"UpdateTransfer.html", + "node_id":"updatetransfer.xml", + "product_code":"lts", + "code":"50", + "des":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskStatus code: 20", + "doc_type":"api", "kw":"Updating a Log Transfer Task,Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Updating a Log Transfer Task", "githuburl":"" }, { - "uri":"lts_api_0032.html", - "product_code":"", - "code":"25", - "des":"This API is used to query an OBS transfer task.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfe", - "doc_type":"", + "uri":"ListTransfers.html", + "node_id":"listtransfers.xml", + "product_code":"lts", + "code":"51", + "des":"This API is used to query OBS transfer tasks.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfer ", + "doc_type":"api", "kw":"Querying a Log Transfer Task,Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Querying a Log Transfer Task", "githuburl":"" }, { - "uri":"lts_02_0019.html", + "uri":"topic_300000006.html", + "node_id":"topic_300000006.xml", "product_code":"lts", - "code":"26", + "code":"52", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Public Parameters", - "title":"Public Parameters", + "kw":"Log Collection Beyond Free Quota", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Collection Beyond Free Quota", "githuburl":"" }, { - "uri":"lts_02_0020.html", + "uri":"DisableLogCollection.html", + "node_id":"disablelogcollection.xml", "product_code":"lts", - "code":"27", - "des":"Table 1 lists the status code.", + "code":"53", + "des":"This API is used to configure log collection to stop when the free quota runs out.POST /v2/{project_id}/collection/disableStatus code: 403Status code: 500Disabling log co", "doc_type":"api", - "kw":"Status Code,Public Parameters,API Reference", - "title":"Status Code", + "kw":"Disabling Log Collection Beyond Free Quota,Log Collection Beyond Free Quota,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Disabling Log Collection Beyond Free Quota", "githuburl":"" }, { - "uri":"lts_02_0021.html", + "uri":"EnableLogCollection.html", + "node_id":"enablelogcollection.xml", "product_code":"lts", - "code":"28", - "des":"This section explains the meanings of error code responses returned by LTS APIs.{\"error_msg\":\"Current user is not authenticated correctly, check your token.\",\"error_code\"", + "code":"54", + "des":"This API is used to configure log collection to continue when the free quota runs out.POST /v2/{project_id}/collection/enableStatus code: 403Status code: 500Enabling log ", "doc_type":"api", - "kw":"Error Code,Public Parameters,API Reference", - "title":"Error Code", + "kw":"Enabling Log Collection Beyond Free Quota,Log Collection Beyond Free Quota,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Enabling Log Collection Beyond Free Quota", + "githuburl":"" + }, + { + "uri":"topic_300000007.html", + "node_id":"topic_300000007.xml", + "product_code":"lts", + "code":"55", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Cloud Structuring", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Cloud Structuring", + "githuburl":"" + }, + { + "uri":"CreateStructConfig.html", + "node_id":"createstructconfig.xml", + "product_code":"lts", + "code":"56", + "des":"This API is used to create structuring configurations using a structuring template, which facilitates parameter extraction and simplifies the parameter structure.A user c", + "doc_type":"api", + "kw":"Creating Structuring Configurations (Recommended),Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating Structuring Configurations (Recommended)", + "githuburl":"" + }, + { + "uri":"UpdateStructConfig.html", + "node_id":"updatestructconfig.xml", + "product_code":"lts", + "code":"57", + "des":"This API is used to modify structuring configurations using a structuring template.PUT /v3/{project_id}/lts/struct/templateStatus code: 201Status code: 400Status code: 50", + "doc_type":"api", + "kw":"Modifying Structuring Configurations (Recommended),Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying Structuring Configurations (Recommended)", + "githuburl":"" + }, + { + "uri":"lts_api_0044.html", + "node_id":"lts_api_0044.xml", + "product_code":"lts", + "code":"58", + "des":"This API is used to delete a structuring rule of a log stream.DELETE /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status code: 403S", + "doc_type":"api", + "kw":"Deleting a Structuring Rule,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Structuring Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0041.html", + "node_id":"lts_api_0041.xml", + "product_code":"lts", + "code":"59", + "des":"This API is used to query the structuring rule of a specified log stream.GET /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status co", + "doc_type":"api", + "kw":"Querying a Structuring Rule,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Structuring Rule", + "githuburl":"" + }, + { + "uri":"ListBreifStructTemplate.html", + "node_id":"listbreifstructtemplate.xml", + "product_code":"lts", + "code":"60", + "des":"This API is used to query the brief list of structuring templates.GET /v3/{project_id}/lts/struct/customtemplate/listStatus code: 200Status code: 400Status code: 500Obtai", + "doc_type":"api", + "kw":"Querying the Brief List of Structuring Templates,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying the Brief List of Structuring Templates", + "githuburl":"" + }, + { + "uri":"ListStructTemplate.html", + "node_id":"liststructtemplate.xml", + "product_code":"lts", + "code":"61", + "des":"This API is used to query a structuring template.Note:A user can call this API for up to 50 times per second.GET /v3/{project_id}/lts/struct/customtemplateStatus code: 20", + "doc_type":"api", + "kw":"Querying a Structuring Template,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Structuring Template", + "githuburl":"" + }, + { + "uri":"topic_300000008.html", + "node_id":"topic_300000008.xml", + "product_code":"lts", + "code":"62", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Alarm Topics", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Alarm Topics", + "githuburl":"" + }, + { + "uri":"lts_api_0061.html", + "node_id":"lts_api_0061.xml", + "product_code":"lts", + "code":"63", + "des":"This API is used to query an SMN topic.GET /v2/{project_id}/lts/notifications/topicsStatus code: 200Status code: 400Status code: 500Querying an SMN topicStatus code: 200T", + "doc_type":"api", + "kw":"Querying an SMN Topic,Alarm Topics,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying an SMN Topic", + "githuburl":"" + }, + { + "uri":"topic_300000009.html", + "node_id":"topic_300000009.xml", + "product_code":"lts", + "code":"64", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Message Template Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Message Template Management", + "githuburl":"" + }, + { + "uri":"CreateNotificationTemplate.html", + "node_id":"createnotificationtemplate.xml", + "product_code":"lts", + "code":"65", + "des":"This API is used to create a notification template. Currently, each account can create a maximum of 100 notification templates. After a notification template is created, ", + "doc_type":"api", + "kw":"Creating a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Message Template", + "githuburl":"" + }, + { + "uri":"UpdateNotificationTemplate.html", + "node_id":"updatenotificationtemplate.xml", + "product_code":"lts", + "code":"66", + "des":"This API is used to modify a notification template base on its name.PUT /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 201Status code: 400Stat", + "doc_type":"api", + "kw":"Modifying a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Message Template", + "githuburl":"" + }, + { + "uri":"ListNotificationTemplates.html", + "node_id":"listnotificationtemplates.xml", + "product_code":"lts", + "code":"67", + "des":"This API is used to query the message template list.GET /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 200Status code: 500Querying a message t", + "doc_type":"api", + "kw":"Querying Message Templates,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Message Templates", + "githuburl":"" + }, + { + "uri":"DeleteNotificationTemplate.html", + "node_id":"deletenotificationtemplate.xml", + "product_code":"lts", + "code":"68", + "des":"This API is used to delete a notification template.DELETE /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 400Status code: 500Deleting a message", + "doc_type":"api", + "kw":"Deleting a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Message Template", + "githuburl":"" + }, + { + "uri":"ShowNotificationTemplate.html", + "node_id":"shownotificationtemplate.xml", + "product_code":"lts", + "code":"69", + "des":"This API is used to query a notification template.GET /v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}Status code: 200Status code: 401Status ", + "doc_type":"api", + "kw":"Querying a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Message Template", + "githuburl":"" + }, + { + "uri":"ListNotificationTemplate.html", + "node_id":"listnotificationtemplate.xml", + "product_code":"lts", + "code":"70", + "des":"This API is used to preview the email format of a notification template.POST /v2/{project_id}/{domain_id}/lts/events/notification/templates/viewStatus code: 200Status cod", + "doc_type":"api", + "kw":"Previewing the Email Format of a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Previewing the Email Format of a Message Template", + "githuburl":"" + }, + { + "uri":"topic_300000010.html", + "node_id":"topic_300000010.xml", + "product_code":"lts", + "code":"71", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Keyword Alarm Rules", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Keyword Alarm Rules", + "githuburl":"" + }, + { + "uri":"lts_api_0081.html", + "node_id":"lts_api_0081.xml", + "product_code":"lts", + "code":"72", + "des":"This API is used to create a keyword alarm. Currently, each account can create a maximum of 200 keyword alarms and SQL alarms.POST /v2/{project_id}/lts/alarms/keywords-al", + "doc_type":"api", + "kw":"Creating a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0082.html", + "node_id":"lts_api_0082.xml", + "product_code":"lts", + "code":"73", + "des":"This API is used to modify a keyword alarm.PUT /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 400Status code: 500Modifying a keyword alarm ru", + "doc_type":"api", + "kw":"Modifying a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0083.html", + "node_id":"lts_api_0083.xml", + "product_code":"lts", + "code":"74", + "des":"This API is used to query a keyword alarm.GET /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 500Querying a keyword alarm ruleStatus code: 200", + "doc_type":"api", + "kw":"Querying a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0084.html", + "node_id":"lts_api_0084.xml", + "product_code":"lts", + "code":"75", + "des":"This API is used to delete a keyword alarm.DELETE /v2/{project_id}/lts/alarms/keywords-alarm-rule/{keywords_alarm_rule_id}Status code: 400Status code: 500Deleting a keywo", + "doc_type":"api", + "kw":"Deleting a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"topic_300000011.html", + "node_id":"topic_300000011.xml", + "product_code":"lts", + "code":"76", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Alarm List", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Alarm List", + "githuburl":"" + }, + { + "uri":"lts_api_0091.html", + "node_id":"lts_api_0091.xml", + "product_code":"lts", + "code":"77", + "des":"This API is used to query the alarm list.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/queryStatus code: 200Status code: 400Status code: 500Querying the active o", + "doc_type":"api", + "kw":"Querying the Active or Historical Alarm List,Alarm List,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying the Active or Historical Alarm List", + "githuburl":"" + }, + { + "uri":"lts_api_0092.html", + "node_id":"lts_api_0092.xml", + "product_code":"lts", + "code":"78", + "des":"This API is used to delete an active alarm.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/clearNoneDeleting an active alarm by alarm IDNoneSee Error Codes.", + "doc_type":"api", + "kw":"Deleting an Active Alarm,Alarm List,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting an Active Alarm", + "githuburl":"" + }, + { + "uri":"topic_300000012.html", + "node_id":"topic_300000012.xml", + "product_code":"lts", + "code":"79", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Tag Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Tag Management", + "githuburl":"" + }, + { + "uri":"CreateTags.html", + "node_id":"createtags.xml", + "product_code":"lts", + "code":"80", + "des":"This API is used to tag a resource.POST /v1/{project_id}/{resource_type}/{resource_id}/tags/actionStatus code: 200Status code: 201Status code: 400Status code: 500Creating", + "doc_type":"api", + "kw":"Tag Management,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Tag Management", + "githuburl":"" + }, + { + "uri":"topic_300000013.html", + "node_id":"topic_300000013.xml", + "product_code":"lts", + "code":"81", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Quick Search", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Quick Search", + "githuburl":"" + }, + { + "uri":"CreateSearchCriterias.html", + "node_id":"createsearchcriterias.xml", + "product_code":"lts", + "code":"82", + "des":"Adding a Quick SearchPOST /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 201Status code: 400Status code: 500Adding a Quick SearchStat", + "doc_type":"api", + "kw":"Adding a Quick Search,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Adding a Quick Search", + "githuburl":"" + }, + { + "uri":"ListCriterias.html", + "node_id":"listcriterias.xml", + "product_code":"lts", + "code":"83", + "des":"This API is used to obtain quick search.GET /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Obtaini", + "doc_type":"api", + "kw":"Obtaining a Quick Search,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Obtaining a Quick Search", + "githuburl":"" + }, + { + "uri":"DeleteSearchCriterias.html", + "node_id":"deletesearchcriterias.xml", + "product_code":"lts", + "code":"84", + "des":"This API is used to delete a quick search.DELETE /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 400Status code: 500Deleting a quick s", + "doc_type":"api", + "kw":"Deleting a Quick Search,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Quick Search", + "githuburl":"" + }, + { + "uri":"ListQueryAllSearchCriterias.html", + "node_id":"listqueryallsearchcriterias.xml", + "product_code":"lts", + "code":"85", + "des":"This API is used to query all quick searches in a log group.GET /v1.0/{project_id}/lts/groups/{group_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Q", + "doc_type":"api", + "kw":"Querying All Quick Searches in a Log Group,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying All Quick Searches in a Log Group", + "githuburl":"" + }, + { + "uri":"lts_api_0019.html", + "node_id":"lts_api_0019.xml", + "product_code":"lts", + "code":"86", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Appendix", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Appendix", + "githuburl":"" + }, + { + "uri":"lts_api_0020.html", + "node_id":"lts_api_0020.xml", + "product_code":"lts", + "code":"87", + "des":"Table 1 lists the status codes.", + "doc_type":"api", + "kw":"Status Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Status Codes", + "githuburl":"" + }, + { + "uri":"ErrorCode.html", + "node_id":"errorcode_1.xml", + "product_code":"lts", + "code":"88", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Error Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Error Codes", "githuburl":"" }, { "uri":"lts_api_0006.html", + "node_id":"lts_api_0006.xml", "product_code":"lts", - "code":"29", - "des":"Account and project IDs are required in URLs when you call some APIs.Obtain the IDs from the console.Log in to the LTS console.On the Log Management page, obtain the log ", + "code":"89", + "des":"Account and project IDs are required in URLs when you call some APIs.Log in to the management console.Hover the mouse pointer over the username and choose My Credentials ", "doc_type":"api", - "kw":"Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID,Public Parameters,API Reference", - "title":"Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID", + "kw":"Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID", "githuburl":"" }, { - "uri":"lts_02_0014.html", + "uri":"lts_api_0023.html", + "node_id":"lts_api_0023.xml", "product_code":"lts", - "code":"30", + "code":"90", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/lts/api-ref/CLASS.TXT.json b/docs/lts/api-ref/CLASS.TXT.json index 8e491cbcc..5306a0ae0 100644 --- a/docs/lts/api-ref/CLASS.TXT.json +++ b/docs/lts/api-ref/CLASS.TXT.json @@ -3,19 +3,73 @@ "desc":"Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform ", "product_code":"lts", "title":"API Description", - "uri":"lts_02_0001.html", + "uri":"lts_api_0000.html", "doc_type":"api", "p_code":"", "code":"1" }, + { + "desc":"LTS extension APIs allow you to use the basic LTS functions. For example, you can query API versions, create, query, and delete log groups or log streams.Table 1 describe", + "product_code":"lts", + "title":"API Overview", + "uri":"lts_api_0002.html", + "doc_type":"api", + "p_code":"", + "code":"2" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Calling APIs", + "uri":"lts_api_0003.html", + "doc_type":"api", + "p_code":"", + "code":"3" + }, + { + "desc":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "product_code":"lts", + "title":"Making an API Request", + "uri":"lts_api_0004.html", + "doc_type":"api", + "p_code":"3", + "code":"4" + }, + { + "desc":"You can use either of the following authentication methods when calling APIs:Token-based authentication: Requests are authenticated using a token.AK/SK-based authenticati", + "product_code":"lts", + "title":"Authentication", + "uri":"lts_api_0005.html", + "doc_type":"api", + "p_code":"3", + "code":"5" + }, + { + "desc":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", + "product_code":"lts", + "title":"Response", + "uri":"lts_api_0007.html", + "doc_type":"api", + "p_code":"3", + "code":"6" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"APIs", + "uri":"lts_api_0010.html", + "doc_type":"api", + "p_code":"", + "code":"7" + }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Log Group Management (Old Version)", "uri":"lts_02_0002.html", "doc_type":"api", - "p_code":"", - "code":"2" + "p_code":"7", + "code":"8" }, { "desc":"This API is used to create a log group. All API URLs described in this section must be case-sensitive.This function describes how to create a log group for log storage an", @@ -23,8 +77,8 @@ "title":"Creating a Log Group", "uri":"lts_02_0003.html", "doc_type":"api", - "p_code":"2", - "code":"3" + "p_code":"8", + "code":"9" }, { "desc":"This function describes how to query a log group you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/{", @@ -32,8 +86,8 @@ "title":"Querying a Log Group", "uri":"lts_02_0004.html", "doc_type":"api", - "p_code":"2", - "code":"4" + "p_code":"8", + "code":"10" }, { "desc":"This function describes how to delete a log group that will not be used.Before deleting a log group, ensure that the log group has no log transfer tasks. Deleted log grou", @@ -41,53 +95,8 @@ "title":"Deleting a Log Group", "uri":"lts_02_0005.html", "doc_type":"api", - "p_code":"2", - "code":"5" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"lts", - "title":"Log Group Management (New Version)", - "uri":"lts_api_0011.html", - "doc_type":"api", - "p_code":"", - "code":"6" - }, - { - "desc":"This API is used to create a log group for log retention and query. You can create a maximum of 100 log groups.POST /v2/{project_id}/groupsURI parameterParameterMandatory", - "product_code":"lts", - "title":"Creating a Log Group", - "uri":"lts_api_0012.html", - "doc_type":"api", - "p_code":"6", - "code":"7" - }, - { - "desc":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Status code: 200Status c", - "product_code":"lts", - "title":"Querying All Log Groups of an Account", - "uri":"lts_api_0013.html", - "doc_type":"api", - "p_code":"6", - "code":"8" - }, - { - "desc":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", - "product_code":"lts", - "title":"Modifying a Log Group", - "uri":"lts_api_0024.html", - "doc_type":"api", - "p_code":"6", - "code":"9" - }, - { - "desc":"This API is used to delete a specified log group. If the log streams in a log group have been associated with log transfer tasks, you need to delete the tasks first.DELET", - "product_code":"lts", - "title":"Deleting a Log Group", - "uri":"lts_api_0014.html", - "doc_type":"api", - "p_code":"6", - "code":"10" + "p_code":"8", + "code":"11" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -95,8 +104,8 @@ "title":"Log Stream Management (Old Version)", "uri":"lts_02_0006.html", "doc_type":"api", - "p_code":"", - "code":"11" + "p_code":"7", + "code":"12" }, { "desc":"This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.URI formatPOST /v2.0/{project_id}/log-gro", @@ -104,8 +113,8 @@ "title":"Creating a Log Stream", "uri":"lts_02_0007.html", "doc_type":"api", - "p_code":"11", - "code":"12" + "p_code":"12", + "code":"13" }, { "desc":"This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/", @@ -113,8 +122,8 @@ "title":"Querying a Log Stream", "uri":"lts_02_0008.html", "doc_type":"api", - "p_code":"11", - "code":"13" + "p_code":"12", + "code":"14" }, { "desc":"This function describes how to delete a log stream that will not be used.Before deleting a log stream, ensure that the log stream has no log transfer tasks. Deleted log s", @@ -122,151 +131,682 @@ "title":"Deleting a log stream", "uri":"lts_02_0009.html", "doc_type":"api", - "p_code":"11", - "code":"14" + "p_code":"12", + "code":"15" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", - "title":"Log Stream Management (New Version)", + "title":"Host Group Management", + "uri":"lts_api_1015.html", + "doc_type":"api", + "p_code":"7", + "code":"16" + }, + { + "desc":"Query the host list.POST /v3/{project_id}/lts/host-listStatus code: 200Status code: 400Status code: 500Hosts are sorted by filters specified in the request body. If no fi", + "product_code":"lts", + "title":"Querying Host Information", + "uri":"ListHost.html", + "doc_type":"api", + "p_code":"16", + "code":"17" + }, + { + "desc":"Query the host group list.POST /v3/{project_id}/lts/host-group-listStatus code: 200Status code: 400Status code: 500Host groups are sorted by filters specified in the requ", + "product_code":"lts", + "title":"Querying Host Groups", + "uri":"ListHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"18" + }, + { + "desc":"Create a host group.POST /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Create a host group. Parameters host_group_name and host_group_typ", + "product_code":"lts", + "title":"Creating a Host Group", + "uri":"CreateHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"19" + }, + { + "desc":"Delete a host group.DELETE /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Delete one or multiple host groups at a time.Status code: 200Hos", + "product_code":"lts", + "title":"Deleting a Host Group", + "uri":"DeleteHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"20" + }, + { + "desc":"Modify a host group.PUT /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Update a host group. Parameter host_group_id is mandatory.Status co", + "product_code":"lts", + "title":"Modifying a Host Group", + "uri":"UpdateHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"21" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Log Group Management", + "uri":"lts_api_0011.html", + "doc_type":"api", + "p_code":"7", + "code":"22" + }, + { + "desc":"This API is used to create a log group.POST /v2/{project_id}/groupsStatus code: 201Status code: 400Status code: 401Status code: 403Status code: 500Status code: 503Creatin", + "product_code":"lts", + "title":"Creating a Log Group", + "uri":"CreateLogGroup.html", + "doc_type":"api", + "p_code":"22", + "code":"23" + }, + { + "desc":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Querying All Log Groups ", + "product_code":"lts", + "title":"Querying All Log Groups of an Account", + "uri":"ListLogGroups.html", + "doc_type":"api", + "p_code":"22", + "code":"24" + }, + { + "desc":"This API is used to delete a specified log group. If log transfer is enabled for log streams in a log group, you need to disable the log transfer before the deletion.DELE", + "product_code":"lts", + "title":"Deleting a Log Group", + "uri":"DeleteLogGroup.html", + "doc_type":"api", + "p_code":"22", + "code":"25" + }, + { + "desc":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", + "product_code":"lts", + "title":"Modifying a Log Group", + "uri":"UpdateLogGroup.html", + "doc_type":"api", + "p_code":"22", + "code":"26" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Log Stream Management", "uri":"lts_api_0015.html", "doc_type":"api", - "p_code":"", - "code":"15" + "p_code":"7", + "code":"27" }, { "desc":"This API is used to create a log stream in a specified log group.POST /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 201Status code: 400Status code: 401Status", "product_code":"lts", "title":"Creating a Log Stream", - "uri":"lts_api_0016.html", + "uri":"CreateLogStream.html", "doc_type":"api", - "p_code":"15", - "code":"16" + "p_code":"27", + "code":"28" }, { "desc":"This API is used to query information about all log streams in a specified log group.GET /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 200Status code: 401Sta", "product_code":"lts", "title":"Querying All Log Streams in a Specified Log Group", - "uri":"lts_api_0017.html", + "uri":"ListLogStream.html", "doc_type":"api", - "p_code":"15", - "code":"17" + "p_code":"27", + "code":"29" }, { - "desc":"This API is used to delete a specified log stream from a specified log group. If a log transfer task has been associated with the log stream, delete the task first.DELETE", + "desc":"This API is used to query log streams.GET /v2/{project_id}/log-streamsStatus code: 200Status code: 400Status code: 500If you leave the request body empty, all log streams", + "product_code":"lts", + "title":"Querying Log Streams", + "uri":"ListLogStreams.html", + "doc_type":"api", + "p_code":"27", + "code":"30" + }, + { + "desc":"This API is used to delete a specified log stream from a specified log group. If log transfer is enabled for a log stream, you need to disable the log transfer before the", "product_code":"lts", "title":"Deleting a Log Stream", - "uri":"lts_api_0018.html", + "uri":"DeleteLogStream.html", "doc_type":"api", - "p_code":"15", - "code":"18" + "p_code":"27", + "code":"31" + }, + { + "desc":"This API is used to modify the log retention duration of a specified log stream.PUT /v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}Status code: 200Stat", + "product_code":"lts", + "title":"Modifying a Log Stream", + "uri":"UpdateLogStream.html", + "doc_type":"api", + "p_code":"27", + "code":"32" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Log Management", - "uri":"lts_api_0029.html", + "uri":"topic_300000003.html", "doc_type":"api", - "p_code":"", - "code":"19" + "p_code":"7", + "code":"33" + }, + { + "desc":"This API is used to remove a specified resource from favorites.DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}Status code: 200Status code: 400Status code: 500Removing", + "product_code":"lts", + "title":"Removing a Resource from Favorites", + "uri":"Deletefavorite.html", + "doc_type":"api", + "p_code":"33", + "code":"34" + }, + { + "desc":"This API is used to collect traffic statistics on top n log groups or log streams.POST /v2/{project_id}/lts/topn-traffic-statisticsStatus code: 200Status code: 400Status ", + "product_code":"lts", + "title":"Collecting Traffic Statistics on Top N Log Groups or Log Streams", + "uri":"ListTopnTrafficStatistics.html", + "doc_type":"api", + "p_code":"33", + "code":"35" + }, + { + "desc":"This API is used to query the distribution of reported log events that contain a specified keyword over a certain period. If no keyword is specified, the distribution of ", + "product_code":"lts", + "title":"Querying the Log Histogram", + "uri":"ListLogHistogram.html", + "doc_type":"api", + "p_code":"33", + "code":"36" + }, + { + "desc":"This API is used to add a log to favorites.POST /v1.0/{project_id}/lts/favoriteStatus code: 201Status code: 400Status code: 500Adding a Log to FavoritesStatus code: 201A ", + "product_code":"lts", + "title":"Adding a Log to Favorites", + "uri":"Createfavorite.html", + "doc_type":"api", + "p_code":"33", + "code":"37" + }, + { + "desc":"This API is used to query resources by time segment.POST /v2/{project_id}/lts/timeline-traffic-statisticsStatus code: 200Status code: 400Status code: 500Querying Resource", + "product_code":"lts", + "title":"Querying Resources by Time Segment", + "uri":"ListTimeLineTrafficStatistics.html", + "doc_type":"api", + "p_code":"33", + "code":"38" }, { "desc":"This API is used to query logs in a specified log stream.POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/queryStatus code: 200Status code: 400", "product_code":"lts", "title":"Querying Logs", - "uri":"lts_api_0028.html", + "uri":"ListLogs.html", "doc_type":"api", - "p_code":"19", - "code":"20" + "p_code":"33", + "code":"39" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Log Ingestion", + "uri":"topic_300000004.html", + "doc_type":"api", + "p_code":"7", + "code":"40" + }, + { + "desc":"This API is used to create a cross-account log ingestion configuration.POST /v2.0/{project_id}/lts/createAgencyAccessStatus code: 201Status code: 400Status code: 500Creat", + "product_code":"lts", + "title":"Creating a Cross-Account Log Ingestion Configuration", + "uri":"CreateAgencyAccess.html", + "doc_type":"api", + "p_code":"40", + "code":"41" + }, + { + "desc":"This API is used to query log ingestion configurations in LTS.POST /v3/{project_id}/lts/access-config-listStatus code: 200Status code: 400Status code: 500Log ingestion co", + "product_code":"lts", + "title":"Querying Log Ingestion Configurations", + "uri":"ListAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"42" + }, + { + "desc":"This API is used to create a log ingestion configuration.POST /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Creating a log ingestion c", + "product_code":"lts", + "title":"Creating a Log Ingestion Configuration", + "uri":"CreateAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"43" + }, + { + "desc":"This API is used to delete log ingestion configurations.DELETE /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Deleting Log Ingestion Co", + "product_code":"lts", + "title":"Deleting Log Ingestion Configurations", + "uri":"DeleteAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"44" + }, + { + "desc":"This API is usde to modify a log ingestion configuration.PUT /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Modifying a Log Ingestion C", + "product_code":"lts", + "title":"Modifying a Log Ingestion Configuration", + "uri":"UpdateAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"45" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Log Transfer", - "uri":"lts_api_0026.html", + "uri":"topic_300000005.html", "doc_type":"api", - "p_code":"", - "code":"21" + "p_code":"7", + "code":"46" }, { "desc":"This API is used to transfer logs of one or more specified log streams to Object Storage Service (OBS).POST /v2/{project_id}/log-dump/obsStatus code: 201Status code: 400S", "product_code":"lts", - "title":"Creating a Log Transfer Task", - "uri":"lts_api_0027.html", + "title":"Creating a Log Transfer Task (Old Version)", + "uri":"lts_api_0029.html", "doc_type":"api", - "p_code":"21", - "code":"22" + "p_code":"46", + "code":"47" + }, + { + "desc":"This API is used to create an OBS transfer task.POST /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Transferring logs to OBSStatus code: 200The", + "product_code":"lts", + "title":"Creating a Log Transfer Task (New Version)", + "uri":"CreateTransfer.html", + "doc_type":"api", + "p_code":"46", + "code":"48" }, { "desc":"This API is used to delete an OBS transfer task.DELETE /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Deleting a log transfer task based on the", "product_code":"lts", "title":"Deleting a Log Transfer Task", - "uri":"lts_api_0030.html", + "uri":"DeleteTransfer.html", "doc_type":"api", - "p_code":"21", - "code":"23" + "p_code":"46", + "code":"49" }, { - "desc":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskPUT https://{en", + "desc":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskStatus code: 20", "product_code":"lts", "title":"Updating a Log Transfer Task", - "uri":"lts_api_0031.html", + "uri":"UpdateTransfer.html", "doc_type":"api", - "p_code":"21", - "code":"24" + "p_code":"46", + "code":"50" }, { - "desc":"This API is used to query an OBS transfer task.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfe", + "desc":"This API is used to query OBS transfer tasks.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfer ", "product_code":"lts", "title":"Querying a Log Transfer Task", - "uri":"lts_api_0032.html", + "uri":"ListTransfers.html", "doc_type":"api", - "p_code":"21", - "code":"25" + "p_code":"46", + "code":"51" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", - "title":"Public Parameters", - "uri":"lts_02_0019.html", + "title":"Log Collection Beyond Free Quota", + "uri":"topic_300000006.html", + "doc_type":"api", + "p_code":"7", + "code":"52" + }, + { + "desc":"This API is used to configure log collection to stop when the free quota runs out.POST /v2/{project_id}/collection/disableStatus code: 403Status code: 500Disabling log co", + "product_code":"lts", + "title":"Disabling Log Collection Beyond Free Quota", + "uri":"DisableLogCollection.html", + "doc_type":"api", + "p_code":"52", + "code":"53" + }, + { + "desc":"This API is used to configure log collection to continue when the free quota runs out.POST /v2/{project_id}/collection/enableStatus code: 403Status code: 500Enabling log ", + "product_code":"lts", + "title":"Enabling Log Collection Beyond Free Quota", + "uri":"EnableLogCollection.html", + "doc_type":"api", + "p_code":"52", + "code":"54" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Cloud Structuring", + "uri":"topic_300000007.html", + "doc_type":"api", + "p_code":"7", + "code":"55" + }, + { + "desc":"This API is used to create structuring configurations using a structuring template, which facilitates parameter extraction and simplifies the parameter structure.A user c", + "product_code":"lts", + "title":"Creating Structuring Configurations (Recommended)", + "uri":"CreateStructConfig.html", + "doc_type":"api", + "p_code":"55", + "code":"56" + }, + { + "desc":"This API is used to modify structuring configurations using a structuring template.PUT /v3/{project_id}/lts/struct/templateStatus code: 201Status code: 400Status code: 50", + "product_code":"lts", + "title":"Modifying Structuring Configurations (Recommended)", + "uri":"UpdateStructConfig.html", + "doc_type":"api", + "p_code":"55", + "code":"57" + }, + { + "desc":"This API is used to delete a structuring rule of a log stream.DELETE /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status code: 403S", + "product_code":"lts", + "title":"Deleting a Structuring Rule", + "uri":"lts_api_0044.html", + "doc_type":"api", + "p_code":"55", + "code":"58" + }, + { + "desc":"This API is used to query the structuring rule of a specified log stream.GET /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status co", + "product_code":"lts", + "title":"Querying a Structuring Rule", + "uri":"lts_api_0041.html", + "doc_type":"api", + "p_code":"55", + "code":"59" + }, + { + "desc":"This API is used to query the brief list of structuring templates.GET /v3/{project_id}/lts/struct/customtemplate/listStatus code: 200Status code: 400Status code: 500Obtai", + "product_code":"lts", + "title":"Querying the Brief List of Structuring Templates", + "uri":"ListBreifStructTemplate.html", + "doc_type":"api", + "p_code":"55", + "code":"60" + }, + { + "desc":"This API is used to query a structuring template.Note:A user can call this API for up to 50 times per second.GET /v3/{project_id}/lts/struct/customtemplateStatus code: 20", + "product_code":"lts", + "title":"Querying a Structuring Template", + "uri":"ListStructTemplate.html", + "doc_type":"api", + "p_code":"55", + "code":"61" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Alarm Topics", + "uri":"topic_300000008.html", + "doc_type":"api", + "p_code":"7", + "code":"62" + }, + { + "desc":"This API is used to query an SMN topic.GET /v2/{project_id}/lts/notifications/topicsStatus code: 200Status code: 400Status code: 500Querying an SMN topicStatus code: 200T", + "product_code":"lts", + "title":"Querying an SMN Topic", + "uri":"lts_api_0061.html", + "doc_type":"api", + "p_code":"62", + "code":"63" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Message Template Management", + "uri":"topic_300000009.html", + "doc_type":"api", + "p_code":"7", + "code":"64" + }, + { + "desc":"This API is used to create a notification template. Currently, each account can create a maximum of 100 notification templates. After a notification template is created, ", + "product_code":"lts", + "title":"Creating a Message Template", + "uri":"CreateNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"65" + }, + { + "desc":"This API is used to modify a notification template base on its name.PUT /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 201Status code: 400Stat", + "product_code":"lts", + "title":"Modifying a Message Template", + "uri":"UpdateNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"66" + }, + { + "desc":"This API is used to query the message template list.GET /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 200Status code: 500Querying a message t", + "product_code":"lts", + "title":"Querying Message Templates", + "uri":"ListNotificationTemplates.html", + "doc_type":"api", + "p_code":"64", + "code":"67" + }, + { + "desc":"This API is used to delete a notification template.DELETE /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 400Status code: 500Deleting a message", + "product_code":"lts", + "title":"Deleting a Message Template", + "uri":"DeleteNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"68" + }, + { + "desc":"This API is used to query a notification template.GET /v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}Status code: 200Status code: 401Status ", + "product_code":"lts", + "title":"Querying a Message Template", + "uri":"ShowNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"69" + }, + { + "desc":"This API is used to preview the email format of a notification template.POST /v2/{project_id}/{domain_id}/lts/events/notification/templates/viewStatus code: 200Status cod", + "product_code":"lts", + "title":"Previewing the Email Format of a Message Template", + "uri":"ListNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"70" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Keyword Alarm Rules", + "uri":"topic_300000010.html", + "doc_type":"api", + "p_code":"7", + "code":"71" + }, + { + "desc":"This API is used to create a keyword alarm. Currently, each account can create a maximum of 200 keyword alarms and SQL alarms.POST /v2/{project_id}/lts/alarms/keywords-al", + "product_code":"lts", + "title":"Creating a Keyword Alarm Rule", + "uri":"lts_api_0081.html", + "doc_type":"api", + "p_code":"71", + "code":"72" + }, + { + "desc":"This API is used to modify a keyword alarm.PUT /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 400Status code: 500Modifying a keyword alarm ru", + "product_code":"lts", + "title":"Modifying a Keyword Alarm Rule", + "uri":"lts_api_0082.html", + "doc_type":"api", + "p_code":"71", + "code":"73" + }, + { + "desc":"This API is used to query a keyword alarm.GET /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 500Querying a keyword alarm ruleStatus code: 200", + "product_code":"lts", + "title":"Querying a Keyword Alarm Rule", + "uri":"lts_api_0083.html", + "doc_type":"api", + "p_code":"71", + "code":"74" + }, + { + "desc":"This API is used to delete a keyword alarm.DELETE /v2/{project_id}/lts/alarms/keywords-alarm-rule/{keywords_alarm_rule_id}Status code: 400Status code: 500Deleting a keywo", + "product_code":"lts", + "title":"Deleting a Keyword Alarm Rule", + "uri":"lts_api_0084.html", + "doc_type":"api", + "p_code":"71", + "code":"75" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Alarm List", + "uri":"topic_300000011.html", + "doc_type":"api", + "p_code":"7", + "code":"76" + }, + { + "desc":"This API is used to query the alarm list.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/queryStatus code: 200Status code: 400Status code: 500Querying the active o", + "product_code":"lts", + "title":"Querying the Active or Historical Alarm List", + "uri":"lts_api_0091.html", + "doc_type":"api", + "p_code":"76", + "code":"77" + }, + { + "desc":"This API is used to delete an active alarm.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/clearNoneDeleting an active alarm by alarm IDNoneSee Error Codes.", + "product_code":"lts", + "title":"Deleting an Active Alarm", + "uri":"lts_api_0092.html", + "doc_type":"api", + "p_code":"76", + "code":"78" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Tag Management", + "uri":"topic_300000012.html", + "doc_type":"api", + "p_code":"7", + "code":"79" + }, + { + "desc":"This API is used to tag a resource.POST /v1/{project_id}/{resource_type}/{resource_id}/tags/actionStatus code: 200Status code: 201Status code: 400Status code: 500Creating", + "product_code":"lts", + "title":"Tag Management", + "uri":"CreateTags.html", + "doc_type":"api", + "p_code":"79", + "code":"80" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Quick Search", + "uri":"topic_300000013.html", + "doc_type":"api", + "p_code":"7", + "code":"81" + }, + { + "desc":"Adding a Quick SearchPOST /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 201Status code: 400Status code: 500Adding a Quick SearchStat", + "product_code":"lts", + "title":"Adding a Quick Search", + "uri":"CreateSearchCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"82" + }, + { + "desc":"This API is used to obtain quick search.GET /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Obtaini", + "product_code":"lts", + "title":"Obtaining a Quick Search", + "uri":"ListCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"83" + }, + { + "desc":"This API is used to delete a quick search.DELETE /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 400Status code: 500Deleting a quick s", + "product_code":"lts", + "title":"Deleting a Quick Search", + "uri":"DeleteSearchCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"84" + }, + { + "desc":"This API is used to query all quick searches in a log group.GET /v1.0/{project_id}/lts/groups/{group_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Q", + "product_code":"lts", + "title":"Querying All Quick Searches in a Log Group", + "uri":"ListQueryAllSearchCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"85" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Appendix", + "uri":"lts_api_0019.html", "doc_type":"api", "p_code":"", - "code":"26" + "code":"86" }, { - "desc":"Table 1 lists the status code.", + "desc":"Table 1 lists the status codes.", "product_code":"lts", - "title":"Status Code", - "uri":"lts_02_0020.html", + "title":"Status Codes", + "uri":"lts_api_0020.html", "doc_type":"api", - "p_code":"26", - "code":"27" + "p_code":"86", + "code":"87" }, { - "desc":"This section explains the meanings of error code responses returned by LTS APIs.{\"error_msg\":\"Current user is not authenticated correctly, check your token.\",\"error_code\"", + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", - "title":"Error Code", - "uri":"lts_02_0021.html", + "title":"Error Codes", + "uri":"ErrorCode.html", "doc_type":"api", - "p_code":"26", - "code":"28" + "p_code":"86", + "code":"88" }, { - "desc":"Account and project IDs are required in URLs when you call some APIs.Obtain the IDs from the console.Log in to the LTS console.On the Log Management page, obtain the log ", + "desc":"Account and project IDs are required in URLs when you call some APIs.Log in to the management console.Hover the mouse pointer over the username and choose My Credentials ", "product_code":"lts", - "title":"Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID", + "title":"Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID", "uri":"lts_api_0006.html", "doc_type":"api", - "p_code":"26", - "code":"29" + "p_code":"86", + "code":"89" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Change History", - "uri":"lts_02_0014.html", + "uri":"lts_api_0023.html", "doc_type":"api", "p_code":"", - "code":"30" + "code":"90" } ] \ No newline at end of file diff --git a/docs/lts/api-ref/CreateAccessConfig.html b/docs/lts/api-ref/CreateAccessConfig.html new file mode 100644 index 000000000..2f5d1c054 --- /dev/null +++ b/docs/lts/api-ref/CreateAccessConfig.html @@ -0,0 +1,1344 @@ + + +
This API is used to create a log ingestion configuration.
+POST /v3/{project_id}/lts/access-config
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Account Tenant ID, Project Resource Set ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
access_config_name + |
+Yes + |
+String + |
+Ingestion configuration name. +It should match the regular expression: ^(?!.)(?!_)(?!.*?.$)[\u4e00-\u9fa5a-zA-Z0-9-_.]{1,64}$. +Minimum: 1 +Maximum: 64 + |
+
access_config_type + |
+Yes + |
+String + |
+Ingestion configuration type. AGENT: ECS access; K8S_CCE: CCE access + |
+
access_config_detail + |
+Yes + |
+AccessConfigDeatilCreate object + |
+Access configuration details. + |
+
log_info + |
+Yes + |
++ | +Log information + |
+
host_group_info + |
+No + |
++ | +Host group information + |
+
access_config_tag + |
+No + |
+Array of accessConfigTag objects + |
+Tag information. A tag key must be unique. Up to 20 tags are allowed. + |
+
binary_collect + |
+No + |
+Boolean + |
+Binary collection. + |
+
log_split + |
+No + |
+Boolean + |
+Log splitting. + |
+
cluster_id + |
+No + |
+String + |
+Cluster ID + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
paths + |
+No + |
+Array of strings + |
+Collection paths. +
|
+
black_paths + |
+No + |
+Array of strings + |
+Collection path blacklist. +
|
+
format + |
+Yes + |
+AccessConfigFormatCreate object + |
+Log format. + |
+
windows_log_info + |
+No + |
++ | +Windows event logs. + |
+
stdout + |
+No + |
+Boolean + |
+Standard output switch. This parameter is used only when logs are collected from CCE. + |
+
stderr + |
+No + |
+Boolean + |
+Standard error switch. This parameter is used only when logs are collected from CCE. + |
+
pathType + |
+No + |
+String + |
+Log collection from CCE. This parameter is used only when logs are collected from CCE. + |
+
namespaceRegex + |
+No + |
+String + |
+Regular expression matching of Kubernetes namespaces. This parameter is used only when logs are collected from CCE. + |
+
podNameRegex + |
+No + |
+String + |
+Regular expression matching of Kubernetes pods. This parameter is used only when logs are collected from CCE. + |
+
containerNameRegex + |
+No + |
+String + |
+Regular expression matching of Kubernetes container names. This parameter is used only when logs are collected from CCE. + |
+
includeLabels + |
+No + |
+Map<String,String> + |
+Container label trustlist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
excludeLabels + |
+No + |
+Map<String,String> + |
+Container label blocklist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
includeEnvs + |
+No + |
+Map<String,String> + |
+Environment variable trustlist. A maximum of 30 environment variable whitelists can be created. Key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
excludeEnvs + |
+No + |
+Map<String,String> + |
+Environment variable blocklist. A maximum of 30 environment variables can be created. The key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
logLabels + |
+No + |
+Map<String,String> + |
+Container label log tag. A maximum of 30 tags can be created. The key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
logEnvs + |
+No + |
+Map<String,String> + |
+Environment variable log tag. A maximum of 30 tags can be created. The key name must be unique. This parameter is used only when logs are collected from CCE. + |
+
includeK8sLabels + |
+No + |
+Map<String,String> + |
+Kubernetes label trustlist. A maximum of 30 whitelists can be created. The key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
excludeK8sLabels + |
+No + |
+Map<String,String> + |
+Kubernetes label blocklist. A maximum of 30 blocklists can be created. The key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
logK8s + |
+No + |
+Map<String,String> + |
+Kubernetes label log tag. A maximum of 30 tags can be created. The key names must be unique. This parameter is used only when logs are collected from CCE. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
single + |
+No + |
++ | +Single-line logs. + |
+
multi + |
+No + |
++ | +Multi-line logs. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
mode + |
+No + |
+String + |
+Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard. + |
+
value + |
+No + |
+String + |
+Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
mode + |
+No + |
+String + |
+Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used. + |
+
value + |
+No + |
+String + |
+Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
categorys + |
+Yes + |
+Array of strings + |
+Type of Windows event logs to be collected. +
|
+
time_offset + |
+Yes + |
+AccessConfigTimeOffset object + |
+Offset from first collection time. + |
+
event_level + |
+Yes + |
+Array of strings + |
+Event level. +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
offset + |
+Yes + |
+Long + |
+Time offset. +When unit is day, the value ranges from 1 to 7. +When unit is hour, the value ranges from 1 to 168. +When unit is sec, the value ranges from 1 to 604800. + |
+
unit + |
+Yes + |
+String + |
+Unit of the time offset. +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_group_id + |
+Yes + |
+String + |
+Log group ID. Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project Resource Set ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project Resource Set ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_group_id_list + |
+Yes + |
+Array of strings + |
+List of host group IDs. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+No + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
access_config_id + |
+String + |
+Ingestion configuration ID. + |
+
access_config_name + |
+String + |
+Ingestion configuration name. + |
+
access_config_type + |
+String + |
+Ingestion configuration type. The value AGENT indicates host log ingestion. + |
+
create_time + |
+Long + |
+Creation time. + |
+
access_config_detail + |
+AccessConfigDeatilResponse object + |
+Ingestion configuration details. + |
+
log_info + |
+AccessConfigQueryLogInfo object + |
+Log details. + |
+
host_group_info + |
+AccessConfigHostGroupIdList object + |
+Host group ID list. + |
+
access_config_tag + |
+Array of accessConfigTagResponse objects + |
+Tag information. + |
+
log_split + |
+Boolean + |
+Log splitting. + |
+
binary_collect + |
+Boolean + |
+Binary collection. + |
+
cluster_id + |
+String + |
+CCE cluster ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
paths + |
+Array of strings + |
+Collection paths. + |
+
black_paths + |
+Array of strings + |
+Collection path blacklist. + |
+
format + |
+AccessConfigFormatCreate object + |
+Log format. + |
+
windows_log_info + |
++ | +Windows event logs. + |
+
stdout + |
+Boolean + |
+Standard output switch. This parameter is used only for CCE log ingestion. + |
+
stderr + |
+Boolean + |
+Standard error switch. This parameter is used only for CCE log ingestion. + |
+
pathType + |
+String + |
+CCE log ingestion type. This parameter is used only for CCE log ingestion. + |
+
namespaceRegex + |
+String + |
+Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion. + |
+
podNameRegex + |
+String + |
+Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion. + |
+
containerNameRegex + |
+String + |
+Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion. + |
+
includeLabels + |
+Map<String,String> + |
+Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeLabels + |
+Map<String,String> + |
+Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeEnvs + |
+Map<String,String> + |
+Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeEnvs + |
+Map<String,String> + |
+Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logLabels + |
+Map<String,String> + |
+Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logEnvs + |
+Map<String,String> + |
+Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeK8sLabels + |
+Map<String,String> + |
+Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeK8sLabels + |
+Map<String,String> + |
+Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logK8s + |
+Map<String,String> + |
+Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
single + |
++ | +Single-line logs. + |
+
multi + |
++ | +Multi-line logs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard. + |
+
value + |
+String + |
+Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used. + |
+
value + |
+String + |
+Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
categorys + |
+Array of strings + |
+Type of Windows event logs to be collected. +
|
+
time_offset + |
+AccessConfigTimeOffset object + |
+Offset from first collection time. + |
+
event_level + |
+Array of strings + |
+Event level. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
offset + |
+Long + |
+Time offset. +When unit is day, the value ranges from 1 to 7. +When unit is hour, the value ranges from 1 to 168. +When unit is sec, the value ranges from 1 to 604800. + |
+
unit + |
+String + |
+Unit of the time offset. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
log_group_name_alias + |
+String + |
+Log group alias. + |
+
log_stream_name_alias + |
+String + |
+Log stream alias. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id_list + |
+Array of strings + |
+List of host group IDs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
POST https://{endpoint}/v3/{project_id}/lts/access-config
+
+{
+ "access_config_name" : "myapinew322",
+ "access_config_type" : "K8S_CCE",
+ "access_config_detail" : {
+ "pathType" : "CONTAINER_STDOUT",
+ "stdout" : "true",
+ "stderr" : "false",
+ "format" : {
+ "single" : {
+ "mode" : "system",
+ "value" : "1678969382000"
+ }
+ },
+ "namespaceRegex" : "default",
+ "podNameRegex" : "abc",
+ "containerNameRegex" : "my",
+ "includeLabels" : {
+ "a" : "1"
+ },
+ "excludeLabels" : {
+ "b" : "2"
+ },
+ "logLabels" : {
+ "c" : "3"
+ },
+ "includeK8sLabels" : {
+ "d" : "4"
+ },
+ "excludeK8sLabels" : {
+ "e" : "5"
+ },
+ "logK8s" : {
+ "f" : "6"
+ },
+ "includeEnvs" : {
+ "g" : "7"
+ },
+ "excludeEnvs" : {
+ "h" : "8"
+ },
+ "logEnvs" : {
+ "i" : "9"
+ }
+ },
+ "log_info" : {
+ "log_group_id" : "9575cb24-290c-478e-a5db-88d6d1dc513b",
+ "log_stream_id" : "3581bee9-8698-476e-a0ba-b0f310ed99cf"
+ },
+ "host_group_info" : {
+ "host_group_id_list" : [ "12b0bbd1-4eda-456b-a641-647aa66bdeab" ]
+ },
+ "access_config_tag" : [ {
+ "key" : "my01",
+ "value" : "001"
+ }, {
+ "key" : "my02",
+ "value" : "002"
+ } ],
+ "binary_collect" : "false",
+ "log_split" : "false"
+}
+POST https://{endpoint}/v3/{project_id}/lts/access-config
+
+{
+ "access_config_name" : "Tesxxx",
+ "access_config_type" : "AGENT",
+ "access_config_detail" : {
+ "paths" : [ "/test/xxx", "/texxx" ],
+ "black_paths" : [ "/testxxx", "/tesxxx" ],
+ "format" : {
+ "multi" : {
+ "mode" : "time",
+ "value" : "YYYY-MM-DD hh:mm:ss"
+ }
+ },
+ "windows_log_info" : {
+ "categorys" : [ "System", "Security", "Setup" ],
+ "event_level" : [ "warning", "error", "critical", "verbose" ],
+ "time_offset" : {
+ "offset" : 111,
+ "unit" : "hour"
+ }
+ }
+ },
+ "log_info" : {
+ "log_group_id" : "b179326d-c3be-4217-a3d9-xxxx",
+ "log_stream_id" : "020a6fa0-4740-4888-af06-98xxxxxx"
+ },
+ "host_group_info" : {
+ "host_group_id_list" : [ "4ee44d4f-a72b-40cf-a3c7-1xxxxx" ]
+ },
+ "access_config_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ }, {
+ "key" : "xxx1",
+ "value" : "xxx1"
+ } ]
+}
+Status code: 200
+The ingestion configuration is created.
+{
+ "access_config_detail" : {
+ "containerNameRegex" : "container-1",
+ "format" : {
+ "single" : {
+ "mode" : "system",
+ "value" : "1678969382000"
+ }
+ },
+ "namespaceRegex" : "default",
+ "pathType" : "container_stdout",
+ "paths" : [ ],
+ "podNameRegex" : "mystdout-6d7458d77c-rhjcc",
+ "stderr" : true,
+ "stdout" : true
+ },
+ "access_config_id" : "03b16999-95cf-453b-9668-7aa1fafa564e",
+ "access_config_name" : "myapinew32Y",
+ "access_config_tag" : [ {
+ "key" : "my01",
+ "value" : "001"
+ }, {
+ "key" : "my02",
+ "value" : "002"
+ } ],
+ "access_config_type" : "K8S_CCE",
+ "binary_collect" : true,
+ "create_time" : 1685626665176,
+ "log_info" : {
+ "log_group_id" : "9575cb24-290c-478e-a5db-88d6d1dc513b",
+ "log_group_name" : "my-group",
+ "log_stream_id" : "eea03c27-e041-4bec-bd03-6afa10a6561a",
+ "log_stream_name" : "lts-topic-cceapi"
+ },
+ "log_split" : true
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1807",
+ "error_msg" : "Invalid access config name"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The ingestion configuration is created. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to create a cross-account log ingestion configuration.
+POST /v2.0/{project_id}/lts/createAgencyAccess
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=utf8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
preview_agency_list + |
+Yes + |
+Array of PreviewAgencyLogAccessReqBody objects + |
+Preview of the proxy list. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
agency_access_type + |
+Yes + |
+String + |
+Log ingestion type. + |
+
agency_log_access + |
+Yes + |
+String + |
+Cross-account log ingestion configuration name. + |
+
log_agencyStream_name + |
+Yes + |
+String + |
+Delegator log stream name. + |
+
log_agencyStream_id + |
+Yes + |
+String + |
+Delegator log stream ID. + |
+
log_agencyGroup_name + |
+Yes + |
+String + |
+Delegator log group name. + |
+
log_agencyGroup_id + |
+Yes + |
+String + |
+Delegator log group ID. + |
+
log_beAgencystream_name + |
+Yes + |
+String + |
+Delegatee log stream name. + |
+
log_beAgencystream_id + |
+Yes + |
+String + |
+Delegatee log stream ID. + |
+
log_beAgencygroup_name + |
+Yes + |
+String + |
+Delegatee log group name. + |
+
log_beAgencygroup_id + |
+Yes + |
+String + |
+Delegatee log group ID. + |
+
be_agency_project_id + |
+Yes + |
+String + |
+Delegatee project ID. + |
+
agency_project_id + |
+Yes + |
+String + |
+Delegator project ID. + |
+
agency_domain_name + |
+Yes + |
+String + |
+Delegator account name. + |
+
agency_name + |
+Yes + |
+String + |
+Agency name. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
LTSAgencyAccessConfigInfoList + |
+Array of LTSAccessConfigInfoRespon200 objects + |
+Response list for creating a log ingestion configuration across accounts. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
access_config_id + |
+String + |
+Cross-account log ingestion ID. + |
+
project_id + |
+String + |
+Project ID. + |
+
access_config_name + |
+String + |
+Cross-account log ingestion name. + |
+
access_config_type + |
+Object + |
+Cross-account log ingestion type. + |
+
group_id + |
+String + |
+Log group ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
create_time + |
+Long + |
+Creation time. + |
+
agency_log_access + |
++ | +Information of the delegated ingestion. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
agency_access_type + |
+String + |
+Log ingestion type. + |
+
agency_log_access + |
+String + |
+Cross-account log ingestion configuration name. + |
+
log_agencyStream_name + |
+String + |
+Delegator log stream name. + |
+
log_agencyStream_id + |
+String + |
+Delegator log stream ID. + |
+
log_agencyGroup_name + |
+String + |
+Delegator log group name. + |
+
log_agencyGroup_id + |
+String + |
+Delegator log group ID. + |
+
log_beAgencystream_name + |
+String + |
+Delegatee log stream name. + |
+
log_beAgencystream_id + |
+String + |
+Delegatee log stream ID. + |
+
log_beAgencygroup_name + |
+String + |
+Delegatee log group name. + |
+
log_beAgencygroup_id + |
+String + |
+Delegatee log group ID. + |
+
be_agency_project_id + |
+String + |
+Delegatee project ID. + |
+
agency_project_id + |
+String + |
+Delegator project ID. + |
+
agency_domain_name + |
+String + |
+Delegator account name. + |
+
agency_name + |
+String + |
+Agency name. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Creating a cross-account log ingestion configuration
+POST https://{endpoint}/v2.0/{project_id}/lts/createAgencyAccess
+
+{
+ "preview_agency_list" : [ {
+ "agency_log_access" : "rule_lb30",
+ "agency_access_type" : "AGENCYACCESS",
+ "agency_name" : "wenshufeng",
+ "agency_domain_name" : "paas_aom_z00418070_01",
+ "agency_project_id" : "a0a12b069ab4491185d7cf26c3e86ada",
+ "be_agency_project_id" : "2a473356cca5487f8373be891bffc1cf",
+ "log_agencyStream_name" : "lts-topic-bug",
+ "log_agencyStream_id" : "beb169ff-e6e9-4bea-8e77-50afdec74071",
+ "log_agencyGroup_name" : "lts-group-sgq",
+ "log_agencyGroup_id" : "f06cbfa0-7243-4031-9380-ae0465bd3997",
+ "log_beAgencystream_name" : "lts-topic-ECS",
+ "log_beAgencystream_id" : "36ce06b0-c6bf-436d-9abe-39de86da28bb",
+ "log_beAgencygroup_name" : "lts-group-sgqECS",
+ "log_beAgencygroup_id" : "1e749063-d9f5-474f-a537-00cad4e9a108"
+ } ]
+}
+Status code: 201
+The cross-account log ingestion configuration is created.
+[ {
+ "access_config_id" : "e929f40e-d1cf-4d59-b656-a2995cbd3229",
+ "access_config_name" : "rule_lb30",
+ "access_config_type" : "AGENCYACCESS",
+ "agency_log_access" : {
+ "agency_accessConfig_id" : "e929f40e-d1cf-4d59-b656-a2995cbd3229",
+ "agency_access_type" : "AGENCYACCESS",
+ "agency_domain_name" : "paas_aom_z00418070_01",
+ "agency_log_access" : "rule_lb30",
+ "agency_name" : "wenshufeng",
+ "agency_project_id" : "a0a12b069ab4491185d7cf26c3e86ada",
+ "be_agency_project_id" : "2a473356cca5487f8373be891bffc1cf",
+ "log_agencyGroup_id" : "f06cbfa0-7243-4031-9380-ae0465bd3997",
+ "log_agencyGroup_name" : "lts-group-sgq",
+ "log_agencyStream_id" : "beb169ff-e6e9-4bea-8e77-50afdec74071",
+ "log_agencyStream_name" : "lts-topic-bug",
+ "log_beAgencygroup_id" : "1e749063-d9f5-474f-a537-00cad4e9a108",
+ "log_beAgencygroup_name" : "lts-group-sgqECS",
+ "log_beAgencystream_id" : "36ce06b0-c6bf-436d-9abe-39de86da28bb",
+ "log_beAgencystream_name" : "lts-topic-ECS"
+ },
+ "binary_collect" : false,
+ "create_time" : 1694400753168,
+ "group_id" : "1e749063-d9f5-474f-a537-00cad4e9a108",
+ "hostGroupNum" : 0,
+ "hostNum" : 0,
+ "host_group_info_list" : [ ],
+ "host_rule_info" : {
+ "black_paths" : [ ],
+ "pathType" : "host_file",
+ "paths" : [ ],
+ "stderr" : false,
+ "stdout" : false
+ },
+ "id" : "",
+ "indexId" : "",
+ "key" : "",
+ "log_group_name" : "lts-group-sgqECS",
+ "log_split" : false,
+ "log_stream_id" : "36ce06b0-c6bf-436d-9abe-39de86da28bb",
+ "log_stream_name" : "lts-topic-ECS",
+ "pathNum" : 0,
+ "project_id" : "2a473356cca5487f8373be891bffc1cf",
+ "tag_list" : [ ]
+} ]
+Status code: 400
+Failed to create cross-account log ingestion configuration.
+{
+ "message" : {
+ "code" : "LTS.0420",
+ "details" : "Agency not existed, check domain name and agency name"
+ }
+}
+Status code: 500
+Internal service error
+{
+ "message" : {
+ "code" : "LTS.0010",
+ "details" : "The system encountered an internal error"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+The cross-account log ingestion configuration is created. + |
+
400 + |
+Failed to create cross-account log ingestion configuration. + |
+
500 + |
+Internal service error + |
+
See Error Codes.
+Create a host group.
+POST /v3/{project_id}/lts/host-group
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_group_name + |
+Yes + |
+String + |
+Host group name. Use only letters, digits, underscores (_), hyphens (-), and periods (.). Do not start with a period or underscore or end with a period. +Minimum: 1 +Maximum: 64 + |
+
host_group_type + |
+Yes + |
+String + |
+Host group type. +
|
+
host_id_list + |
+No + |
+Array of strings + |
+List of host group IDs. The host type must be the same as the host group type. +Minimum: 36 +Maximum: 36 + |
+
host_group_tag + |
+No + |
+Array of HostGroupTag objects + |
+Tag information. You can add up to 20 tags. + |
+
agent_access_type + |
+No + |
+String + |
+Host access type. +
|
+
labels + |
+No + |
+Array of strings + |
+Host group identifier. If the host access type is LABEL, this field saves the host group identifier. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+No + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id + |
+String + |
+Host group ID. + |
+
host_group_name + |
+String + |
+Host group name. + |
+
host_group_type + |
+String + |
+Host group type. + |
+
host_id_list + |
+Array of strings + |
+Host ID list. + |
+
host_group_tag + |
+Array of HostGroupTagResBody objects + |
+Tag information. + |
+
create_time + |
+Long + |
+Creation time. + |
+
update_time + |
+Long + |
+Update time. + |
+
labels + |
+Array of strings + |
+Host group ID. + |
+
agent_access_type + |
+String + |
+Host access type. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
tags_to_streams_enable + |
+Boolean + |
+Whether to apply the tag to the log stream. Only a tag of a log group can be directly applied to its log stream. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Create a host group. Parameters host_group_name and host_group_type are mandatory.
+POST https://{endpoint}/v3/{project_id}/lts/host-group
+
+{
+ "host_group_name" : "APIxx3",
+ "host_group_type" : "linux",
+ "host_id_list" : [ "dc1dab7e-b045-4e77xxd1bf7", "713a9fxx2df-24c4ca599def" ],
+ "host_group_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx",
+ "tags_to_streams_enable" : false
+ } ]
+}
+Status code: 200
+The host group is created.
+{
+ "host_group_id" : "598c77aa-c69b-42f0-8cb8-983178ad5b38",
+ "host_group_name" : "APIxx3",
+ "host_group_type" : "linux",
+ "host_id_list" : [ "dc1dab7e-b045-4e77-bda4-914d083d1bf7" ],
+ "host_group_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx",
+ "tags_to_streams_enable" : true
+ } ],
+ "create_time" : 1635149410332,
+ "update_time" : 1635149410332
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1812",
+ "error_msg" : "Invalid host group id"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The host group is created. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to create a log group.
+POST /v2/{project_id}/groups
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_group_name + |
+Yes + |
+String + |
+Name of the log group to be created. +The configuration rules are as follows: +A name can contain 1 to 64 characters, +including only letters, digits, underscores (_), hyphens (-), and periods (.). It cannot start with a period or underscore or end with a period. +Minimum: 1 +Maximum: 64 + |
+
ttl_in_days + |
+Yes + |
+Integer + |
+Log retention duration. (Default: 30 days) +Minimum: 1 +Maximum: 365 + |
+
tags + |
+No + |
+Array of tagsBody objects + |
+Tag field information. + |
+
log_group_name_alias + |
+No + |
+String + |
+Log group alias. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+Yes + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+ID of the created log group. +Minimum: 36 +Maximum: 36 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 503
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating a log group
+POST https://{endpoint}/v2/{project_id}/groups
+
+{
+ "log_group_name" : "lts-group-01nh",
+ "ttl_in_days" : 7
+}
+Status code: 201
+The request is successful and the log group has been created.
+{
+ "log_group_id" : "b6b9332b-091f-4b22-b810-264318d2d664"
+}
+Status code: 400
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0009",
+ "error_msg" : "Failed to validate the request body"
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0003",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0102",
+ "error_msg" : "Failed to create log group"
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+The request is successful and the log group has been created. + |
+
400 + |
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
503 + |
+ServiceUnavailable. +The requested service is unavailable. + |
+
See Error Codes.
+This API is used to create a log stream in a specified log group.
+POST /v2/{project_id}/groups/{log_group_id}/streams
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_stream_name + |
+Yes + |
+String + |
+Name of the log stream to be created. +Minimum: 1 +Maximum: 64 + |
+
ttl_in_days + |
+No + |
+Integer + |
+Log retention duration. +Minimum value: 1 +Maximum value: 365 + |
+
tags + |
+No + |
+Array of tagsBody objects + |
+Tag field information. + |
+
log_stream_name_alias + |
+No + |
+String + |
+Log stream alias. +Minimum: 1 +Maximum: 64 + |
+
enterprise_project_name + |
+No + |
+String + |
+Enterprise project name. + NOTE:
+A project name can only contain letters, digits, underscores (_), and hyphens (-). It cannot contain the word default in any form. +The description can contain up to 512 characters. +Minimum: 1 +Maximum: 255 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+Yes + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_stream_id + |
+String + |
+ID of the created log stream. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating a log stream
+POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams
+
+{
+ "log_stream_name" : "lts-stream-02kh"
+}
+Status code: 201
+The request is successful and the log stream has been created.
+{
+ "log_stream_id" : "c54dbc58-0fd8-48ed-b007-6d54981427a7"
+}
+Status code: 400
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0009",
+ "error_msg" : "Failed to validate the request body"
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0003",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0202",
+ "error_msg" : "Failed to create Log stream"
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+The request is successful and the log stream has been created. + |
+
400 + |
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to create a notification template. Currently, each account can create a maximum of 100 notification templates. After a notification template is created, its name cannot be changed.
+POST /v2/{project_id}/{domain_id}/lts/events/notification/templates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
domain_id + |
+Yes + |
+String + |
+Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Notification rule name, which is mandatory. The value can contain only digits, letters, underscores (_), and hyphens (-), and cannot start or end with special characters such as underscores. The value can contain 1 to 100 characters and cannot be changed after being created. +Minimum: 1 +Maximum: 100 + |
+
type + |
+No + |
+Array of strings + |
+Notification method. + |
+
desc + |
+No + |
+String + |
+Template description, which is mandatory. The value can contain only digits, letters, and underscores (_), and cannot start or end with an underscore. The value can contain 0 to 1,024 characters. +Minimum: 0 +Maximum: 1024 + |
+
source + |
+Yes + |
+String + |
+Template source. Currently, this parameter must be set to LTS. Otherwise, the template cannot be filtered. +Minimum: 3 +Maximum: 3 + |
+
locale + |
+Yes + |
+String + |
+Language type, for example, en-us. + |
+
templates + |
+Yes + |
+Array of SubTemplate objects + |
+Template body is an array. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
sub_type + |
+Yes + |
+String + |
+Template subtype, for example, sms or email. + |
+
content + |
+Yes + |
+String + |
+Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types. Currently, the variables supported for keyword alarms are as follows: +
NOTE:
+Each variable must be followed by an English semicolon (;). Otherwise, the template replacement fails. +Minimum: 2 +Maximum: 1024 + |
+
topic + |
+No + |
+String + |
+Email subject. This parameter is valid only when sub_type is set to email. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
name + |
+String + |
+Notification rule name. + |
+
type + |
+Array of strings + |
+Notification method. + |
+
desc + |
+String + |
+Template description. + |
+
source + |
+String + |
+Template source. + |
+
locale + |
+String + |
+Language. + |
+
templates + |
+Array of SubTemplateResBody objects + |
+Template body, which is an array. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
sub_type + |
+String + |
+Template subtype, for example, sms or email. + |
+
content + |
+String + |
+Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL). + |
+
topic + |
+String + |
+Email subject. This parameter is valid only when sub_type is set to email. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating a message template
+POST https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+{
+ "name" : "alarm-template",
+ "desc" : "test",
+ "source" : "LTS",
+ "locale" : "en-us",
+ "templates" : [ {
+ "sub_type" : "sms",
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;"
+ }, {
+ "sub_type" : "email",
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;"
+ } ]
+}
+Status code: 200
+The request is successful.
+{
+ "desc" : "description",
+ "locale" : "en-us",
+ "name" : "postman-test",
+ "source" : "LTS",
+ "templates" : [ {
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;",
+ "sub_type" : "sms"
+ }, {
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+ "sub_type" : "email"
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.2014",
+ "error_msg" : "desc is invalid!"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2014",
+ "error_msg" : "Failed to create notification template."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+Adding a Quick Search
+POST /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criterias
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
group_id + |
+Yes + |
+String + |
+ID of the log group whose log streams will be queried. Generally, it contains 36 characters. +Minimum: 36 +Maximum: 36 + |
+
topic_id + |
+Yes + |
+String + |
+Log stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
criteria + |
+Yes + |
+String + |
+Quick search field. Enter the statement to be queried. + |
+
eps_id + |
+No + |
+String + |
+Enterprise project ID. + |
+
name + |
+Yes + |
+String + |
+Quick search name, which contains 1 to 64 characters, +including only letters, digits, underscores (_), hyphens (-), and periods (.). Do not start with a period or underscore or end with a period. + |
+
search_type + |
+Yes + |
+String + |
+Search type, for example, raw logs. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
id + |
+String + |
+Quick search ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Adding a Quick Search
+POST /v1.0/2a473356cca5487f8373be891bffc1cf/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/topics/2b899d46-218c-4f0c-8ace-a36a290a83a0/search-criterias
+
+{
+ "name" : "test",
+ "criteria" : "content : 1234567891234567891234567891234567891234567891234567891234567894",
+ "eps_id" : "0",
+ "search_type" : "ORIGINALLOG"
+}
+Status code: 201
+Quick search added.
+{
+ "id" : "0eb379f5-f847-4d25-ba89-05967bf1bae3"
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "message" : {
+ "code" : "LTS.0208",
+ "details" : "The log stream does not existed"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "message" : {
+ "code" : "LTS.0203",
+ "details" : "Internal Server Error"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+Quick search added. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to create structuring configurations using a structuring template, which facilitates parameter extraction and simplifies the parameter structure.
+A user can call this API only once per second.
+POST /v3/{project_id}/lts/struct/template
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
template_id + |
+Yes + |
+String + |
+Template ID. When the system template is used, the current attribute can be empty. +Minimum: 0 +Maximum: 36 + |
+
template_name + |
+Yes + |
+String + |
+Template name, which cannot be empty and will be verified. +Minimum: 1 +Maximum: 64 + |
+
template_type + |
+Yes + |
+String + |
+Type of the template. The value can be built_in (system templates) or custom (custom templates). For details about system template types, see section "Log Search and Analysis" > "Cloud Structuring Parsing" > "Structuring Templates" in the LTS User Guide. + |
+
demo_fields + |
+No + |
+Array of FieldModel objects + |
+Example field array. You only need to enter the fields whose status is different from that of is_analysis in the template. + |
+
tag_fields + |
+No + |
+Array of FieldModel objects + |
+Tag field array. You only need to enter the fields whose status is different from that of is_analysis in the template. + |
+
quick_analysis + |
+No + |
+Boolean + |
+Indicates whether to enable quick analysis for demo_fields and tag_fields. If this parameter is set to true, quick analysis is enabled for all fields. If this parameter is left blank or set to false, is_analysis in the template is used to determine whether to enable quick analysis. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating an ELB system template
+POST https://{endpoint}/v3/{project_id}/lts/struct/template
+
+{
+ "log_group_id" : "17f23e52-a23d-46e0-8bc5-xxxxxxxxxxxx",
+ "log_stream_id" : "b4d56d47-b4c4-453e-9047-xxxxxxxxxxxx",
+ "demo_fields" : [ {
+ "field_name" : "msec",
+ "is_analysis" : false
+ }, {
+ "field_name" : "access_log_topic_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "time_iso8601",
+ "is_analysis" : false
+ }, {
+ "field_name" : "log_ver",
+ "is_analysis" : true
+ }, {
+ "field_name" : "remote_addr",
+ "is_analysis" : true
+ }, {
+ "field_name" : "remote_port",
+ "is_analysis" : false
+ }, {
+ "field_name" : "status",
+ "is_analysis" : false
+ }, {
+ "field_name" : "request_method",
+ "is_analysis" : false
+ }, {
+ "field_name" : "scheme",
+ "is_analysis" : true
+ }, {
+ "field_name" : "host",
+ "is_analysis" : true
+ }, {
+ "field_name" : "router_request_uri",
+ "is_analysis" : true
+ }, {
+ "field_name" : "server_protocol",
+ "is_analysis" : true
+ }, {
+ "field_name" : "request_length",
+ "is_analysis" : true
+ }, {
+ "field_name" : "bytes_sent",
+ "is_analysis" : false
+ }, {
+ "field_name" : "body_bytes_sent",
+ "is_analysis" : false
+ }, {
+ "field_name" : "request_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_status",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_connect_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_header_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_response_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_addr",
+ "is_analysis" : false
+ }, {
+ "field_name" : "http_user_agent",
+ "is_analysis" : false
+ }, {
+ "field_name" : "http_referer",
+ "is_analysis" : false
+ }, {
+ "field_name" : "http_x_forwarded_for",
+ "is_analysis" : false
+ }, {
+ "field_name" : "lb_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "listener_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "listener_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "pool_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "member_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "tenant_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "eip_address",
+ "is_analysis" : false
+ }, {
+ "field_name" : "eip_port",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_addr_priv",
+ "is_analysis" : false
+ }, {
+ "field_name" : "certificate_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "ssl_protocol",
+ "is_analysis" : false
+ }, {
+ "field_name" : "ssl_cipher",
+ "is_analysis" : false
+ }, {
+ "field_name" : "sni_domain_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "tcpinfo_rtt",
+ "is_analysis" : false
+ } ],
+ "tag_fields" : [ {
+ "field_name" : "hostIP",
+ "is_analysis" : true
+ } ],
+ "template_type" : "built_in",
+ "template_name" : "ELB",
+ "template_id" : "",
+ "quick_analysis" : false
+}
+Creating a VPC system template
+POST https://{endpoint}/v3/{project_id}/lts/struct/template
+
+{
+ "log_group_id" : "17f23e52-a23d-46e0-8bc5-xxxxxxxxxxxx",
+ "log_stream_id" : "b4d56d47-b4c4-453e-9047-xxxxxxxxxxxx",
+ "demo_fields" : [ {
+ "field_name" : "version",
+ "is_analysis" : false
+ }, {
+ "field_name" : "project_id",
+ "is_analysis" : true
+ }, {
+ "field_name" : "interface_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "srcaddr",
+ "is_analysis" : true
+ }, {
+ "field_name" : "dstaddr",
+ "is_analysis" : true
+ }, {
+ "field_name" : "srcport",
+ "is_analysis" : false
+ }, {
+ "field_name" : "dstport",
+ "is_analysis" : false
+ }, {
+ "field_name" : "protocol",
+ "is_analysis" : false
+ }, {
+ "field_name" : "packets",
+ "is_analysis" : false
+ }, {
+ "field_name" : "bytes",
+ "is_analysis" : false
+ }, {
+ "field_name" : "start",
+ "is_analysis" : false
+ }, {
+ "field_name" : "end",
+ "is_analysis" : false
+ }, {
+ "field_name" : "action",
+ "is_analysis" : true
+ }, {
+ "field_name" : "log_status",
+ "is_analysis" : true
+ } ],
+ "tag_fields" : [ {
+ "field_name" : "hostIP",
+ "is_analysis" : true
+ } ],
+ "template_type" : "built_in",
+ "template_name" : "VPC",
+ "template_id" : "",
+ "quick_analysis" : false
+}
+Status code: 201
+The request is successful.
+none+
Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.2014",
+ "error_msg" : "template_id is invalid!"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2014",
+ "error_msg" : "Failed to create struct config."
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+The request is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to tag a resource.
+POST /v1/{project_id}/{resource_type}/{resource_id}/tags/action
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
resource_type + |
+Yes + |
+String + |
+Resource type. The value can be groups or topics. + |
+
resource_id + |
+Yes + |
+String + |
+Resource ID. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
action + |
+Yes + |
+String + |
+Method of adding tags. + |
+
is_open + |
+Yes + |
+Boolean + |
+Whether to call external APIs. + |
+
tags + |
+Yes + |
+Array of tagsBody objects + |
+Tag field information. Up to 20 tag fields are allowed. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+Yes + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
POST /v1/2a473356cca5487f8373be891bffc1cf/groups/0933a172-379e-44d0-9ed9-f491b1c528ea/tags/action
+
+{
+ "action" : "create",
+ "is_open" : true,
+ "tags" : [ {
+ "key" : "zzz",
+ "value" : "zzz"
+ }, {
+ "key" : "sgq",
+ "value" : "123"
+ } ]
+}
+POST /v1/2a473356cca5487f8373be891bffc1cf/groups/0933a172-379e-44d0-9ed9-f491b1c528ea/tags/action
+
+{
+ "action" : "delete",
+ "is_open" : true,
+ "tags" : [ {
+ "key" : "zzz",
+ "value" : "zzz"
+ }, {
+ "key" : "sgq",
+ "value" : "123"
+ } ]
+}
+Status code: 200
+Succeeded.
+none+
Status code: 201
+Succeeded.
+none+
Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1836",
+ "error_msg" : "action is create or delete"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0203",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Succeeded. + |
+
201 + |
+Succeeded. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to create an OBS transfer task.
+POST /v2/{project_id}/transfers
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_group_id + |
+Yes + |
+String + |
+Log group ID. +Minimum: 36 +Maximum: 36 + |
+
log_streams + |
+Yes + |
+Array of LogStreams objects + |
+Log stream list. + |
+
log_transfer_info + |
+Yes + |
+log_transfer_info object + |
+Log transfer information. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. +Minimum: 36 +Maximum: 36 + |
+
log_stream_name + |
+No + |
+String + |
+Log stream name. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_transfer_type + |
+Yes + |
+String + |
+Log transfer type. OBS indicates that logs are transferred to OBS. + |
+
log_transfer_mode + |
+Yes + |
+String + |
+Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks. + |
+
log_storage_format + |
+Yes + |
+String + |
+Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks. + |
+
log_transfer_status + |
+Yes + |
+String + |
+Log transfer status. The value can be ENABLE, DISABLE, or EXCEPTION. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal. + |
+
log_agency_transfer + |
+No + |
+log_agency_transfer object + |
+Information about delegated log transfer. This parameter is required if you transfer logs for another account. + |
+
log_transfer_detail + |
+Yes + |
+log_transfer_detail object + |
+Log transfer details. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
agency_domain_id + |
+Yes + |
+String + |
+Delegator account ID. + |
+
agency_domain_name + |
+Yes + |
+String + |
+Delegator account name. + |
+
agency_name + |
+Yes + |
+String + |
+Name of the agency created by the delegator. + |
+
agency_project_id + |
+Yes + |
+String + |
+Project ID of the delegator. + |
+
be_agency_domain_id + |
+Yes + |
+String + |
+Account ID of the delegated party (ID of the account that created the log transfer task). + |
+
be_agency_project_id + |
+Yes + |
+String + |
+Project ID of the delegated party (project ID of the account that created the log transfer task). + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
obs_period + |
+Yes + |
+Integer + |
+Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_period_unit + |
+Yes + |
+String + |
+Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_bucket_name + |
+Yes + |
+String + |
+OBS bucket name. This parameter is required when you create an OBS transfer task. +Minimum: 3 +Maximum: 63 + |
+
obs_encrypted_id + |
+No + |
+String + |
+KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket. +Minimum: 36 +Maximum: 36 + |
+
obs_dir_pre_fix_name + |
+No + |
+String + |
+Custom transfer path of an OBS transfer task. This parameter is optional. +Minimum: 1 +Maximum: 64 + |
+
obs_prefix_name + |
+No + |
+String + |
+Transfer file prefix of an OBS transfer task. This parameter is optional. +Minimum: 1 +Maximum: 64 + |
+
obs_time_zone + |
+No + |
+String + |
+Time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone_id must also be specified. + |
+
obs_time_zone_id + |
+No + |
+String + |
+ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified. + |
+
obs_transfer_path + |
+No + |
+String + |
+OBS bucket path, which is the log transfer destination. + |
+
obs_eps_id + |
+No + |
+String + |
+Enterprise project ID of an OBS transfer task. + |
+
obs_encrypted_enable + |
+No + |
+Boolean + |
+Whether OBS bucket encryption is enabled. + |
+
tags + |
+No + |
+Array of strings + |
+If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime. +The common fields are logStreamName, regionName, logGroupName, and projectId, which are optional. The tag for enabling transfer is streamTag, which is optional. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_streams + |
+Array of log_streams objects + |
+Log stream list. + |
+
log_transfer_id + |
+String + |
+Log transfer task ID. + |
+
log_transfer_info + |
+log_transfer_info_RespBody object + |
+Log transfer information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_agency_transfer + |
+log_agency_transfer object + |
+Information about delegated log transfer. This parameter is returned for a delegated log transfer task. + |
+
log_create_time + |
+Integer + |
+Time when the log transfer task was created. + |
+
log_storage_format + |
+String + |
+Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks. + |
+
log_transfer_detail + |
+TransferDetail object + |
+Log transfer details. + |
+
log_transfer_mode + |
+String + |
+Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks. + |
+
log_transfer_status + |
+String + |
+Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal. + |
+
log_transfer_type + |
+String + |
+Log transfer type. OBS indicates that logs are transferred to OBS. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
agency_domain_id + |
+String + |
+Delegator account ID. + |
+
agency_domain_name + |
+String + |
+Delegator account name. + |
+
agency_name + |
+String + |
+Name of the agency created by the delegator. + |
+
agency_project_id + |
+String + |
+Project ID of the delegator. + |
+
be_agency_domain_id + |
+String + |
+Account ID of the delegated party (ID of the account that created the log transfer task). + |
+
be_agency_project_id + |
+String + |
+Project ID of the delegated party (project ID of the account that created the log transfer task). + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
obs_period + |
+Integer + |
+Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_period_unit + |
+String + |
+Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_bucket_name + |
+String + |
+OBS bucket name. This parameter is required when you create an OBS transfer task. + |
+
obs_encrypted_id + |
+String + |
+KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket. + |
+
obs_dir_pre_fix_name + |
+String + |
+Custom transfer path of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$ + |
+
obs_prefix_name + |
+String + |
+Transfer file prefix of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^[a-zA-Z0-9._-]*$ + |
+
obs_time_zone + |
+String + |
+Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified. + |
+
obs_time_zone_id + |
+String + |
+ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified. + |
+
obs_transfer_path + |
+String + |
+OBS bucket path, which is the log transfer destination. + |
+
obs_eps_id + |
+String + |
+Enterprise project ID of an OBS transfer task. + |
+
obs_encrypted_enable + |
+Boolean + |
+Whether OBS bucket encryption is enabled. + |
+
tags + |
+Array of strings + |
+If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime. +The common fields include logStreamName, regionName, logGroupName and projectId, which are optional. +The transfer tag streamTag is optional. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Transferring logs to OBS
+POST https://{endpoint}/v2/{project_id}/transfers
+
+{
+ "log_group_id" : "8ba9e43f-be60-4d8c-9015-xxxxxxxxxxxx",
+ "log_streams" : [ {
+ "log_stream_id" : "c776e1a7-8548-430a-afe5-xxxxxxxxxxxx"
+ } ],
+ "log_transfer_info" : {
+ "log_transfer_type" : "OBS",
+ "log_transfer_mode" : "cycle",
+ "log_storage_format" : "JSON",
+ "log_transfer_status" : "ENABLE",
+ "log_agency_transfer" : {
+ "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+ "agency_name" : "test20210325",
+ "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+ "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+ },
+ "log_transfer_detail" : {
+ "obs_period" : 2,
+ "obs_period_unit" : "min",
+ "obs_bucket_name" : "test0002",
+ "obs_encrypted_id" : "1bd90032-1424-481f-8558-ba49854xxxxx",
+ "obs_dir_pre_fix_name" : "xx",
+ "obs_prefix_name" : "xxxxx",
+ "obs_time_zone" : "UTC+01:00",
+ "obs_time_zone_id" : "Africa/Lagos"
+ }
+ }
+}
+Status code: 200
+The log transfer task is created.
+The following parameters are returned for an OBS transfer task:
+{
+ "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+ "log_group_name" : "lts-group-OBS",
+ "log_streams" : [ {
+ "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+ "log_stream_name" : "lts-topic-OBS"
+ } ],
+ "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+ "log_transfer_info" : {
+ "log_create_time" : 1634802241847,
+ "log_storage_format" : "JSON",
+ "log_agency_transfer" : {
+ "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+ "agency_name" : "test20210325",
+ "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+ "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+ },
+ "log_transfer_detail" : {
+ "obs_period" : 2,
+ "obs_prefix_name" : "",
+ "obs_period_unit" : "min",
+ "obs_transfer_path" : "/0002/LogTanks/xxxx-7/",
+ "obs_bucket_name" : "0002",
+ "obs_encrypted_enable" : false,
+ "obs_dir_pre_fix_name" : "",
+ "obs_time_zone" : "UTC+01:00",
+ "obs_time_zone_id" : "Africa/Lagos",
+ "tags" : [ ]
+ },
+ "log_transfer_mode" : "cycle",
+ "log_transfer_status" : "ENABLE",
+ "log_transfer_type" : "OBS"
+ }
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0207",
+ "error_msg" : "The log stream is associated by transfer"
+}
+Status code: 500
+InternalServerError. The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0207",
+ "error_msg" : "The log stream is associated by transfer"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The log transfer task is created. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+InternalServerError. The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to add a log to favorites.
+POST /v1.0/{project_id}/lts/favorite
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=utf8. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
eps_id + |
+No + |
+String + |
+Enterprise project ID. + |
+
favorite_resource_id + |
+Yes + |
+String + |
+Favorite resource ID. + |
+
favorite_resource_type + |
+Yes + |
+String + |
+Favorite resource type. +
|
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. + |
+
log_group_name + |
+No + |
+String + |
+Log group name. + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+No + |
+String + |
+Log stream name. + |
+
is_global + |
+Yes + |
+Boolean + |
+Whether global favorites are supported. This parameter must be set to true. Otherwise, logs cannot be added to favorites. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
create_time + |
+Integer + |
+Creation time. + |
+
eps_id + |
+String + |
+Enterprise project ID. + |
+
favorite_resource_id + |
+String + |
+Favorite resource ID. + |
+
favorite_resource_type + |
+String + |
+Favorite resource type. + |
+
log_group_id + |
+String + |
+Log group ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
project_id + |
+String + |
+Project ID. + |
+
is_global + |
+Boolean + |
+Whether to enable the function of adding logs to favorites. + |
+
log_group_name_alias + |
+String + |
+Log group alias, which is the same as the log group name by default. + |
+
log_stream_name_alias + |
+String + |
+Log stream alias, which is the same as the log stream name by default. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Adding a Log to Favorites
+POST /v1.0/2a473356cca5487f8373be891bffc1cf/lts/favorite
+
+{
+ "log_group_id" : "d91fff37-9d10-47f1-85de-c2840724908f",
+ "log_group_name" : "lts-group-sgq1",
+ "log_stream_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+ "log_stream_name" : "lts-topic-xxxxtest",
+ "eps_id" : "0",
+ "favorite_resource_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+ "favorite_resource_type" : "log_stream",
+ "is_global" : true
+}
+Status code: 201
+A log is added to favorites.
+{
+ "create_time" : 1669018970929,
+ "eps_id" : "0",
+ "favorite_resource_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+ "is_global" : true,
+ "favorite_resource_type" : "LOG_STREAM",
+ "log_group_id" : "d91fff37-9d10-47f1-85de-c2840724908f",
+ "log_group_name" : "lts-group-sgq1",
+ "log_stream_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+ "log_stream_name" : "lts-topic-xxxxtest",
+ "project_id" : "2a473356cca5487f8373be891bffc1cf"
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "message" : {
+ "code" : "LTS.0603",
+ "details" : "group or stream not exist"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "message" : {
+ "code" : "LTS.0203",
+ "details" : "Internal Server Error"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+A log is added to favorites. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to delete log ingestion configurations.
+DELETE /v3/{project_id}/lts/access-config
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Account Tenant ID, Project Resource Set ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
access_config_id_list + |
+Yes + |
+Array of strings + |
+Ingestion configuration ID list. +Minimum: 36 +Maximum: 36 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
result + |
+Array of AccessConfigInfo objects + |
+Ingestion configuration list. + |
+
total + |
+Long + |
+Total number of ingestion configurations. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
access_config_id + |
+String + |
+Ingestion configuration ID. + |
+
access_config_name + |
+String + |
+Ingestion configuration name. + |
+
access_config_type + |
+String + |
+Ingestion configuration type. The value AGENT indicates host log ingestion. + |
+
create_time + |
+Long + |
+Creation time. + |
+
access_config_detail + |
+AccessConfigDeatilResponse object + |
+Ingestion configuration details. + |
+
log_info + |
+AccessConfigQueryLogInfo object + |
+Log details. + |
+
host_group_info + |
+AccessConfigHostGroupIdList object + |
+Host group ID list. + |
+
access_config_tag + |
+Array of accessConfigTagResponse objects + |
+Tag information. + |
+
log_split + |
+Boolean + |
+Log splitting. + |
+
binary_collect + |
+Boolean + |
+Binary collection. + |
+
cluster_id + |
+String + |
+CCE cluster ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
paths + |
+Array of strings + |
+Collection paths. + |
+
black_paths + |
+Array of strings + |
+Collection path blacklist. + |
+
format + |
+AccessConfigFormatCreate object + |
+Log format. + |
+
windows_log_info + |
++ | +Windows event logs. + |
+
stdout + |
+Boolean + |
+Standard output switch. This parameter is used only for CCE log ingestion. + |
+
stderr + |
+Boolean + |
+Standard error switch. This parameter is used only for CCE log ingestion. + |
+
pathType + |
+String + |
+CCE log ingestion type. This parameter is used only for CCE log ingestion. + |
+
namespaceRegex + |
+String + |
+Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion. + |
+
podNameRegex + |
+String + |
+Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion. + |
+
containerNameRegex + |
+String + |
+Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion. + |
+
includeLabels + |
+Map<String,String> + |
+Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeLabels + |
+Map<String,String> + |
+Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeEnvs + |
+Map<String,String> + |
+Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeEnvs + |
+Map<String,String> + |
+Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logLabels + |
+Map<String,String> + |
+Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logEnvs + |
+Map<String,String> + |
+Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeK8sLabels + |
+Map<String,String> + |
+Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeK8sLabels + |
+Map<String,String> + |
+Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logK8s + |
+Map<String,String> + |
+Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
single + |
++ | +Single-line logs. + |
+
multi + |
++ | +Multi-line logs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard. + |
+
value + |
+String + |
+Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used. + |
+
value + |
+String + |
+Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
categorys + |
+Array of strings + |
+Type of Windows event logs to be collected. +
|
+
time_offset + |
+AccessConfigTimeOffset object + |
+Offset from first collection time. + |
+
event_level + |
+Array of strings + |
+Event level. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
offset + |
+Long + |
+Time offset. +When unit is day, the value ranges from 1 to 7. +When unit is hour, the value ranges from 1 to 168. +When unit is sec, the value ranges from 1 to 604800. + |
+
unit + |
+String + |
+Unit of the time offset. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
log_group_name_alias + |
+String + |
+Log group alias. + |
+
log_stream_name_alias + |
+String + |
+Log stream alias. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id_list + |
+Array of strings + |
+List of host group IDs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Deleting Log Ingestion Configurations
+DELETE https://{endpoint}/v3/{project_id}/lts/access-config
+
+/v3/{project_id}/lts/access-config
+{"access_config_id_list":["xxxx","xxxx"]}
+Status code: 200
+Ingestion configurations deleted.
+{
+ "result" : [ {
+ "access_config_detail" : {
+ "black_paths" : [ "/wjy/hei/tesxxx", "/wjy/hei/tesxxx" ],
+ "format" : {
+ "single" : {
+ "mode" : "wildcard",
+ "value" : "1111"
+ }
+ },
+ "paths" : [ "/wjy/tesxxx", "/wjy/texxx", "/wjyxxxxx" ],
+ "windows_log_info" : {
+ "categorys" : [ "System", "Application", "Security", "Setup" ],
+ "event_level" : [ "information", "warning", "error", "critical", "verbose" ],
+ "time_offset" : {
+ "offset" : 168,
+ "unit" : "hour"
+ }
+ }
+ },
+ "access_config_id" : "aa58d29e-21a9-4761-ba16-8xxxxx",
+ "access_config_name" : "CollectionWjyxxxxxt2",
+ "access_config_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ }, {
+ "key" : "xxx1",
+ "value" : "xxx1"
+ } ],
+ "access_config_type" : "AGENT",
+ "create_time" : 1635043645628,
+ "host_group_info" : {
+ "host_group_id_list" : [ "de4dbed4-a3bc-4877-a7ee-0xxxxxx6" ]
+ },
+ "log_info" : {
+ "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e89xxxxx0",
+ "log_group_name" : "lts-groupxxxxxka",
+ "log_stream_id" : "c4de0538-53e6-41fd-b951-a8xxxxx58d7",
+ "log_stream_name" : "lts-topic-txxxxx"
+ }
+ } ],
+ "total" : 1
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1807",
+ "error_msg" : "Invalid access config id"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Ingestion configurations deleted. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+Delete a host group.
+DELETE /v3/{project_id}/lts/host-group
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_group_id_list + |
+Yes + |
+Array of strings + |
+List of host group IDs. +Minimum: 36 +Maximum: 36 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
result + |
+Array of GetHostGroupInfo objects + |
+Host group details. + |
+
total + |
+Long + |
+Number of deleted host groups. +Minimum: 0 +Maximum: 1000 + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id + |
+String + |
+Host group ID. + |
+
host_group_name + |
+String + |
+Host group name. + |
+
host_group_type + |
+String + |
+Host group type. + |
+
host_id_list + |
+Array of strings + |
+Host ID list. + |
+
host_group_tag + |
+Array of HostGroupTagResBody objects + |
+Tag information. + |
+
create_time + |
+Long + |
+Creation time. + |
+
update_time + |
+Long + |
+Update time. + |
+
labels + |
+Array of strings + |
+Host group ID. + |
+
agent_access_type + |
+String + |
+Host access type. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
tags_to_streams_enable + |
+Boolean + |
+Whether to apply the tag to the log stream. Only a tag of a log group can be directly applied to its log stream. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Delete one or multiple host groups at a time.
+DELETE https://{endpoint}/v3/{project_id}/lts/host-group
+
+/v3/{project_id}/lts/host-group
+{"host_group_id_list":["xxxx","xxxx"]}
+Status code: 200
+Host groups are deleted.
+{
+ "result" : [{
+ "host_group_id" : "598c77aa-c69b-42f0-8cb8-xxxx5b38",
+ "host_group_name" : "devspoxxxou1",
+ "host_group_type" : "linux",
+ "host_id_list" : ["dc1dab7e-b04xxxx", "xxxxx"],
+ "host_group_tag" : [{
+ "key" : "xxx",
+ "value" : "xxx"
+ }, {
+ "key" : "xxx",
+ "value" : "xxx"
+ }
+ ],
+ "create_time" : 1635xx9410332,
+ "update_time" : 163xx0332
+ }
+ ],
+ "total" : 1
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1812",
+ "error_msg" : "Invalid host group id"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Host groups are deleted. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to delete a specified log group. If log transfer is enabled for log streams in a log group, you need to disable the log transfer before the deletion.
+DELETE /v2/{project_id}/groups/{log_group_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Deleting a log group
+DELETE https://{endpoint}/v2/{project_id}/groups/{log_group_id}
+
+/v2/{project_id}/groups/{log_group_id}
+Status code: 400
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0201",
+ "error_msg" : "The log group is not existed"
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0003",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0103",
+ "error_msg" : "Failed to delete log group"
+}
+Status Code + |
+Description + |
+
|---|---|
204 + |
+The request is successful and the log group has been deleted. + |
+
400 + |
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to delete a specified log stream from a specified log group. If log transfer is enabled for a log stream, you need to disable the log transfer before the deletion.
+DELETE /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Deleting a log stream
+DELETE https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}
+
+/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}
+Status code: 400
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0208",
+ "error_msg" : "The log stream does not existed"
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0003",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0203",
+ "error_msg" : "Failed to delete Log stream"
+}
+Status Code + |
+Description + |
+
|---|---|
204 + |
+The request is successful and the log stream has been deleted. + |
+
400 + |
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to delete a notification template.
+DELETE /v2/{project_id}/{domain_id}/lts/events/notification/templates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
domain_id + |
+Yes + |
+String + |
+Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
template_names + |
+Yes + |
+Array of strings + |
+Array of names of templates to be deleted. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Deleting a message template
+DELETE https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+/v2/{project_id}/{domain_id}/lts/events/notification/templates
+{"template_names":["template1","template2"]}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.2015",
+ "error_msg" : "delete template name is empty or projectId is null"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2015",
+ "error_msg" : "Failed to delete notification template."
+}
+Status Code + |
+Description + |
+
|---|---|
204 + |
+If the response body is empty, the request is successfully responded. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to delete a quick search.
+DELETE /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criterias
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
group_id + |
+Yes + |
+String + |
+ID of the log group whose log streams will be queried. Generally, it contains 36 characters. +Minimum: 36 +Maximum: 36 + |
+
topic_id + |
+Yes + |
+String + |
+Log stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
epsId + |
+No + |
+String + |
+Enterprise project ID. + |
+
id + |
+Yes + |
+String + |
+Quick search ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Deleting a quick search
+DELETE /v1.0/2a473356cca5487f8373be891bffc1cf/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/topics/2b899d46-218c-4f0c-8ace-a36a290a83a0/search-criterias
+
+{
+ "id" : "345d2276-1ae8-4495-a6ee-bf77c2e5ffb9",
+ "epsId" : "0"
+}
+Status code: 204
+Quick search deleted.
+none+
Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "message" : {
+ "code" : "LTS.0208",
+ "details" : "The log stream does not existed"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "message" : {
+ "code" : "LTS.0203",
+ "details" : "Internal Server Error"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
204 + |
+Quick search deleted. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to delete an OBS transfer task.
+DELETE /v2/{project_id}/transfers
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_transfer_id + |
+Yes + |
+String + |
+Log transfer task ID. You can obtain the ID by calling either the API for querying log transfer tasks or the API for creating a log transfer task. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_streams + |
+Array of log_streams objects + |
+Log stream list. + |
+
log_transfer_id + |
+String + |
+Log transfer task ID. + |
+
log_transfer_info + |
+log_transfer_info_RespBody object + |
+Log transfer information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_agency_transfer + |
+log_agency_transfer object + |
+Information about delegated log transfer. This parameter is returned for a delegated log transfer task. + |
+
log_create_time + |
+Integer + |
+Time when the log transfer task was created. + |
+
log_storage_format + |
+String + |
+Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks. + |
+
log_transfer_detail + |
+TransferDetail object + |
+Log transfer details. + |
+
log_transfer_mode + |
+String + |
+Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks. + |
+
log_transfer_status + |
+String + |
+Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal. + |
+
log_transfer_type + |
+String + |
+Log transfer type. OBS indicates that logs are transferred to OBS. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
agency_domain_id + |
+String + |
+Delegator account ID. + |
+
agency_domain_name + |
+String + |
+Delegator account name. + |
+
agency_name + |
+String + |
+Name of the agency created by the delegator. + |
+
agency_project_id + |
+String + |
+Project ID of the delegator. + |
+
be_agency_domain_id + |
+String + |
+Account ID of the delegated party (ID of the account that created the log transfer task). + |
+
be_agency_project_id + |
+String + |
+Project ID of the delegated party (project ID of the account that created the log transfer task). + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
obs_period + |
+Integer + |
+Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_period_unit + |
+String + |
+Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_bucket_name + |
+String + |
+OBS bucket name. This parameter is required when you create an OBS transfer task. + |
+
obs_encrypted_id + |
+String + |
+KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket. + |
+
obs_dir_pre_fix_name + |
+String + |
+Custom transfer path of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$ + |
+
obs_prefix_name + |
+String + |
+Transfer file prefix of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^[a-zA-Z0-9._-]*$ + |
+
obs_time_zone + |
+String + |
+Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified. + |
+
obs_time_zone_id + |
+String + |
+ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified. + |
+
obs_transfer_path + |
+String + |
+OBS bucket path, which is the log transfer destination. + |
+
obs_eps_id + |
+String + |
+Enterprise project ID of an OBS transfer task. + |
+
obs_encrypted_enable + |
+Boolean + |
+Whether OBS bucket encryption is enabled. + |
+
tags + |
+Array of strings + |
+If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime. +The common fields include logStreamName, regionName, logGroupName and projectId, which are optional. +The transfer tag streamTag is optional. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Deleting a log transfer task based on the task ID
+DELETE https://{endpoint}/v2/{project_id}/transfers
+
+/v2/{project_id}/transfers?log_transfer_id=cfc43c45-9edc-4a03-8578-0eb00cxxxxxx
+Status code: 200
+The log transfer task is deleted.
+{
+ "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+ "log_group_name" : "lts-group-OBS",
+ "log_streams" : [ {
+ "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+ "log_stream_name" : "lts-topic-OBS"
+ } ],
+ "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+ "log_transfer_info" : {
+ "log_create_time" : 1634802241847,
+ "log_storage_format" : "JSON",
+ "log_agency_transfer" : {
+ "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+ "agency_name" : "test20210325",
+ "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+ "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+ },
+ "log_transfer_detail" : {
+ "obs_period" : 2,
+ "obs_prefix_name" : "",
+ "obs_period_unit" : "min",
+ "obs_transfer_path" : "/0002/LogTanks/xxx/",
+ "obs_bucket_name" : "0002",
+ "obs_encrypted_enable" : false,
+ "obs_dir_pre_fix_name" : "",
+ "obs_time_zone" : "UTC+01:00",
+ "obs_time_zone_id" : "Africa/Lagos"
+ },
+ "log_transfer_mode" : "cycle",
+ "log_transfer_status" : "ENABLE",
+ "log_transfer_type" : "OBS"
+ }
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0405",
+ "error_msg" : "The log transfer does not existed"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The log transfer task is deleted. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to remove a specified resource from favorites.
+DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
fav_res_id + |
+Yes + |
+String + |
+ID of a favorite resource, including its log group or stream. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Removing from Favorites
+DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}
+Status code: 200
+Removed from favorites.
+none+
Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "message" : {
+ "code" : "LTS.0009",
+ "details" : "update favorite failed"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "message" : {
+ "code" : "LTS.0203",
+ "details" : "Internal Server Error"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Removed from favorites. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to configure log collection to stop when the free quota runs out.
+POST /v2/{project_id}/collection/disable
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Disabling log collection beyond free quota
+POST https://{endpoint}/v2/{project_id}/collection/disable
+
+/v2/{project_id}/collection/disable
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+Failed to change the setting of log collection beyond the free quota.
+{
+ "error_code" : "LTS.0210",
+ "error_msg" : "Update continue Collection Status error."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Failed to change the setting of log collection beyond the free quota. + |
+
See Error Codes.
+This API is used to configure log collection to continue when the free quota runs out.
+POST /v2/{project_id}/collection/enable
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Enabling log collection beyond free quota
+POST https://{endpoint}/v2/{project_id}/collection/enable
+
+/v2/{project_id}/collection/enable
+Status code: 403
+Forbidden. The request has been rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+Failed to change the setting of log collection beyond the free quota.
+{
+ "error_code" : "LTS.0210",
+ "error_msg" : "Update continue Collection Status error."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
403 + |
+Forbidden. The request has been rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+Failed to change the setting of log collection beyond the free quota. + |
+
503 + |
+ServiceUnavailable. The requested service is unavailable. + |
+
See Error Codes.
+Status Code + |
+Error Codes + |
+Error Message + |
+Description + |
+Solution + |
+
|---|---|---|---|---|
400 + |
+LTS.0009 + |
+Failed to validate the request body. + |
+Parameter verification failed. + |
+Modify request parameters based on the returned error information and try again. + |
+
400 + |
+LTS.0010 + |
+The system encountered an internal error + |
+An internal error occurred + |
+An internal error occurred in LTS. Contact technical support. + |
+
400 + |
+LTS.0201 + |
+The log group is not existed + |
+Failed to create the log stream because the associated log group does not exist. + |
+Check whether the ID of the log group is correct. + |
+
400 + |
+LTS.0208 + |
+Log stream is associated by transfer + |
+The log stream does not exist. + |
+Check whether the log stream to be deleted exists. + |
+
400 + |
+LTS.0301 + |
+'*' and '?' not allowed as first character + |
+Asterisks (*) and question marks (?) are placed in the middle or at the end of a keyword. + |
+Check the keywords field based on the error information. + |
+
400 + |
+LTS.2001 + |
+Failed to create alarm rule + |
+Creation error. + |
+Check whether the project ID is correct. + |
+
400 + |
+LTS.2002 + |
+Failed to delete alarm rule + |
+Deletion error. + |
+Check whether the database or network connection is normal. + |
+
400 + |
+LTS.2003 + |
+Failed to update alarm rule + |
+Modification error. + |
+Abnormal connection to the database. Check the database instance status. + |
+
400 + |
+LTS.2004 + |
+The size of alarm rule has exceed the limit: 200 + |
+The number of alarm rules cannot exceed 200. + |
+Delete existing alarm rules that are no longer used. + |
+
400 + |
+LTS.2005 + |
+The parameter is incorrect + |
+Incorrect parameter. + |
+Correct the parameter based on the returned error information. + |
+
400 + |
+LTS.2006 + |
+Alarm rule name has already exist + |
+The alarm rule name already exists. + |
+Use another alarm rule name. + |
+
400 + |
+LTS.2007 + |
+Alarm rule not exist + |
+The alarm rule does not exist. + |
+Check whether the alarm rule exists. + |
+
400 + |
+LTS.2008 + |
+Find Alarm rule failed + |
+Failed to query the alarm rule. + |
+Check whether the database or network connection is normal. + |
+
400 + |
+LTS.2009 + |
+User must have SMN service authority + |
+You must have the permissions on SMN. + |
+Acquire the permissions on SMN. + |
+
400 + |
+LTS.2010 + |
+Topics cannot be empty + |
+The SMN topic cannot be empty. + |
+Check whether the SMN topic is empty. + |
+
400 + |
+LTS.2011 + |
+Alarm rule invalid query frequency or invalid cron expression + |
+Invalid query frequency or cron expression. + |
+Check the query frequency or cron expression. + |
+
400 + |
+LTS.2012 + |
+The query time range cannot be larger than 1 hour when the query frequency is less than every 5 minutes. + |
+The query time range cannot be larger than 1 hour when the query frequency is less than every 5 minutes. + |
+Check the query time range and query frequency. + |
+
400 + |
+LTS.2013 + |
+Send Subject Error + |
+Incorrect SMN topic. + |
+Correct the topic based on the error information. + |
+
403 + |
+LTS.0003 + |
+No permission. + |
+Invalid role + |
+Grant the LTS service permission. + |
+
403 + |
+LTS.0011 + |
+Invalid projectId + |
+Invalid project ID. + |
+Ensure that the project ID in the URL is the same as that in the token. + |
+
500 + |
+LTS.0107 + |
+Current user does not have the permission to operate this group + |
+Failed to update the log group. + |
+Abnormal connection to the database. Check the database instance status. + |
+
This API is used to query log ingestion configurations in LTS.
+POST /v3/{project_id}/lts/access-config-list
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project Resource Set ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
access_config_name_list + |
+Yes + |
+Array of strings + |
+List of ingestion configuration names. +Minimum: 1 +Maximum: 64 + |
+
host_group_name_list + |
+Yes + |
+Array of strings + |
+List of host group names. +Minimum: 1 +Maximum: 64 + |
+
log_group_name_list + |
+Yes + |
+Array of strings + |
+List of log group names. +Minimum: 1 +Maximum: 64 + |
+
log_stream_name_list + |
+Yes + |
+Array of strings + |
+List of log stream names. +Minimum: 1 +Maximum: 64 + |
+
access_config_tag_list + |
+No + |
+Array of accessConfigTag objects + |
+Ingestion configuration tags. A tag key must be unique. Up to 20 tags are allowed. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+No + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
result + |
+Array of AccessConfigInfo objects + |
+Ingestion configuration list. + |
+
total + |
+Long + |
+Total number of ingestion configurations. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
access_config_id + |
+String + |
+Ingestion configuration ID. + |
+
access_config_name + |
+String + |
+Ingestion configuration name. + |
+
access_config_type + |
+String + |
+Ingestion configuration type. The value AGENT indicates host log ingestion. + |
+
create_time + |
+Long + |
+Creation time. + |
+
access_config_detail + |
+AccessConfigDeatilResponse object + |
+Ingestion configuration details. + |
+
log_info + |
+AccessConfigQueryLogInfo object + |
+Log details. + |
+
host_group_info + |
+AccessConfigHostGroupIdList object + |
+Host group ID list. + |
+
access_config_tag + |
+Array of accessConfigTagResponse objects + |
+Tag information. + |
+
log_split + |
+Boolean + |
+Log splitting. + |
+
binary_collect + |
+Boolean + |
+Binary collection. + |
+
cluster_id + |
+String + |
+CCE cluster ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
paths + |
+Array of strings + |
+Collection paths. + |
+
black_paths + |
+Array of strings + |
+Collection path blacklist. + |
+
format + |
+AccessConfigFormatCreate object + |
+Log format. + |
+
windows_log_info + |
++ | +Windows event logs. + |
+
stdout + |
+Boolean + |
+Standard output switch. This parameter is used only for CCE log ingestion. + |
+
stderr + |
+Boolean + |
+Standard error switch. This parameter is used only for CCE log ingestion. + |
+
pathType + |
+String + |
+CCE log ingestion type. This parameter is used only for CCE log ingestion. + |
+
namespaceRegex + |
+String + |
+Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion. + |
+
podNameRegex + |
+String + |
+Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion. + |
+
containerNameRegex + |
+String + |
+Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion. + |
+
includeLabels + |
+Map<String,String> + |
+Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeLabels + |
+Map<String,String> + |
+Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeEnvs + |
+Map<String,String> + |
+Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeEnvs + |
+Map<String,String> + |
+Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logLabels + |
+Map<String,String> + |
+Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logEnvs + |
+Map<String,String> + |
+Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeK8sLabels + |
+Map<String,String> + |
+Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeK8sLabels + |
+Map<String,String> + |
+Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logK8s + |
+Map<String,String> + |
+Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
single + |
++ | +Single-line logs. + |
+
multi + |
++ | +Multi-line logs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard. + |
+
value + |
+String + |
+Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used. + |
+
value + |
+String + |
+Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
categorys + |
+Array of strings + |
+Type of Windows event logs to be collected. +
|
+
time_offset + |
+AccessConfigTimeOffset object + |
+Offset from first collection time. + |
+
event_level + |
+Array of strings + |
+Event level. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
offset + |
+Long + |
+Time offset. +When unit is day, the value ranges from 1 to 7. +When unit is hour, the value ranges from 1 to 168. +When unit is sec, the value ranges from 1 to 604800. + |
+
unit + |
+String + |
+Unit of the time offset. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
log_group_name_alias + |
+String + |
+Log group alias. + |
+
log_stream_name_alias + |
+String + |
+Log stream alias. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id_list + |
+Array of strings + |
+List of host group IDs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Log ingestion configurations are filtered by the request body.
+POST https://{endpoint}/v3/{project_id}/lts/access-config-list
+
+{
+ "access_config_name_list" : [ "Collectionxx2", "22x", "2x", "CollectionWjxxxx" ],
+ "host_group_name_list" : [ "wwxx" ],
+ "log_group_name_list" : [ "lts-grxx", "lts-xx", "lts-gxx" ],
+ "log_stream_name_list" : [ "lts-topixx", "lts-txx" ],
+ "access_config_tag_list" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ }, {
+ "key" : "xxx1",
+ "value" : "xxx1"
+ } ]
+}
+Status code: 200
+The query is successful.
+{
+ "result" : [ {
+ "access_config_detail" : {
+ "containerNameRegex" : "my",
+ "excludeEnvs" : {
+ "h" : "8"
+ },
+ "excludeK8sLabels" : {
+ "e" : "5"
+ },
+ "excludeLabels" : {
+ "b" : "2"
+ },
+ "format" : {
+ "single" : {
+ "mode" : "system",
+ "value" : "1678969382000"
+ }
+ },
+ "includeEnvs" : {
+ "g" : "7"
+ },
+ "includeK8sLabels" : {
+ "d30" : "4"
+ },
+ "includeLabels" : {
+ "a" : "1"
+ },
+ "logEnvs" : {
+ "i" : "9"
+ },
+ "logK8s" : {
+ "f" : "6"
+ },
+ "logLabels" : {
+ "c" : "3"
+ },
+ "namespaceRegex" : "default",
+ "pathType" : "container_stdout",
+ "paths" : [ ],
+ "podNameRegex" : "abc",
+ "stderr" : false,
+ "stdout" : true
+ },
+ "access_config_id" : "c3152f88-8b06-4f7f-bbbe-129512f49f87",
+ "access_config_name" : "myapinew322",
+ "access_config_tag" : [ {
+ "key" : "my01",
+ "value" : "001"
+ }, {
+ "key" : "my02",
+ "value" : "002"
+ } ],
+ "access_config_type" : "K8S_CCE",
+ "binary_collect" : false,
+ "create_time" : 1684467787996,
+ "host_group_info" : {
+ "host_group_id_list" : [ "12b0bbd1-4eda-456b-a641-647aa66bdeab" ]
+ },
+ "log_info" : {
+ "log_group_id" : "9575cb24-290c-478e-a5db-88d6d1dc513b",
+ "log_group_name" : "my-group",
+ "log_stream_id" : "3581bee9-8698-476e-a0ba-b0f310ed99cf",
+ "log_stream_name" : "lts-topic-api"
+ },
+ "log_split" : false
+ }, {
+ "access_config_detail" : {
+ "containerNameRegex" : "my",
+ "excludeEnvs" : {
+ "h" : "8"
+ },
+ "excludeK8sLabels" : {
+ "e" : "5"
+ },
+ "excludeLabels" : {
+ "b" : "2"
+ },
+ "format" : {
+ "single" : {
+ "mode" : "system",
+ "value" : "1678969382000"
+ }
+ },
+ "includeEnvs" : {
+ "g" : "7"
+ },
+ "includeK8sLabels" : {
+ "d10" : "4",
+ "d" : "4",
+ "d12" : "4",
+ "d11" : "4",
+ "d14" : "4",
+ "d13" : "4",
+ "d16" : "4",
+ "d15" : "4",
+ "d18" : "4",
+ "d17" : "4",
+ "d1" : "4",
+ "d2" : "4",
+ "d3" : "4",
+ "d4" : "4",
+ "d5" : "4",
+ "d6" : "4",
+ "d7" : "4",
+ "d8" : "4",
+ "d9" : "4"
+ },
+ "includeLabels" : {
+ "a" : "1"
+ },
+ "logEnvs" : {
+ "i" : "9"
+ },
+ "logK8s" : {
+ "f" : "6"
+ },
+ "logLabels" : {
+ "c" : "3"
+ },
+ "namespaceRegex" : "default",
+ "pathType" : "container_stdout",
+ "paths" : [ ],
+ "podNameRegex" : "abc",
+ "stderr" : false,
+ "stdout" : true
+ },
+ "access_config_id" : "550cd738-7b16-4724-9c59-aba61bf16528",
+ "access_config_name" : "myapinew32",
+ "access_config_tag" : [ {
+ "key" : "my01",
+ "value" : "001"
+ }, {
+ "key" : "my02",
+ "value" : "002"
+ } ],
+ "access_config_type" : "K8S_CCE",
+ "binary_collect" : false,
+ "create_time" : 1684463134956,
+ "host_group_info" : {
+ "host_group_id_list" : [ "12b0bbd1-4eda-456b-a641-647aa66bdeab" ]
+ },
+ "log_info" : {
+ "log_group_id" : "9575cb24-290c-478e-a5db-88d6d1dc513b",
+ "log_group_name" : "my-group",
+ "log_group_name_alias" : "my-group",
+ "log_stream_id" : "3581bee9-8698-476e-a0ba-b0f310ed99cf",
+ "log_stream_name" : "lts-topic-api",
+ "log_stream_name_alias" : "lts-topic-api"
+ },
+ "log_split" : false
+ } ],
+ "total" : 2
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1807",
+ "error_msg" : "Invalid access config name"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The query is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query the brief list of structuring templates.
+GET /v3/{project_id}/lts/struct/customtemplate/list
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
results + |
+Array of BriefStructTemplateModel objects + |
+Brief list of structuring templates. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
create_time + |
+Long + |
+Template creation/update time. + |
+
id + |
+String + |
+Template ID. + |
+
template_name + |
+String + |
+Template name. + |
+
template_type + |
+String + |
+Structuring type. Currently, regular expression, JSON, delimiters, and Nginx are supported. + |
+
project_id + |
+String + |
+Project ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+CustomTemplateErrorCode object + |
+Request error message. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+LTS error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Obtaining the Brief List of Structuring Templates of the Current Tenant
+GET https://{endpoint}/v3/{project_id}/lts/struct/customtemplate/list
+
+/v3/{project_id}/lts/struct/customtemplate/list
+Status code: 200
+The request is successful.
+{
+ "results" : [ {
+ "create_time" : 1632897983441,
+ "id" : "47629e46-287d-478c-8888-xxxxxxxxxxxx",
+ "template_name" : "jsonTemplate",
+ "template_type" : "json",
+ "project_id" : "2a473356cca5487f8373be89xxxxxxxx"
+ } ]
+}
+Status code: 400
+Custom log template operation failed.
+{
+ "message" : {
+ "code" : "LTS.0757",
+ "details" : "Log custom template operation failed"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2017",
+ "error_msg" : "Find struct template failed."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
400 + |
+Custom log template operation failed. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to obtain quick search.
+GET /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criterias
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
group_id + |
+Yes + |
+String + |
+ID of the log group whose log streams will be queried. Generally, it contains 36 characters. +Minimum: 36 +Maximum: 36 + |
+
topic_id + |
+Yes + |
+String + |
+Log stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
search_type + |
+No + |
+String + |
+Raw logs. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
search_criterias + |
+Array of GetQuerySearchCriteriasBody objects + |
+Response body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
criteria + |
+String + |
+Quick search of a field. + |
+
name + |
+String + |
+Quick search of a name. + |
+
id + |
+String + |
+Quick search ID. + |
+
search_type + |
+String + |
+Quick search type. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Obtaining a Quick Search
+GET /v1.0/2a473356cca5487f8373be891bffc1cf/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/topics/2b899d46-218c-4f0c-8ace-a36a290a83a0/search-criterias?search_type=ORIGINALLOG+
Status code: 200
+Quick search obtained.
+{
+ "search_criterias" : [ {
+ "criteria" : "content : 1234567891234567891234567891234567891234567891234567891234567894",
+ "name" : "Creating a Number",
+ "id" : "0eb379f5-f847-4d25-ba89-05967bf1bae3",
+ "search_type" : "ORIGINALLOG"
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "message" : {
+ "code" : "LTS.0208",
+ "details" : "The log stream does not existed"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0203",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Quick search obtained. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+Query the host list.
+POST /v3/{project_id}/lts/host-list
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=utf8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_id_list + |
+No + |
+Array of strings + |
+Host ID list. You can filter hosts by host ID. +Minimum: 36 +Maximum: 36 + |
+
filter + |
+Yes + |
+GetHostListFilter object + |
+Filters other than host IDs. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_name_list + |
+No + |
+Array of strings + |
+Host name list. You can filter hosts by host name. +Minimum: 1 +Maximum: 128 + |
+
host_ip_list + |
+No + |
+Array of strings + |
+List of host IP addresses. You can filter hosts by host IP address. +Minimum: 1 +Maximum: 16 + |
+
host_status + |
+No + |
+String + |
+Host status. You can filter hosts by host status. +
|
+
host_version + |
+No + |
+String + |
+Host version. You can filter hosts by host version. +Minimum: 1 +Maximum: 16 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
result + |
+Array of GetHostListInfo objects + |
+Host list. + |
+
total + |
+Long + |
+Total number of hosts. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_id + |
+String + |
+Host ID. + |
+
host_ip + |
+String + |
+Host IP. + |
+
host_name + |
+String + |
+Host name. + |
+
host_status + |
+String + |
+Host status. +
|
+
host_type + |
+String + |
+Host type. +
|
+
host_version + |
+String + |
+Host version. + |
+
update_time + |
+Long + |
+Update time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Hosts are sorted by filters specified in the request body. If no filters are configured in the body, all host groups are queried.
+POST https://{endpoint}/v3/{project_id}/lts/host-list
+
+{
+ "host_id_list" : [ "713a9f81-574b-45aa-92df-24c4caxxxxxx", "c7085aa9-2142-4ada-9f78-bf81ffxxxxxx" ],
+ "filter" : {
+ "host_name_list" : [ "ecs-xxxx", "10.66.16xxx" ],
+ "host_ip_list" : [ "192.168xxxx" ],
+ "host_status" : "running",
+ "host_version" : "5.13.xxxx"
+ }
+}
+Status code: 200
+The host query is successful.
+{
+ "result" : [ {
+ "host_id" : "dc1dab7e-b045-4e77-bda4-914xxxxxx",
+ "host_ip" : "172.16.xxxx",
+ "host_name" : "ecs-apmtexxxxxx",
+ "host_status" : "running",
+ "host_type" : "linux",
+ "host_version" : "5.13.xx.x",
+ "update_time" : 1637223314526
+ } ],
+ "total" : 1
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1807",
+ "error_msg" : "Invalid host id"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The host query is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+Query the host group list.
+POST /v3/{project_id}/lts/host-group-list
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_group_id_list + |
+No + |
+Array of strings + |
+List of host group IDs. +Minimum: 36 +Maximum: 36 + |
+
filter + |
+Yes + |
+GetHostGroupListFilter object + |
+Host group filters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_group_type + |
+No + |
+String + |
+Host group type. +
|
+
host_group_name_list + |
+No + |
+Array of strings + |
+List of host group names. +Minimum: 1 +Maximum: 64 + |
+
host_name_list + |
+No + |
+Array of strings + |
+Host name list. +Minimum: 1 +Maximum: 128 + |
+
host_group_tag + |
+No + |
+GetHostGroupListTag object + |
+Host group tags. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
tag_type + |
+No + |
+String + |
+Tag type. Tag filtering logic: AND or OR. + |
+
tag_list + |
+No + |
+Array of HostGroupTag objects + |
+Host group tags. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+No + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
result + |
+Array of GetHostGroupInfo objects + |
+Host group list. + |
+
total + |
+Long + |
+Total number of host groups. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id + |
+String + |
+Host group ID. + |
+
host_group_name + |
+String + |
+Host group name. + |
+
host_group_type + |
+String + |
+Host group type. + |
+
host_id_list + |
+Array of strings + |
+Host ID list. + |
+
host_group_tag + |
+Array of HostGroupTagResBody objects + |
+Tag information. + |
+
create_time + |
+Long + |
+Creation time. + |
+
update_time + |
+Long + |
+Update time. + |
+
labels + |
+Array of strings + |
+Host group ID. + |
+
agent_access_type + |
+String + |
+Host access type. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
tags_to_streams_enable + |
+Boolean + |
+Whether to apply the tag to the log stream. Only a tag of a log group can be directly applied to its log stream. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Host groups are sorted by filters specified in the request body. If no filters are configured in the body, all host groups are queried.
+POST https://{endpoint}/v3/{project_id}/lts/host-group-list
+
+{
+ "host_group_id_list" : [ "bca6d903-3528-42a8-91f4-586722cxxxxx" ],
+ "filter" : {
+ "host_group_type" : "linux",
+ "host_group_name_list" : [ "wjyTxxx" ],
+ "host_name_list" : [ "ecs-apmtexxxdeletion" ],
+ "host_group_tag" : {
+ "tag_type" : "AND",
+ "tag_list" : [ {
+ "key" : "xxx",
+ "value" : "xxx",
+ "tags_to_streams_enable" : true
+ } ]
+ }
+ }
+}
+Status code: 200
+The host group query is successful.
+{
+ "result" : [ {
+ "host_group_id" : "598c77aa-c69b-42f0-8cb8-xxxx5b38",
+ "host_group_name" : "wjyTxxx",
+ "host_group_type" : "linux",
+ "host_id_list" : [ "dc1dab7e-b04xxxx", "xxxxx" ],
+ "host_group_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ } ],
+ "create_time" : 1635459410332,
+ "update_time" : 163560332
+ } ],
+ "total" : 1
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1807",
+ "error_msg" : "Invalid host group id"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The host group query is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query all log groups of an account.
+GET /v2/{project_id}/groups
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_groups + |
+Array of LogGroup objects + |
+Log group information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
creation_time + |
+Long + |
+Log group creation time. + |
+
log_group_name + |
+String + |
+Log group name. +Minimum: 1 +Maximum: 64 + |
+
log_group_id + |
+String + |
+Log group ID. +Minimum: 36 +Maximum: 36 + |
+
ttl_in_days + |
+Integer + |
+Log retention duration (days). +Minimum: 1 +Maximum: 365 + |
+
tag + |
+Map<String,String> + |
+Log group tag. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying All Log Groups of an Account
+GET https://{endpoint}/v2/{project_id}/groups
+
+/v2/{project_id}/groups
+Status code: 200
+The request is successful.
+{
+ "log_groups" : [ {
+ "creation_time" : 1630547141853,
+ "log_group_name" : "lts-group-01nh",
+ "log_group_id" : "b6b9332b-091f-4b22-b810-264318d2d664",
+ "ttl_in_days" : 7
+ } ]
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0003",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query the distribution of reported log events that contain a specified keyword over a certain period. If no keyword is specified, the distribution of all log events reported over the period is returned.
+POST /v2/{project_id}/lts/keyword-count
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
start_time + |
+Yes + |
+String + |
+Start time, which is a timestamp accurate to millisecond. + |
+
end_time + |
+Yes + |
+String + |
+End time, which is a timestamp accurate to millisecond. + |
+
step_interval + |
+Yes + |
+Long + |
+Time step, in milliseconds (ms). +Recommended formula: +(end_time-start_time)/1000 x 1000/60, where /1000 x 1000 means rounding to an integer. + NOTE:
+If the calculated result is less than or equal to 1000, the value 1000 is used. + |
+
group_id + |
+Yes + |
+String + |
+Log group ID. +Minimum: 36 +Maximum: 36 + |
+
stream_id + |
+Yes + |
+String + |
+Log stream ID. +Minimum: 36 +Maximum: 36 + |
+
key_word + |
+Yes + |
+String + |
+A keyword is a word between two adjacent delimiters. + |
+
is_iterative + |
+No + |
+Boolean + |
+Whether the log query is iterative. The default value is false, indicating that the log query is not iterative. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
count + |
+Long + |
+Number of logs. + |
+
histogram + |
+Map<String,HistogramResponseBody> + |
+Histogram result. + |
+
isQueryComplete + |
+Boolean + |
+Whether the query is complete. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
count + |
+Long + |
+Total number of log events. + |
+
histogram + |
+histogram object + |
+Log histogram. + |
+
isQueryComplete + |
+Boolean + |
+Whether the query is complete. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
num + |
+Long + |
+Number of log events in a time range. + |
+
startTime + |
+String + |
+Start time of a time range, in milliseconds. + |
+
endTime + |
+String + |
+End time of a time range, in milliseconds. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying the log histogram
+POST https://{endpoint}/v2/{project_id}/lts/keyword-count
+
+{
+ "group_id" : "00330565-5baf-4e0d-bd16-ba0c6b951d9a",
+ "stream_id" : "715cda3b-e17f-492a-a6ca-98a1ba16ad8c",
+ "end_time" : 1637820813605,
+ "start_time" : 1637817213605,
+ "key_word" : "test",
+ "step_interval" : 6000
+}
+Status code: 200
+The query is successful.
+{
+ "count" : 1,
+ "histogram" : [ {
+ "num" : 1,
+ "startTime" : 1637821594579,
+ "endTime" : 1637821595000
+ }, {
+ "num" : 0,
+ "startTime" : 1637821654000,
+ "endTime" : 1637821654579
+ } ],
+ "isQueryComplete" : true
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0601",
+ "error_msg" : "must be less than or equal to 86400000"
+}
+Status code: 500
+InternalServerError. The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0202",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The query is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+InternalServerError. The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query information about all log streams in a specified log group.
+GET /v2/{project_id}/groups/{log_group_id}/streams
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_streams + |
+Array of LogStreamResBody objects + |
+Log stream. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
creation_time + |
+Long + |
+Creation time. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
tag + |
+Map<String,String> + |
+Log stream tags. + |
+
filter_count + |
+Integer + |
+Number of filters. + |
+
is_favorite + |
+Boolean + |
+Whether to add a log stream to favorites. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying All Log Streams in a Specified Log Group
+GET https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams
+
+/v2/{project_id}/groups/{log_group_id}/streams
+Status code: 200
+The request is successful.
+{
+ "log_streams" : [ {
+ "creation_time" : 1630549842955,
+ "log_stream_name" : "lts-stream-02kh",
+ "log_stream_id" : "c54dbc58-0fd8-48ed-b007-6d54981427a7",
+ "filter_count" : 0
+ } ]
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0003",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query log streams.
+GET /v2/{project_id}/log-streams
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_group_name + |
+No + |
+String + |
+Log group name. +Minimum: 1 +Maximum: 64 + |
+
log_stream_name + |
+No + |
+String + |
+Log stream name. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_streams + |
+Array of LogStreamNoIsFavorite objects + |
+List of log groups. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
creation_time + |
+Long + |
+Time when a log stream is created. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
tag + |
+Map<String,String> + |
+Log stream tag. + |
+
filter_count + |
+Integer + |
+Number of filters. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
If you leave the request body empty, all log streams are queried. If log_group_name and log_stream_name are specified, the corresponding log stream is queried.
+GET https://{endpoint}/v2/{project_id}/log-streams
+
+/v2/{project_id}/log-streams /v2/{project_id}/log-streams?log_group_name=lts-group-txxxx
+/v2/{project_id}/log-streams?log_stream_name=lts-xunjian-topic-xxxx
+/v2/{project_id}/log-streams?log_stream_name=lts-xunjian-topic-xxxx&log_group_name=lts-group-xxx
+Status code: 200
+Log stream information is returned.
+{
+ "log_streams" : [ {
+ "creation_time" : 1633600371062,
+ "log_stream_name" : "lts-topic-test2",
+ "tag" : {
+ "_sys_enterprise_project_id" : "0",
+ "W" : "J"
+ },
+ "filter_count" : 0,
+ "log_stream_id" : "c4de0538-53e6-41fd-b951-a8669fce58d7"
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0205",
+ "error_msg" : "The log stream name has been existed"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Log stream information is returned. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query logs in a specified log stream.
+POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
start_time + |
+Yes + |
+String + |
+UTC start time of the search window (in milliseconds). + NOTE:
+Maximum query time range: 180 days + |
+
end_time + |
+Yes + |
+String + |
+UTC end time of the search window (in milliseconds). + NOTE:
+Maximum query time range: 180 days + |
+
labels + |
+No + |
+Map<String,String> + |
+Filter criteria, which vary between log sources. + |
+
keywords + |
+No + |
+String + |
+Keyword used for log search. A keyword is a word between two adjacent delimiters, for example, error. + |
+
line_num + |
+No + |
+String + |
+Sequence number of a log event. This parameter is not required for the first query, but is required for subsequent pagination queries. The value can be obtained from the response of the last query. The value of line_num should be between the values of start_time and end_time. If the custom time function is enabled, you need to use both this field and the time field to perform pagination query. +Minimum: 19 +Maximum: 19 + |
+
__time__ + |
+No + |
+String + |
+If the custom time function is enabled, use both this field and the line_num field for pagination queries. The parameter values can be obtained from the returned information of the last query. + |
+
is_desc + |
+No + |
+Boolean + |
+Whether the search order is descending. The default value is false (ascending). You can also set the value to true (descending). + |
+
search_type + |
+No + |
+String + |
+The value is init (default value) for the first query, or forwards or backwards for a pagination query. This parameter is used together with is_desc for pagination queries.The value can be forwards or backwards. + |
+
limit + |
+No + |
+Integer + |
+Number of logs to be queried each time. The value is 50 when this parameter is not set. You are advised to set this parameter to 100. +Minimum: 1 +Maximum: 5000 + |
+
highlight + |
+No + |
+Boolean + |
+Whether the keyword is highlighted. The default value is true (highlighted). You can also set the value to false (not highlighted). + |
+
is_count + |
+No + |
+Boolean + |
+Whether the number of log events is counted. The default value is false (not counted). You can also set the value to true (counted). + |
+
is_iterative + |
+No + |
+Boolean + |
+Whether the log query is iterative. The default value is false (not iterative). You can also set the value to true (iterative). + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
logs + |
+Array of LogContents objects + |
+Log information. + |
+
count + |
+Integer + |
+Number of logs. + |
+
isQueryComplete + |
+Boolean + |
+Indicates whether the query is complete. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
content + |
+String + |
+Raw log data. + |
+
line_num + |
+String + |
+Sequence number of a log line. + |
+
labels + |
+Map<String,String> + |
+Labels contained in a log event. The labels vary depending on log events. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying logs
+POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
+
+{
+ "start_time" : 1595659200000,
+ "end_time" : 1595659500000,
+ "labels" : {
+ "hostName" : "ecs-kwxtest"
+ },
+ "keywords" : "log",
+ "limit" : 10,
+ "is_count" : true
+}
+Querying logs for the first time
+POST v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
+
+{
+ "start_time" : 1595659200000,
+ "end_time" : 1595659500000,
+ "labels" : {
+ "hostName" : "ecs-kwxtest"
+ },
+ "keywords" : "log",
+ "line_num" : "1595659490239433658",
+ "is_desc" : "false",
+ "search_type" : "forwards",
+ "limit" : "3",
+ "is_count" : true
+}
+For a pagination query (Assume that the search starts from the log event containing NO 5. Log events containing NO 6, NO 7, and NO 8 are the target log events):
+POST v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query '
+
+{
+ "start_time" : 1595659200000,
+ "end_time" : 1595659500000,
+ "labels" : {
+ "hostName" : "ecs-kwxtest"
+ },
+ "keywords" : "log",
+ "line_num" : "1595659490239433658",
+ "is_desc" : "true",
+ "search_type" : "backwards",
+ "limit" : "3",
+ "is_count" : true
+}
+For a pagination query (Assume that the search starts from the log event containing NO 5. Log events containing NO 8, NO 7, and NO 6 are the target log events):
+POST v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
+
+{
+ "start_time" : 1595659200000,
+ "end_time" : 1595659500000,
+ "labels" : {
+ "hostName" : "ecs-kwxtest"
+ },
+ "keywords" : "log",
+ "line_num" : "1595659490239433658",
+ "is_desc" : "false",
+ "search_type" : "backwards",
+ "limit" : "3",
+ "is_count" : true
+}
+For a pagination query (Assume that the search starts from the log event containing NO 5. Log events containing NO 2, NO 3, and NO 4 are the target log events):
+POST v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query '
+
+{
+ "start_time" : 1595659200000,
+ "end_time" : 1595659500000,
+ "labels" : {
+ "hostName" : "ecs-kwxtest"
+ },
+ "keywords" : "log",
+ "line_num" : "1595659490239433658",
+ "is_desc" : "true",
+ "search_type" : "forwards",
+ "limit" : "3",
+ "is_count" : true
+}
+Status code: 200
+The request is successful.
+Querying logs for the first time
+{
+ "count" : 32,
+ "logs" : [ {
+ "content" : "2020-07-25/14:44:42 this <HighLightTag>log</HighLightTag> is Error NO 1",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433654"
+ }, {
+ "content" : "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433655"
+ }, {
+ "content" : "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433656"
+ }, {
+ "content" : "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433657"
+ }, {
+ "content" : "2020-07-25/14:44:46 this <HighLightTag>log</HighLightTag> is Error NO 5",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433658"
+ }, {
+ "content" : "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433659"
+ }, {
+ "content" : "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433660"
+ }, {
+ "content" : "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433661"
+ }, {
+ "content" : "2020-07-25/14:44:50 this <HighLightTag>log</HighLightTag> is Error NO 9",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490839420574"
+ }, {
+ "content" : "2020-07-25/14:44:51 this <HighLightTag>log</HighLightTag> is Error NO 10",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659491839412667"
+ } ]
+}
+For a pagination query (Assume that the search starts from the log event containing NO 5. Log events containing NO 6, NO 7, and NO 8 are the target log events):
+{
+ "count" : 32,
+ "logs" : [ {
+ "content" : "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433659"
+ }, {
+ "content" : "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433660"
+ }, {
+ "content" : "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433661"
+ } ]
+}
+For a pagination query (Assume that the search starts from the log event containing NO 5. Log events containing NO 8, NO 7, and NO 6 are the target log events):
+{
+ "count" : 32,
+ "logs" : [ {
+ "content" : "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433661"
+ }, {
+ "content" : "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433660"
+ }, {
+ "content" : "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433659"
+ } ]
+}
+For a pagination query (Assume that the search starts from the log event containing NO 5. Log events containing NO 2, NO 3, and NO 4 are the target log events):
+{
+ "count" : 32,
+ "logs" : [ {
+ "content" : "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433655"
+ }, {
+ "content" : "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433656"
+ }, {
+ "content" : "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433657"
+ } ]
+}
+For a pagination query (Assume that the search starts from the log event containing NO 5. Log events containing NO 4, NO 3, and NO 2 are the target log events):
+{
+ "count" : 32,
+ "logs" : [ {
+ "content" : "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433657"
+ }, {
+ "content" : "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433656"
+ }, {
+ "content" : "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2",
+ "labels" : {
+ "hostName" : "ecs-kwxtest",
+ "hostIP" : "192.168.0.156",
+ "appName" : "default_appname",
+ "containerName" : "CONFIG_FILE",
+ "clusterName" : "CONFIG_FILE",
+ "hostId" : "9787ef31-fd7b-4eff-ba71-72d580f11f55",
+ "podName" : "default_procname",
+ "clusterId" : "CONFIG_FILE",
+ "nameSpace" : "CONFIG_FILE",
+ "category" : "LTS"
+ },
+ "line_num" : "1595659490239433655"
+ } ]
+}
+Status code: 400
+Bad request. The request is invalid or the query statement is incorrect. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0009",
+ "error_msg" : "Failed to validate the request body"
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0003",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0202",
+ "error_msg" : "Failed to query lts log"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
400 + |
+Bad request. The request is invalid or the query statement is incorrect. Modify the request based on the description in error_msg before a retry. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to preview the email format of a notification template.
+POST /v2/{project_id}/{domain_id}/lts/events/notification/templates/view
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
domain_id + |
+Yes + |
+String + |
+Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
templates + |
+Yes + |
+String + |
+Email template content. +Minimum: 2 +Maximum: 1024 + |
+
language + |
+Yes + |
+String + |
+Language type, for example, en-us. + |
+
source + |
+Yes + |
+String + |
+Source. The value can only be LTS. +Minimum: 3 +Maximum: 3 + |
+
subject + |
+No + |
+String + |
+The content of this field is rendered to be used as the title of the message template. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
template + |
+String + |
+The value is an HTML text and needs to be parsed before being displayed. + |
+
subject + |
+String + |
+The title displayed after the field is parsed. It is displayed at the top of the returned HTML text. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Previewing the email format of a message template
+POST https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates/view
+
+{
+ "templates" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+ "language" : "en-us",
+ "source" : "LTS",
+ "subject" : "${region_name}[${event_severity}_${event_type}_${clear_type}] generated an alarm at ${starts_at}"
+}
+Status code: 200
+The request is successful.
+{
+ "template" : "<style> span { display: inline-block; float: left; font-size: 14px; } b { display: inline-block; float: left; color: #252B3A; font-size: 14px }</style><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-family:Helvetica,Arial,PingFangSC-Regular,Hiragino Sans GB;border-spacing:0px 14px;font-size:14px;padding-left: 30px;line-height:25px;\"> <thead> <tr style=\"font-size:14px;\"> <td colspan=\"2\" style=\"line-height:28px;color:#6e6e6e;font-size:14px\"> <b>Dear </b> <b>user,</b> <b> , </b> </td> </tr> </thead> <tr> <td colspan=\"2\"> <span>One notification has been </span> <span>added</span> <span> in region </span> <b>xx</b> <span> based on </span> <span>alarm rule </span> <b>action_rule</b> <span>. For more information, go to the LTS console.</span> <br> <br> </td> </tr> <tr style=\"font-size:14px;\"> <td colspan=\"2\"> <p style=\"margin-top: -26px;margin-bottom: -20px;\"> <br> <span style=\"color:#252B3A;line-height:24px\">Here are the details.</span> </p> </td> </tr> <td><div>Severity: Major;<br>Occurred: 2022-03-21 18:23:20 GMT+08:00;<br>Alarm source: N/A;<br>Resource type: N/A;<br>Resource ID: CCE;<br>Statistical type: by keyword;<br>Expression: N/A;<br>Current value: N/A;<br>Statistical period: N/A;<br>Query time: N/A;<br>Query log: N/A;<br><div/></td> </table>",
+ "subject" : "[Major_alarm_add] generated an alarm at 2022-03-21 18:23:20 GMT+08:00",
+ }
+}
+Status code: 500
+An error is reported when an incorrect domain ID is entered.
+{
+ "error_code" : "LTS.2019",
+ "error_msg" : "Failed to preview notification template."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
500 + |
+An error is reported when an incorrect domain ID is entered. + |
+
See Error Codes.
+This API is used to query the message template list.
+GET /v2/{project_id}/{domain_id}/lts/events/notification/templates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
domain_id + |
+Yes + |
+String + |
+Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
results + |
+Array of NotificationTemplate objects + |
+Template array. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
name + |
+String + |
+Notification rule name. + |
+
type + |
+Array of strings + |
+Notification method. + |
+
desc + |
+String + |
+Template description. + |
+
source + |
+String + |
+Template source. + |
+
locale + |
+String + |
+Language. + |
+
templates + |
+Array of SubTemplateResBody objects + |
+Template body, which is an array. + |
+
create_time + |
+Long + |
+Creation time (timestamp in milliseconds). + |
+
modify_time + |
+Long + |
+Update time (timestamp in milliseconds). + |
+
project_id + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
sub_type + |
+String + |
+Template subtype, for example, sms or email. + |
+
content + |
+String + |
+Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL). + |
+
topic + |
+String + |
+Email subject. This parameter is valid only when sub_type is set to email. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying a message template
+GET https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+/v2/{project_id}/{domain_id}/lts/events/notification/templates
+Status code: 200
+The request is successful.
+{
+ "results" : [ {
+ "create_time" : 1701352010150,
+ "desc" : "This is the email test mode.",
+ "locale" : "en-us",
+ "modify_time" : 1701352010150,
+ "name" : "15nWzUsOHA",
+ "project_id" : "2a473356cca5487f8373be891bffc1cf",
+ "source" : "LTS",
+ "templates" : [ {
+ "content" : "\"This is an email test template.\"",
+ "sub_type" : "email"
+ } ],
+ "type" : [ "" ]
+ }, {
+ "create_time" : 1702021411612,
+ "desc" : "This is the SMS test mode.",
+ "locale" : "en-us",
+ "modify_time" : 1702021411612,
+ "name" : "RZ2ObeluNN",
+ "project_id" : "2a473356cca5487f8373be891bffc1cf",
+ "source" : "LTS",
+ "templates" : [ {
+ "content" : "\"This is an SMS test template.\"",
+ "sub_type" : "sms"
+ } ],
+ "type" : [ "" ]
+ } ]
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2017",
+ "error_msg" : "Find Alarm rule failed."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query all quick searches in a log group.
+GET /v1.0/{project_id}/lts/groups/{group_id}/search-criterias
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
group_id + |
+Yes + |
+String + |
+ID of the log group whose log streams will be queried. Generally, it contains 36 characters. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
search_criterias + |
+Array of search_criteriasBody objects + |
+Quick search. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
criterias + |
+Array of GetQuerySearchCriteriasBody objects + |
+Quick search of a single log stream. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
search_type + |
+String + |
+Quick search type. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
criteria + |
+String + |
+Quick search of a field. + |
+
name + |
+String + |
+Quick search of a name. + |
+
id + |
+String + |
+Quick search ID. + |
+
search_type + |
+String + |
+Quick search type. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+ErrorMessagebody object + |
+Error message body. + |
+
Querying All Quick Searches in a Log Group
+GET /v1.0/2a473356cca5487f8373be891bffc1cf/lts/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/search-criterias+
Status code: 200
+Obtained.
+{
+ "search_criterias" : [ {
+ "criterias" : [ {
+ "criteria" : "234",
+ "name" : "234",
+ "id" : "aee53496-xxxx-xxxx-xxxx-5a83d1aae134",
+ "search_type" : "ORIGINALLOG"
+ }, {
+ "criteria" : "24",
+ "name" : "2342",
+ "id" : "939c930a-xxxx-xxxx-xxxx-a3040d857ce1",
+ "search_type" : "ORIGINALLOG"
+ } ],
+ "log_stream_id" : "85025a4b-xxxx-xxxx-xxxx-2b6851d84ea2",
+ "log_stream_name" : "lts-test-topic",
+ "search_type" : "ORIGINALLOG"
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "message" : {
+ "code" : "LTS.0201",
+ "details" : "The log group does not existed"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "message" : {
+ "code" : "LTS.0203",
+ "details" : "Internal Server Error"
+ }
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Obtained. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query a structuring template.
+Note:
+A user can call this API for up to 50 times per second.
+GET /v3/{project_id}/lts/struct/customtemplate
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
id + |
+No + |
+String + |
+ID of the template to be queried. This parameter is optional. If this parameter is not specified, all custom structuring templates used in the project are returned. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
results + |
+Array of StructTemplateModel objects + |
+Array of queried customized structuring templates. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
project_id + |
+String + |
+Project ID. + |
+
template_name + |
+String + |
+Template name. + |
+
template_type + |
+String + |
+Template type. The options are regular expression, JSON, delimiter, and Nginx. + |
+
demo_log + |
+String + |
+Sample log event. + |
+
demo_fields + |
+Array of DemoField objects + |
+Example field array. + |
+
tag_fields + |
+Array of TagFieldNew objects + |
+Tag field array. + |
+
rule + |
+TemplateRule object + |
+Structuring rule object. + |
+
demo_label + |
+String + |
+Example log tag. + |
+
create_time + |
+Long + |
+Creation time. + |
+
id + |
+String + |
+Template ID. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
field_name + |
+String + |
+Field name. + |
+
content + |
+String + |
+Example field content, which is the example value of a field. + |
+
type + |
+String + |
+Field data type. +Value: string, long, or float + |
+
is_analysis + |
+Boolean + |
+Whether to enable quick analysis. + |
+
index + |
+Integer + |
+Field number in manual regular expression and delimiter modes. + |
+
relation + |
+String + |
+Describes the hierarchical relationship between fields in a multi-level JSON file. + |
+
user_defined_name + |
+String + |
+Custom field alias in JSON and Nginx modes. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
field_name + |
+String + |
+Field name. + |
+
content + |
+String + |
+Example field content, which is the example value of a field. + |
+
type + |
+String + |
+Field data type. +Value: string, long, or float + |
+
is_analysis + |
+Boolean + |
+Whether to enable quick analysis. + |
+
index + |
+Integer + |
+Sequence number (starting from 0). + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
type + |
+String + |
+Structuring type. Currently, regular expression, JSON, delimiters, and Nginx are supported. + |
+
param + |
+String + |
+Specific structuring rule. Each structuring type has a unique structure: +A manual regular expression is a JSON string that contains the keyObject and regex_rules objects. keyObject contains key-value pairs, where a key indicates the index of an element in the demo_fields array, and a value indicates field_name. regex_rules is a regular expression. Example: +{\"keyObject\":{\"1\":\"date\",\"2\":\"num\"},\"regex_rules\":\"^(?<date>[^/]+)(?:[^]* ){8}(?<num>\\\\d+)\"}
+In JSON mode, param is a JSON string that contains the keyObject and layers objects. keyObject contains key-value pairs, where a key indicates the field_name of an element in the demo_fields array, and a value indicates user_defined_name. layers indicates the maximum number of parsing layers. Its maximum value is 4. Example: +{\"keyObject\":{\"metadata.dimension\":\"dimension\",\"metadata.value\":\"\",\"metadata.unit\":\"\",\"collectionTime\":\"\"},\"layers\":3}
+The delimiter mode uses a JSON string that contains the keyObject and tokenizer objects. keyObject contains key-value pairs, where a key indicates the index of an element in the demo_fields array, and a value indicates field_name. tokenizer indicates delimiters. Example: +{\"keyObject\":{\"0\":\"field1\",\"1\":\"field2\",\"2\":\"field3\",\"3\":\"field4\",\"4\":\"field5\",\"5\":\"field6\",\"6\":\"field7\",\"7\":\"field8\",\"8\":\"field9\"},\"tokenizer\":\"\"}
+The Nginx mode uses a JSON string that contains the keyObject, regex, field_names, and log_format objects. keyObject contains key-value pairs, where a key indicates the field_name of an element in the demo_fields array, and a value indicates user_defined_name. regex is a regular expression, where the field_names object is the combination of field_name of each element in the demo_fields array. field_names are separated by commas (,). The log_format object indicates the Nginx log formatting mode. Example: +{\"keyObject\": { \"http_host\": \"host\", \"remote_addr\": \"\", \"request_method\": \"\", \"request_uri\": \"\", \"time_local\": \"\" }, \"regex\": \"(\\\\d+/\\\\S+/\\\\d+:\\\\d+:\\\\d+:\\\\d+)\\\\s+\\\\S+\\\\s+(\\\\S*)\\\\s+(\\\\S*)\\\\s+(\\\\S*)\\\\s+\\\"([^\\\"]*)\\\".*\", \"fieldNames\": \"time_local,remote_addr,request_method,http_host,request_uri\", \"log_format\": \"log_format '$upstreaminfo '$time_local $remote_addr $request_method $http_host\\\"$request_uri\\\"';\" }
+ |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+CustomTemplateErrorCode object + |
+Request error message. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+LTS error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying Details About the Current Structuring Template
+GET https://{endpoint}/v3/{project_id}/lts/struct/customtemplate?id=bc8e3f2c-87fe-4acd-8439-69cdf29251c1
+
+/v3/{project_id}/lts/struct/customtemplate?id=bc8e3f2c-87fe-4acd-8439-69cdf29251c1
+Status code: 200
+The request is successful.
+{
+ "results" : [ {
+ "create_time" : 1641258099551,
+ "demo_fields" : [ {
+ "content" : "2022-01-03/14:52:28",
+ "field_name" : "field1",
+ "index" : 0,
+ "is_analysis" : true,
+ "type" : "string"
+ }, {
+ "content" : "this",
+ "field_name" : "field2",
+ "index" : 1,
+ "is_analysis" : true,
+ "type" : "string"
+ }, {
+ "content" : "log",
+ "field_name" : "field3",
+ "index" : 2,
+ "is_analysis" : false,
+ "type" : "string"
+ }, {
+ "content" : "is",
+ "field_name" : "field4",
+ "index" : 3,
+ "is_analysis" : false,
+ "type" : "string"
+ }, {
+ "content" : "Error",
+ "field_name" : "field5",
+ "index" : 4,
+ "is_analysis" : false,
+ "type" : "string"
+ }, {
+ "content" : "NO",
+ "field_name" : "field6",
+ "index" : 5,
+ "is_analysis" : false,
+ "type" : "string"
+ }, {
+ "content" : "13 testing.",
+ "field_name" : "field7",
+ "index" : 6,
+ "is_analysis" : false,
+ "type" : "string"
+ }, {
+ "content" : "286",
+ "field_name" : "field8",
+ "index" : 7,
+ "is_analysis" : false,
+ "type" : "long"
+ } ],
+ "demo_log" : "2022-01-03/14:52:28 this log is Error NO 13 testing 286.",
+ "id" : "43a8cc7b-b632-4c36-a65d-8150e98219f1",
+ "project_id" : "2a473356cca5487f8373be89xxxxxxxx",
+ "rule" : {
+ "param" : "{\"keyObject\":{\"0\":\"field1\",\"1\":\"field2\",\"2\":\"field3\",\"3\":\"field4\",\"4\":\"field5\",\"5\":\"field6\",\"6\":\"field7\",\"7\":\"field8\"},\"tokenizer\":\" \"}",
+ "type" : "split"
+ },
+ "demo_label" : "here is a demo label",
+ "tag_fields" : [ {
+ "content" : "172.16.10.69",
+ "field_name" : "hostIP",
+ "index" : 0,
+ "is_analysis" : true,
+ "type" : "string"
+ } ],
+ "template_name" : "testSplit13",
+ "template_type" : "split"
+ } ]
+}
+Status code: 400
+The ID does not exist.
+{
+ "message" : {
+ "code" : "LTS.0751",
+ "details" : "custom template doesn't exist"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2017",
+ "error_msg" : "Find struct template failed."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
400 + |
+The ID does not exist. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query resources by time segment.
+POST /v2/{project_id}/lts/timeline-traffic-statistics
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
timezone + |
+Yes + |
+String + |
+Time zone, for example, Asia/Shanghai, Europe/Paris, or Africa/Cairo. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
start_time + |
+Yes + |
+Long + |
+Start timestamp of the query, in milliseconds. A maximum of 30 days are supported. + |
+
end_time + |
+Yes + |
+Long + |
+End timestamp, in milliseconds. + |
+
period + |
+Yes + |
+Integer + |
+Query interval, in hours. The value ranges from 1 to 24. + |
+
resource_type + |
+Yes + |
+String + |
+Resource type: The value is log_group / log_stream / tenant. + |
+
search_type + |
+Yes + |
+String + |
+Type of traffic to be queried: write, index, or storage. + |
+
resource_id + |
+No + |
+String + |
+Resource ID. +When resource type is set to log_group, resource_id indicates the log group ID. +When resource type is set to log_stream, resource_id indicates the log stream ID. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
results + |
+Array of Resulits objects + |
+Response result. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
timestamp + |
+Long + |
+Timestamp, in milliseconds. + |
+
value + |
+Double + |
+Traffic, in bytes. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
errorCode + |
+String + |
+Error code. + |
+
errorMessage + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
errorCode + |
+String + |
+Error code. + |
+
errorMessage + |
+String + |
+Error message. + |
+
Querying Resources by Time Segment
+POST v2/2a473356cca5487f8373be891bffc1cf/lts/timeline-traffic-statistics?timezone=XX/XX
+
+{
+ "start_time" : 1668614400000,
+ "end_time" : 1668787200000,
+ "search_type" : "write",
+ "period" : 1,
+ "resource_type" : "tenant"
+}
+Status code: 200
+Query succeeded.
+{
+ "results" : [ {
+ "timestamp" : 1669046400000,
+ "value" : 8.24859442E7
+ }, {
+ "timestamp" : 1669071600000,
+ "value" : 0
+ }, {
+ "timestamp" : 1669161600000,
+ "value" : 9.06895742E7
+ }, {
+ "timestamp" : 1669215600000,
+ "value" : 8.81524816E7
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "errorCode" : "LTS.0009",
+ "errorMessage" : "resource_id must not be empty"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "errorCode" : "LTS.0203",
+ "errorMessage" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Query succeeded. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to collect traffic statistics on top n log groups or log streams.
+POST /v2/{project_id}/lts/topn-traffic-statistics
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
end_time + |
+Yes + |
+Long + |
+End timestamp, in milliseconds. + |
+
is_desc + |
+Yes + |
+Boolean + |
+Whether to sort data in descending order (true or false). + |
+
resource_type + |
+Yes + |
+String + |
+Resource type. +log_group: log group +log_stream: log stream +tenant: tenant + |
+
sort_by + |
+Yes + |
+String + |
+Sorting. Data to be sorted must exist in search_list. +index: index +write: read and write +storage: storage + |
+
start_time + |
+Yes + |
+Long + |
+Start timestamp of the query, in milliseconds. A maximum of 30 days are supported. + |
+
topn + |
+Yes + |
+Integer + |
+Number of data records to be queried. The value ranges from 1 to 100. + |
+
filter + |
+Yes + |
+Map<String,String> + |
+Filter, which is in a map structure with keys as filtering attributes and values as attribute values. It does not support fuzzy match. The format for filter criteria is {"key": "xxxxxx"}, where key can be log_group_id or log_stream_id. + |
+
search_list + |
+Yes + |
+Array of strings + |
+Query data type. Multiple string arrays can be used together. +index: index +write: read and write +storage: storage + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
results + |
+Array of ResultsTopnBody objects + |
+Response result. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
index_traffic + |
+Double + |
+Index traffic, in bytes. This parameter is returned when the queried data type contains index. + |
+
storage + |
+Double + |
+Storage capacity, in bytes. This parameter is returned when the queried data type contains storage. + |
+
write_traffic + |
+Double + |
+Write traffic, in bytes. This parameter is returned when the queried data type contains write. + |
+
log_group_id + |
+String + |
+Log group ID. This parameter is returned when the resource type is log group. + |
+
log_group_name + |
+String + |
+Log group name. This parameter is returned when the resource type is log group. + |
+
log_stream_id + |
+String + |
+Log stream ID. This parameter is returned when the resource type is log stream. + |
+
log_stream_name + |
+String + |
+Log stream name. This parameter is returned when the resource type is log stream. + |
+
log_group_name_alias + |
+String + |
+Log group alias, which is the same as the log group name by default. The alias is preferentially displayed. + |
+
log_stream_name_alias + |
+String + |
+Log stream alias, which is the same as the log stream name by default. The alias is preferentially displayed. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
errorCode + |
+String + |
+Error code. + |
+
errorMessage + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
errorCode + |
+String + |
+Error code. + |
+
errorMessage + |
+String + |
+Error message. + |
+
Collecting Traffic Statistics on Top N Log Groups or Log Streams
+POST /v2/2a473356cca5487f8373be891bffc1cf/lts/topn-traffic-statistics
+
+{
+ "sort_by" : "storage",
+ "is_desc" : true,
+ "resource_type" : "log_stream",
+ "filter" : { },
+ "start_time" : 1668668183969,
+ "end_time" : 1669272983969,
+ "search_list" : [ "index", "write", "storage" ],
+ "topn" : 100
+}
+Status code: 200
+Query succeeded.
+{
+ "results" : [ {
+ "index_traffic" : 0,
+ "log_stream_id" : "6fd93d47-7630-4284-a622-311d0082f6bb",
+ "log_stream_name" : "cmdb-cce-cluster",
+ "storage" : 59810657587,
+ "write_traffic" : 0
+ }, {
+ "index_traffic" : 0,
+ "log_stream_id" : "504ec3dd-ac28-4783-babb-22a49f36afe3",
+ "log_stream_name" : "CMSkaifatest",
+ "storage" : 20033606015,
+ "write_traffic" : 0
+ }, {
+ "index_traffic" : 6825703991,
+ "log_stream_id" : "a14dacb0-5a13-43a8-89a3-ea5424d95133",
+ "log_stream_name" : "ELB",
+ "storage" : 15659303771,
+ "write_traffic" : 1.3651407982E9
+ }, {
+ "index_traffic" : 302172889,
+ "log_stream_id" : "25fe7494-7395-438e-8340-647613673ffa",
+ "log_stream_name" : "LTStest-916-statefulset",
+ "storage" : 316552589,
+ "write_traffic" : 6.04345778E7
+ }, {
+ "index_traffic" : 0,
+ "log_stream_id" : "956586fc-b828-44be-8672-0a323962a8fa",
+ "log_stream_name" : "mongodb_slow",
+ "storage" : 0,
+ "write_traffic" : 0
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "errorCode" : "LTS.0208",
+ "errorMessage" : "The log stream does not existed"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "errorCode" : "LTS.0203",
+ "errorMessage" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Query succeeded. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query OBS transfer tasks.
+GET /v2/{project_id}/transfers
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_transfer_type + |
+No + |
+String + |
+Log transfer type. OBS indicates that logs are transferred to OBS. + |
+
log_group_name + |
+No + |
+String + |
+Log group name. +Minimum: 1 +Maximum: 64 + |
+
log_stream_name + |
+No + |
+String + |
+Log stream name. +Minimum: 1 +Maximum: 64 + |
+
offset + |
+No + |
+Integer + |
+Query cursor. Set the value to 0 in the first query. In subsequent queries, obtain the value from the response to the last request. +Minimum: 0 +Maximum: 1024 + |
+
limit + |
+No + |
+Integer + |
+Number of records on each page. The maximum value is 100. +Minimum: 0 +Maximum: 100 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_transfers + |
+Array of CreateTransferResponseBody objects + |
+Log transfer task information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_streams + |
+Array of log_streams objects + |
+Log stream list. + |
+
log_transfer_id + |
+String + |
+Log transfer task ID. + |
+
log_transfer_info + |
+log_transfer_info_RespBody object + |
+Log transfer information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_agency_transfer + |
+log_agency_transfer object + |
+Information about delegated log transfer. This parameter is returned for a delegated log transfer task. + |
+
log_create_time + |
+Integer + |
+Time when the log transfer task was created. + |
+
log_storage_format + |
+String + |
+Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks. + |
+
log_transfer_detail + |
+TransferDetail object + |
+Log transfer details. + |
+
log_transfer_mode + |
+String + |
+Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks. + |
+
log_transfer_status + |
+String + |
+Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal. + |
+
log_transfer_type + |
+String + |
+Log transfer type. OBS indicates that logs are transferred to OBS. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
agency_domain_id + |
+String + |
+Delegator account ID. + |
+
agency_domain_name + |
+String + |
+Delegator account name. + |
+
agency_name + |
+String + |
+Name of the agency created by the delegator. + |
+
agency_project_id + |
+String + |
+Project ID of the delegator. + |
+
be_agency_domain_id + |
+String + |
+Account ID of the delegated party (ID of the account that created the log transfer task). + |
+
be_agency_project_id + |
+String + |
+Project ID of the delegated party (project ID of the account that created the log transfer task). + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
obs_period + |
+Integer + |
+Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_period_unit + |
+String + |
+Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_bucket_name + |
+String + |
+OBS bucket name. This parameter is required when you create an OBS transfer task. + |
+
obs_encrypted_id + |
+String + |
+KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket. + |
+
obs_dir_pre_fix_name + |
+String + |
+Custom transfer path of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$ + |
+
obs_prefix_name + |
+String + |
+Transfer file prefix of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^[a-zA-Z0-9._-]*$ + |
+
obs_time_zone + |
+String + |
+Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified. + |
+
obs_time_zone_id + |
+String + |
+ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified. + |
+
obs_transfer_path + |
+String + |
+OBS bucket path, which is the log transfer destination. + |
+
obs_eps_id + |
+String + |
+Enterprise project ID of an OBS transfer task. + |
+
obs_encrypted_enable + |
+Boolean + |
+Whether OBS bucket encryption is enabled. + |
+
tags + |
+Array of strings + |
+If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime. +The common fields include logStreamName, regionName, logGroupName and projectId, which are optional. +The transfer tag streamTag is optional. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
If no parameter is specified, all log transfer tasks are returned. If log_transfer_type, log_group_name, and log_stream_name are specified, the corresponding log transfer task is returned.
+GET https://{endpoint}/v2/{project_id}/transfers
+
+/v2/{project_id}/transfers /v2/{project_id}/transfers?log_group_name=lts-group-txxx /v2/{project_id}/transfers?log_transfer_type=OBS /v2/{project_id}/transfers?log_stream_name=lts-topic-testRexxx /v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_transfer_type=OBS /v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_stream_name=lts-topic-testRxxx /v2/{project_id}/transfers?log_transfer_type=OBS&log_stream_name=lts-topic-testRxxx /v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_transfer_type=OBS&log_stream_name=lts-topic-testRexxx
+Status code: 200
+The query is successful.
+The following parameters are returned for an OBS transfer task:
+{
+ "log_transfers" : [ {
+ "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+ "log_group_name" : "lts-group-OBS",
+ "log_streams" : [ {
+ "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+ "log_stream_name" : "lts-topic-OBS"
+ } ],
+ "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+ "log_transfer_info" : {
+ "log_create_time" : 1634802241847,
+ "log_storage_format" : "JSON",
+ "log_agency_transfer" : {
+ "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+ "agency_name" : "test20210325",
+ "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+ "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+ },
+ "log_transfer_detail" : {
+ "obs_period" : 2,
+ "obs_prefix_name" : "",
+ "obs_period_unit" : "min",
+ "obs_transfer_path" : "/0002/LogTanks/xxx/",
+ "obs_bucket_name" : "0002",
+ "obs_encrypted_enable" : false,
+ "obs_dir_pre_fix_name" : "",
+ "obs_time_zone" : "UTC+01:00",
+ "obs_time_zone_id" : "Africa/Lagos"
+ },
+ "log_transfer_mode" : "cycle",
+ "log_transfer_status" : "ENABLE",
+ "log_transfer_type" : "OBS"
+ }
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid log transfer type"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The query is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to query a notification template.
+GET /v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
domain_id + |
+Yes + |
+String + |
+Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
template_name + |
+Yes + |
+String + |
+template_name +Minimum: 1 +Maximum: 100 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
name + |
+String + |
+Notification rule name. + |
+
type + |
+Array of strings + |
+Notification method. + |
+
desc + |
+String + |
+Template description. + |
+
source + |
+String + |
+Template source. + |
+
locale + |
+String + |
+Language. + |
+
templates + |
+Array of SubTemplateResBody objects + |
+Template body, which is an array. + |
+
create_time + |
+Long + |
+Creation time (timestamp in milliseconds). + |
+
modify_time + |
+Long + |
+Update time (timestamp in milliseconds). + |
+
project_id + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
sub_type + |
+String + |
+Template subtype, for example, sms or email. + |
+
content + |
+String + |
+Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL). + |
+
topic + |
+String + |
+Email subject. This parameter is valid only when sub_type is set to email. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
message + |
+CodeDetailsRspBody object + |
+Error message. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
code + |
+String + |
+Error code. + |
+
details + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Querying a message template with a specified name
+GET https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}
+
+/v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}
+Status code: 200
+The request is successful.
+{
+ "create_time" : 1702955600631,
+ "desc" : "description",
+ "locale" : "en-us",
+ "modify_time" : 1702955600631,
+ "name" : "postman-test",
+ "project_id" : "2a473356cca5487f8373be891bffc1cf",
+ "source" : "LTS",
+ "templates" : [ {
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;",
+ "sub_type" : "sms"
+ }, {
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+ "sub_type" : "email"
+ } ],
+ "type" : [ ]
+}
+Status code: 401
+ID verification failed.
+{
+ "message" : {
+ "code" : "LTS.0001",
+ "details" : "project verify error"
+ }
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2018",
+ "error_msg" : "Failed to get notification template."
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful. + |
+
401 + |
+ID verification failed. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is usde to modify a log ingestion configuration.
+PUT /v3/{project_id}/lts/access-config
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Account Tenant ID, Project Resource Set ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
access_config_id + |
+Yes + |
+String + |
+Ingestion configuration ID. +Minimum: 36 +Maximum: 36 + |
+
access_config_detail + |
+No + |
+AccessConfigDeatilUpdate object + |
+Ingestion configuration details. + |
+
host_group_info + |
+No + |
+AccessConfigHostGroupIdList object + |
+Host group ID list. + |
+
access_config_tag + |
+No + |
+Array of accessConfigTag objects + |
+Tag information. + |
+
log_split + |
+No + |
+Boolean + |
+Log splitting. + |
+
binary_collect + |
+No + |
+Boolean + |
+Binary collection. + |
+
cluster_id + |
+No + |
+String + |
+CCE cluster ID. This parameter is mandatory for the CCE type. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
paths + |
+No + |
+Array of strings + |
+Log collection paths. +Minimum: 1 +Maximum: 128 + |
+
black_paths + |
+No + |
+Array of strings + |
+Log collection blacklist paths. +Minimum: 1 +Maximum: 128 + |
+
format + |
+No + |
+AccessConfigFormatUpdate object + |
+Log format. + |
+
windows_log_info + |
+No + |
++ | +Windows event logs. To stop collecting Windows event logs, leave this parameter to empty. + |
+
stdout + |
+No + |
+Boolean + |
+Standard output switch. This parameter is used only when the CCE ingestion type is used. + |
+
stderr + |
+No + |
+Boolean + |
+Standard output error switch. This parameter is used only when the CCE ingestion type is used. + |
+
pathType + |
+No + |
+String + |
+CCE ingestion type. This parameter is used only when the CCE ingestion type is used. + |
+
namespaceRegex + |
+No + |
+String + |
+Regular expression matching of Kubernetes namespaces. This parameter is used only when the CCE ingestion type is used. + |
+
podNameRegex + |
+No + |
+String + |
+Regular expression matching of the Kubernetes container name. This parameter is used only when the CCE ingestion type is used. + |
+
containerNameRegex + |
+No + |
+String + |
+Regular expression matching of the Kubernetes container name. This parameter is used only when the CCE ingestion type is used. + |
+
includeLabels + |
+No + |
+Map<String,String> + |
+Container label whitelist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when the access type is CCE. + |
+
excludeLabels + |
+No + |
+Map<String,String> + |
+Container label blacklist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when the CCE access type is used. + |
+
includeEnvs + |
+No + |
+Map<String,String> + |
+Environment variable whitelist. A maximum of 30 environment variable whitelists can be created. Key names must be unique. This parameter is used only when the access type is CCE. + |
+
excludeEnvs + |
+No + |
+Map<String,String> + |
+Environment variable blacklist. A maximum of 30 environment variables can be created. The key names must be unique. This parameter is used only when the CCE access type is used. + |
+
logLabels + |
+No + |
+Map<String,String> + |
+Environment variable log tag. A maximum of 30 tags can be created. The key name must be unique. This parameter is used only when the access type is CCE. + |
+
logEnvs + |
+No + |
+Map<String,String> + |
+Environment variable log tag. A maximum of 30 tags can be created. The key name must be unique. This parameter is used only when the access type is CCE. + |
+
includeK8sLabels + |
+No + |
+Map<String,String> + |
+Specifies the Kubernetes label whitelist. A maximum of 30 Kubernetes label whitelists can be created. The key names must be unique. This parameter is used only when the access type is CCE. + |
+
excludeK8sLabels + |
+No + |
+Map<String,String> + |
+Specifies the Kubernetes label blacklist. A maximum of 30 Kubernetes label blacklists can be created. The key names must be unique. This parameter is used only when the CCE access type is used. + |
+
logK8s + |
+No + |
+Map<String,String> + |
+Specifies the Kubernetes label. A maximum of 30 Kubernetes labels can be created. The key names must be unique. This parameter is used only when the access type is CCE. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
single + |
+No + |
+AccessConfigFormatSingle object + |
+Single-line logs. + |
+
multi + |
+No + |
+AccessConfigFormatMutil object + |
+Multi-line logs. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
mode + |
+Yes + |
+String + |
+Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard. + |
+
value + |
+Yes + |
+String + |
+Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used to match the log printing time displayed at the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
mode + |
+Yes + |
+String + |
+Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used. + |
+
value + |
+Yes + |
+String + |
+Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
categorys + |
+No + |
+Array of strings + |
+The type of Windows event logs to be collected. Application: application system; System: system; Security: security; Setup: startup + |
+
time_offset + |
+No + |
+AccessConfigTimeOffset object + |
+Time offset. + |
+
event_level + |
+No + |
+Array of strings + |
+Event level. +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
offset + |
+Yes + |
+Long + |
+Time offset. +When unit is day, the value ranges from 1 to 7. +When unit is hour, the value ranges from 1 to 168. +When unit is sec, the value ranges from 1 to 604800. + |
+
unit + |
+Yes + |
+String + |
+Unit of the time offset. +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_group_id_list + |
+Yes + |
+Array of strings + |
+List of host group IDs. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+No + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
access_config_id + |
+String + |
+Ingestion configuration ID. + |
+
access_config_name + |
+String + |
+Ingestion configuration name. + |
+
access_config_type + |
+String + |
+Ingestion configuration type. The value AGENT indicates host log ingestion. + |
+
create_time + |
+Long + |
+Creation time. + |
+
access_config_detail + |
+AccessConfigDeatilResponse object + |
+Ingestion configuration details. + |
+
log_info + |
+AccessConfigQueryLogInfo object + |
+Log details. + |
+
host_group_info + |
+AccessConfigHostGroupIdList object + |
+Host group ID list. + |
+
access_config_tag + |
+Array of accessConfigTagResponse objects + |
+Tag information. + |
+
log_split + |
+Boolean + |
+Log splitting. + |
+
binary_collect + |
+Boolean + |
+Binary collection. + |
+
cluster_id + |
+String + |
+CCE cluster ID + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
paths + |
+Array of strings + |
+Collection paths. + |
+
black_paths + |
+Array of strings + |
+Collection path blacklist. + |
+
format + |
+AccessConfigFormatCreate object + |
+Log format. + |
+
windows_log_info + |
++ | +Windows event logs. + |
+
stdout + |
+Boolean + |
+Standard output switch. This parameter is used only for CCE log ingestion. + |
+
stderr + |
+Boolean + |
+Standard error switch. This parameter is used only for CCE log ingestion. + |
+
pathType + |
+String + |
+CCE log ingestion type. This parameter is used only for CCE log ingestion. + |
+
namespaceRegex + |
+String + |
+Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion. + |
+
podNameRegex + |
+String + |
+Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion. + |
+
containerNameRegex + |
+String + |
+Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion. + |
+
includeLabels + |
+Map<String,String> + |
+Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeLabels + |
+Map<String,String> + |
+Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeEnvs + |
+Map<String,String> + |
+Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeEnvs + |
+Map<String,String> + |
+Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logLabels + |
+Map<String,String> + |
+Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logEnvs + |
+Map<String,String> + |
+Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
includeK8sLabels + |
+Map<String,String> + |
+Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
excludeK8sLabels + |
+Map<String,String> + |
+Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
logK8s + |
+Map<String,String> + |
+Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
single + |
++ | +Single-line logs. + |
+
multi + |
++ | +Multi-line logs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard. + |
+
value + |
+String + |
+Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
mode + |
+String + |
+Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used. + |
+
value + |
+String + |
+Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
categorys + |
+Array of strings + |
+Type of Windows event logs to be collected. +
|
+
time_offset + |
+AccessConfigTimeOffset object + |
+Offset from first collection time. + |
+
event_level + |
+Array of strings + |
+Event level. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
offset + |
+Long + |
+Time offset. +When unit is day, the value ranges from 1 to 7. +When unit is hour, the value ranges from 1 to 168. +When unit is sec, the value ranges from 1 to 604800. + |
+
unit + |
+String + |
+Unit of the time offset. +
|
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
log_group_name_alias + |
+String + |
+Log group alias. + |
+
log_stream_name_alias + |
+String + |
+Log stream alias. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id_list + |
+Array of strings + |
+List of host group IDs. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Modifying a Log Ingestion Configuration (for ECS)
+PUT https://{endpoint}/v3/{project_id}/lts/access-config
+
+{
+ "access_config_id" : "ed90802a-8475-4702-955e-e3ee16a5dde9",
+ "access_config_detail" : {
+ "paths" : [ "/test/222", "/test/111" ],
+ "black_paths" : [ ],
+ "format" : {
+ "multi" : {
+ "mode" : "regular",
+ "value" : "aaaa"
+ }
+ },
+ "windows_log_info" : {
+ "categorys" : [ "Application", "System" ],
+ "time_offset" : {
+ "offset" : 7,
+ "unit" : "day"
+ },
+ "event_level" : [ "information", "warning", "error", "critical", "verbose" ]
+ }
+ },
+ "host_group_info" : {
+ "host_group_id_list" : [ "de4dbed4-a3bc-4877-a7ee-096a2a63e036" ]
+ },
+ "access_config_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ }, {
+ "key" : "xxx1",
+ "value" : "xxx1"
+ } ]
+}
+Status code: 200
+Ingestion configuration modified.
+{
+ "access_config_detail" : {
+ "black_paths" : [ "/wjy/hei/tesxxx", "/wjy/hei/tesxxx" ],
+ "format" : {
+ "single" : {
+ "mode" : "wildcard",
+ "value" : "1111"
+ }
+ },
+ "paths" : [ "/wjy/tesxxx" ],
+ "windows_log_info" : {
+ "categorys" : [ "System", "Application", "Security", "Setup" ],
+ "event_level" : [ "information", "warning", "error", "critical", "verbose" ],
+ "time_offset" : {
+ "offset" : 168,
+ "unit" : "hour"
+ }
+ }
+ },
+ "access_config_id" : "aa58d29e-21a9-4761-ba16-8cxxxxd",
+ "access_config_name" : "CollectionWjy_xxxxt2",
+ "access_config_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ }, {
+ "key" : "xxx1",
+ "value" : "xxx1"
+ } ],
+ "access_config_type" : "AGENT",
+ "create_time" : 163504332654,
+ "host_group_info" : {
+ "host_group_id_list" : [ "de4dbed4-a3bc-4877-a7ee-09xxxxxx" ]
+ },
+ "log_info" : {
+ "log_group_id" : "9a7e2183-2d6d-4732-9axxxxx49e0",
+ "log_group_name" : "lts-groupxxxa",
+ "log_group_name_alias" : "lts-groupxxxa",
+ "log_stream_id" : "c4de0538-53e6-41fd-b951-xxxx8d7",
+ "log_stream_name" : "lts-topixxx",
+ "log_stream_name_alias" : "lts-topixxx"
+ }
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1807",
+ "error_msg" : "Invalid access config id"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+Ingestion configuration modified. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+Modify a host group.
+PUT /v3/{project_id}/lts/host-group
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 1 +Maximum: 64 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1 +Maximum: 10000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
host_group_id + |
+Yes + |
+String + |
+Host group ID. +Minimum: 36 +Maximum: 36 + |
+
host_group_name + |
+No + |
+String + |
+Host group name. Use only letters, digits, underscores (_), hyphens (-), and periods (.). Do not start with a period or underscore or end with a period. +Minimum: 1 +Maximum: 64 + |
+
host_id_list + |
+No + |
+Array of strings + |
+Host ID list. The host type must be the same as the host group type. +Minimum: 36 +Maximum: 36 + |
+
host_group_tag + |
+No + |
+Array of HostGroupTag objects + |
+Host group tags. A key must be unique. Up to 20 keys are allowed. + |
+
labels + |
+Yes + |
+Array of strings + |
+Host group identifier. This parameter is mandatory when the host group type is LABEL. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+No + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
host_group_id + |
+String + |
+Host group ID. + |
+
host_group_name + |
+String + |
+Host group name. + |
+
host_group_type + |
+String + |
+Host group type. + |
+
host_id_list + |
+Array of strings + |
+Host ID list. + |
+
host_group_tag + |
+Array of HostGroupTag objects + |
+Tag information. + |
+
create_time + |
+Long + |
+Creation time. + |
+
update_time + |
+Long + |
+Update time. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
key + |
+String + |
+Tag key. + |
+
value + |
+String + |
+Tag value. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code + |
+
error_msg + |
+String + |
+Error description + |
+
Update a host group. Parameter host_group_id is mandatory.
+PUT https://{endpoint}/v3/{project_id}/lts/host-group
+
+{
+ "host_group_id" : "xxxxxx",
+ "host_group_name" : "qweqwe",
+ "host_id_list" : [ "host_id_1", "host_id_2" ],
+ "host_group_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ } ]
+}
+Status code: 200
+The host group is modified.
+{
+ "host_group_id" : "xxxxxx",
+ "host_group_name" : "qweqwe",
+ "host_group_type" : "linux",
+ "host_id_list" : [ "host_id_1", "host_id_2" ],
+ "host_group_tag" : [ {
+ "key" : "xxx",
+ "value" : "xxx"
+ } ],
+ "create_time" : 16351494332,
+ "update_time" : 16351494332
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.1807",
+ "error_msg" : "Invalid host group id"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "Internal Server Error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The host group is modified. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to modify the log retention duration of a specified log group.
+POST /v2/{project_id}/groups/{log_group_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
ttl_in_days + |
+Yes + |
+Integer + |
+Log retention duration (days). +Minimum value: 1 +Maximum value: 365 + |
+
tags + |
+No + |
+Array of tagsBody objects + |
+Tag field information. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+Yes + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
creation_time + |
+Long + |
+Indicates the time when a log group was created, in milliseconds. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_group_id + |
+String + |
+Log group ID. + |
+
ttl_in_days + |
+Integer + |
+Log retention period. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying a log group
+POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}
+
+{
+ "ttl_in_days" : 8
+}
+Status code: 200
+The request is successful and the log group has been modified.
+{
+ "creation_time" : 156541515155541,
+ "log_group_name" : "groupName",
+ "log_group_id" : "b6b9332b-091f-4b22-b810-264318d2",
+ "ttl_in_days" : 8
+}
+Status code: 400
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0009",
+ "error_msg" : "Failed to validate the request body"
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0414",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError.
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0102",
+ "error_msg" : "Failed to update log group"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request is successful and the log group has been modified. + |
+
400 + |
+BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. +The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to modify the log retention duration of a specified log stream.
+PUT /v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum length: 36 characters. +Maximum length: 36 characters. + |
+
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum length: 36 characters. +Maximum length: 36 characters. + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum length: 36 characters. +Maximum length: 36 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. Minimum length: 1000 characters; Maximum length: 2000 characters. + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum length: 30 characters. +Maximum length: 30 characters. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
ttl_in_days + |
+Yes + |
+Integer + |
+Log retention duration (days). +Minimum: 1 +Maximum: 365 + |
+
tags + |
+No + |
+Array of tagsBody objects + |
+Tag field information. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
key + |
+Yes + |
+String + |
+Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed. + |
+
value + |
+Yes + |
+String + |
+Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
creation_time + |
+Long + |
+Time when a log stream is created. + |
+
log_topic_name + |
+String + |
+Name of a log stream. + |
+
log_topic_id + |
+String + |
+Log stream ID. + |
+
ttl_in_days + |
+Integer + |
+Log retention duration (days). + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modify a log stream.
+PUT https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}
+
+{
+ "ttl_in_days" : 8
+}
+Status code: 200
+The request has succeeded and the log group has been modified.
+{
+ "creation_time" : 1629947408497,
+ "log_topic_name" : "string",
+ "log_topic_id" : "string",
+ "ttl_in_days" : 8
+}
+Status code: 400
+BadRequest. Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0009",
+ "error_msg" : "Failed to validate the request body"
+}
+Status code: 401
+AuthFailed. Authentication failed. Check the token and try again.
+{
+ "error_code" : "LTS.0414",
+ "error_msg" : "Invalid token"
+}
+Status code: 403
+Forbidden. The request is rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.
+{
+ "error_code" : "LTS.0001",
+ "error_msg" : "Invalid projectId"
+}
+Status code: 500
+InternalServerError. The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0204",
+ "error_msg" : "Failed to update log stream"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The request has succeeded and the log group has been modified. + |
+
400 + |
+BadRequest. Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
401 + |
+AuthFailed. Authentication failed. Check the token and try again. + |
+
403 + |
+Forbidden. The request is rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications. + |
+
500 + |
+InternalServerError. The server has received the request but encountered an internal error. + |
+
503 + |
+ServiceUnavailable. The requested service is unavailable. + |
+
See Error Codes.
+This API is used to modify a notification template base on its name.
+PUT /v2/{project_id}/{domain_id}/lts/events/notification/templates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
domain_id + |
+Yes + |
+String + |
+Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
name + |
+Yes + |
+String + |
+Notification rule name, which cannot be changed after the rule is created. +Minimum: 1 +Maximum: 100 + |
+
type + |
+No + |
+Array of strings + |
+Notification method. + |
+
desc + |
+No + |
+String + |
+Template description, which is mandatory. The value can contain only digits, letters, and underscores (_), and cannot start or end with an underscore. The value can contain 0 to 1,024 characters. +Minimum: 0 +Maximum: 1024 + |
+
source + |
+Yes + |
+String + |
+Template source. Currently, this parameter must be set to LTS. Otherwise, the template cannot be filtered. +Minimum: 3 +Maximum: 3 + |
+
locale + |
+Yes + |
+String + |
+Language. +
|
+
templates + |
+Yes + |
+Array of UpdateSubTemplate objects + |
+Template body, which is an array. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
sub_type + |
+Yes + |
+String + |
+Template subtype, for example, sms or email. + |
+
content + |
+Yes + |
+String + |
+Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types. Currently, the variables supported for keyword alarms are as follows: +
NOTE:
+Each variable must be followed by an English semicolon (;). Otherwise, the template replacement fails. + |
+
topic + |
+No + |
+String + |
+Email subject. This parameter is valid only when sub_type is set to email. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
name + |
+String + |
+Notification rule name. + |
+
type + |
+Array of strings + |
+Notification method. + |
+
desc + |
+String + |
+Template description. + |
+
source + |
+String + |
+Template source. + |
+
locale + |
+String + |
+Language. + |
+
templates + |
+Array of SubTemplateResBody objects + |
+Template body, which is an array. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
sub_type + |
+String + |
+Template subtype, for example, sms or email. + |
+
content + |
+String + |
+Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL). + |
+
topic + |
+String + |
+Email subject. This parameter is valid only when sub_type is set to email. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying a message template
+PUT https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+{
+ "name" : "alarm-template",
+ "desc" : "test",
+ "source" : "LTS",
+ "locale" : "en-us",
+ "templates" : [ {
+ "sub_type" : "sms",
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;"
+ }, {
+ "sub_type" : "email",
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;"
+ } ]
+}
+Status code: 201
+The request is successful.
+{
+ "desc" : "description",
+ "locale" : "en-us",
+ "name" : "postman-test1",
+ "source" : "LTS",
+ "templates" : [ {
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;",
+ "sub_type" : "sms"
+ }, {
+ "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+ "sub_type" : "email"
+ } ]
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.2016",
+ "error_msg" : "desc is invalid!"
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2016",
+ "error_msg" : "Failed to update notification template"
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+The request is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to modify structuring configurations using a structuring template.
+PUT /v3/{project_id}/lts/struct/template
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_group_id + |
+Yes + |
+String + |
+Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
log_stream_id + |
+Yes + |
+String + |
+Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 36 +Maximum: 36 + |
+
template_id + |
+Yes + |
+String + |
+Template ID. When the system template is used, the current attribute can be empty. +Minimum: 0 +Maximum: 36 + |
+
template_name + |
+Yes + |
+String + |
+Template name, which cannot be empty and will be verified. +Minimum: 1 +Maximum: 64 + |
+
template_type + |
+Yes + |
+String + |
+Type of the template. The value can be built_in (system templates) or custom (custom templates). For details about system template types, see section "Log Search and Analysis" > "Cloud Structuring Parsing" > "Structuring Templates" in the LTS User Guide. + |
+
demo_fields + |
+No + |
+Array of FieldModel objects + |
+Example field array. You only need to enter the fields whose status is different from that of is_analysis in the template. + |
+
tag_fields + |
+No + |
+Array of FieldModel objects + |
+Tag field array. You only need to enter the fields whose status is different from that of is_analysis in the template. + |
+
quick_analysis + |
+No + |
+Boolean + |
+Indicates whether to enable quick analysis for demo_fields and tag_fields. If this parameter is set to true, quick analysis is enabled for all fields. If this parameter is left blank or set to false, is_analysis in the template is used to determine whether to enable quick analysis. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
- + |
+String + |
++ |
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying an ELB system template
+PUT https://{endpoint}/v3/{project_id}/lts/struct/template
+
+{
+ "log_group_id" : "17f23e52-a23d-46e0-8bc5-xxxxxxxxxxxx",
+ "log_stream_id" : "b4d56d47-b4c4-453e-9047-xxxxxxxxxxxx",
+ "demo_fields" : [ {
+ "field_name" : "msec",
+ "is_analysis" : false
+ }, {
+ "field_name" : "access_log_topic_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "time_iso8601",
+ "is_analysis" : false
+ }, {
+ "field_name" : "log_ver",
+ "is_analysis" : true
+ }, {
+ "field_name" : "remote_addr",
+ "is_analysis" : true
+ }, {
+ "field_name" : "remote_port",
+ "is_analysis" : false
+ }, {
+ "field_name" : "status",
+ "is_analysis" : false
+ }, {
+ "field_name" : "request_method",
+ "is_analysis" : false
+ }, {
+ "field_name" : "scheme",
+ "is_analysis" : true
+ }, {
+ "field_name" : "host",
+ "is_analysis" : true
+ }, {
+ "field_name" : "router_request_uri",
+ "is_analysis" : true
+ }, {
+ "field_name" : "server_protocol",
+ "is_analysis" : true
+ }, {
+ "field_name" : "request_length",
+ "is_analysis" : true
+ }, {
+ "field_name" : "bytes_sent",
+ "is_analysis" : false
+ }, {
+ "field_name" : "body_bytes_sent",
+ "is_analysis" : false
+ }, {
+ "field_name" : "request_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_status",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_connect_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_header_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_response_time",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_addr",
+ "is_analysis" : false
+ }, {
+ "field_name" : "http_user_agent",
+ "is_analysis" : false
+ }, {
+ "field_name" : "http_referer",
+ "is_analysis" : false
+ }, {
+ "field_name" : "http_x_forwarded_for",
+ "is_analysis" : false
+ }, {
+ "field_name" : "lb_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "listener_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "listener_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "pool_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "member_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "tenant_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "eip_address",
+ "is_analysis" : false
+ }, {
+ "field_name" : "eip_port",
+ "is_analysis" : false
+ }, {
+ "field_name" : "upstream_addr_priv",
+ "is_analysis" : false
+ }, {
+ "field_name" : "certificate_id",
+ "is_analysis" : false
+ }, {
+ "field_name" : "ssl_protocol",
+ "is_analysis" : false
+ }, {
+ "field_name" : "ssl_cipher",
+ "is_analysis" : false
+ }, {
+ "field_name" : "sni_domain_name",
+ "is_analysis" : false
+ }, {
+ "field_name" : "tcpinfo_rtt",
+ "is_analysis" : false
+ } ],
+ "tag_fields" : [ {
+ "field_name" : "hostIP",
+ "is_analysis" : true
+ } ],
+ "template_type" : "built_in",
+ "template_name" : "ELB",
+ "template_id" : "",
+ "quick_analysis" : false
+}
+Modifying a VPC system template
+https://{endpoint}/v3/{project_id}/lts/struct/template
+
+{
+ "log_group_id" : "17f23e52-a23d-46e0-8bc5-xxxxxxxxxxxx",
+ "log_stream_id" : "b4d56d47-b4c4-453e-9047-xxxxxxxxxxxx",
+ "demo_fields" : [ {
+ "field_name" : "version"
+ }, {
+ "field_name" : "project_id"
+ }, {
+ "field_name" : "interface_id"
+ }, {
+ "field_name" : "srcaddr"
+ }, {
+ "field_name" : "dstaddr"
+ }, {
+ "field_name" : "srcport"
+ }, {
+ "field_name" : "dstport"
+ }, {
+ "field_name" : "protocol"
+ }, {
+ "field_name" : "packets"
+ }, {
+ "field_name" : "bytes"
+ }, {
+ "field_name" : "start"
+ }, {
+ "field_name" : "end"
+ }, {
+ "field_name" : "action"
+ }, {
+ "field_name" : "log_status"
+ } ],
+ "tag_fields" : [ {
+ "field_name" : "hostIP",
+ "is_analysis" : true
+ } ],
+ "template_type" : "built_in",
+ "template_name" : "VPC",
+ "template_id" : "",
+ "quick_analysis" : false
+}
+Status code: 201
+The request is successful.
+None+
Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.2014",
+ "error_msg" : "Failed to create struct config."
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.2016",
+ "error_msg" : "Failed to update struct config"
+}
+Status Code + |
+Description + |
+
|---|---|
201 + |
+The request is successful. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+This API is used to update an OBS transfer task.
+PUT /v2/{project_id}/transfers
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. +Minimum: 32 +Maximum: 32 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
X-Auth-Token + |
+Yes + |
+String + |
+User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. +Minimum: 1000 +Maximum: 2000 + |
+
Content-Type + |
+Yes + |
+String + |
+Set this parameter to application/json;charset=UTF-8. +Minimum: 30 +Maximum: 30 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_transfer_id + |
+Yes + |
+String + |
+Log transfer task ID. +Minimum: 36 +Maximum: 36 + |
+
log_transfer_info + |
+Yes + |
+update_log_transfer_info object + |
+Log transfer information. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
log_storage_format + |
+Yes + |
+String + |
+Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks. + |
+
log_transfer_status + |
+Yes + |
+String + |
+Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal. + |
+
log_transfer_detail + |
+Yes + |
+log_transfer_detail object + |
+Log transfer details. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
|---|---|---|---|
obs_period + |
+Yes + |
+Integer + |
+Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_period_unit + |
+Yes + |
+String + |
+Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_bucket_name + |
+Yes + |
+String + |
+OBS bucket name. This parameter is required when you create an OBS transfer task. +Minimum: 3 +Maximum: 63 + |
+
obs_encrypted_id + |
+No + |
+String + |
+KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket. +Minimum: 36 +Maximum: 36 + |
+
obs_dir_pre_fix_name + |
+No + |
+String + |
+Custom transfer path of an OBS transfer task. This parameter is optional. +Minimum: 1 +Maximum: 64 + |
+
obs_prefix_name + |
+No + |
+String + |
+Transfer file prefix of an OBS transfer task. This parameter is optional. +Minimum: 1 +Maximum: 64 + |
+
obs_time_zone + |
+No + |
+String + |
+Time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone_id must also be specified. + |
+
obs_time_zone_id + |
+No + |
+String + |
+ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified. + |
+
obs_transfer_path + |
+No + |
+String + |
+OBS bucket path, which is the log transfer destination. + |
+
obs_eps_id + |
+No + |
+String + |
+Enterprise project ID of an OBS transfer task. + |
+
obs_encrypted_enable + |
+No + |
+Boolean + |
+Whether OBS bucket encryption is enabled. + |
+
tags + |
+No + |
+Array of strings + |
+If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime. +The common fields are logStreamName, regionName, logGroupName, and projectId, which are optional. The tag for enabling transfer is streamTag, which is optional. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_group_id + |
+String + |
+Log group ID. + |
+
log_group_name + |
+String + |
+Log group name. + |
+
log_streams + |
+Array of log_streams objects + |
+Log stream list. + |
+
log_transfer_id + |
+String + |
+Log transfer task ID. + |
+
log_transfer_info + |
+log_transfer_info_RespBody object + |
+Log transfer information. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_stream_id + |
+String + |
+Log stream ID. + |
+
log_stream_name + |
+String + |
+Log stream name. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
log_agency_transfer + |
+log_agency_transfer object + |
+Information about delegated log transfer. This parameter is returned for a delegated log transfer task. + |
+
log_create_time + |
+Integer + |
+Time when the log transfer task was created. + |
+
log_storage_format + |
+String + |
+Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks. + |
+
log_transfer_detail + |
+TransferDetail object + |
+Log transfer details. + |
+
log_transfer_mode + |
+String + |
+Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks. + |
+
log_transfer_status + |
+String + |
+Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal. + |
+
log_transfer_type + |
+String + |
+Log transfer type. OBS indicates that logs are transferred to OBS. + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
agency_domain_id + |
+String + |
+Delegator account ID. + |
+
agency_domain_name + |
+String + |
+Delegator account name. + |
+
agency_name + |
+String + |
+Name of the agency created by the delegator. + |
+
agency_project_id + |
+String + |
+Project ID of the delegator. + |
+
be_agency_domain_id + |
+String + |
+Account ID of the delegated party (ID of the account that created the log transfer task). + |
+
be_agency_project_id + |
+String + |
+Project ID of the delegated party (project ID of the account that created the log transfer task). + |
+
Parameter + |
+Type + |
+Description + |
+
|---|---|---|
obs_period + |
+Integer + |
+Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_period_unit + |
+String + |
+Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours. + |
+
obs_bucket_name + |
+String + |
+OBS bucket name. This parameter is required when you create an OBS transfer task. + |
+
obs_encrypted_id + |
+String + |
+KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket. + |
+
obs_dir_pre_fix_name + |
+String + |
+Custom transfer path of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$ + |
+
obs_prefix_name + |
+String + |
+Transfer file prefix of an OBS transfer task. This parameter is optional. +The value must match the regular expression: +^[a-zA-Z0-9._-]*$ + |
+
obs_time_zone + |
+String + |
+Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified. + |
+
obs_time_zone_id + |
+String + |
+ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified. + |
+
obs_transfer_path + |
+String + |
+OBS bucket path, which is the log transfer destination. + |
+
obs_eps_id + |
+String + |
+Enterprise project ID of an OBS transfer task. + |
+
obs_encrypted_enable + |
+Boolean + |
+Whether OBS bucket encryption is enabled. + |
+
tags + |
+Array of strings + |
+If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime. +The common fields include logStreamName, regionName, logGroupName and projectId, which are optional. +The transfer tag streamTag is optional. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
|---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Updating an OBS transfer task
+PUT https://{endpoint}/v2/{project_id}/transfers
+
+{
+ "log_transfer_id" : "9f74e101-b969-483c-a610-d3f3064xxxxx",
+ "log_transfer_info" : {
+ "log_storage_format" : "JSON",
+ "log_transfer_status" : "DISABLE",
+ "log_transfer_detail" : {
+ "obs_period" : 3,
+ "obs_period_unit" : "hour",
+ "obs_bucket_name" : "0xxx",
+ "obs_encrypted_id" : "1bd90032-1424-481f-8558-ba49854xxxxx",
+ "obs_dir_pre_fix_name" : "xx",
+ "obs_prefix_name" : "xxxxx",
+ "obs_time_zone" : "UTC+01:00",
+ "obs_time_zone_id" : "Africa/Lagos"
+ }
+ }
+}
+Status code: 200
+The transfer task is updated.
+The following parameters are returned for an OBS transfer task:
+{
+ "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+ "log_group_name" : "lts-group-OBS",
+ "log_streams" : [ {
+ "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+ "log_stream_name" : "lts-topic-OBS"
+ } ],
+ "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+ "log_transfer_info" : {
+ "log_create_time" : 1634802241847,
+ "log_storage_format" : "JSON",
+ "log_agency_transfer" : {
+ "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+ "agency_name" : "test20210325",
+ "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+ "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+ "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+ },
+ "log_transfer_detail" : {
+ "obs_period" : 2,
+ "obs_prefix_name" : "",
+ "obs_period_unit" : "min",
+ "obs_transfer_path" : "/0002/LogTanks/xxxx-7/",
+ "obs_bucket_name" : "0002",
+ "obs_encrypted_enable" : false,
+ "obs_dir_pre_fix_name" : "",
+ "obs_time_zone" : "UTC+01:00",
+ "obs_time_zone_id" : "Africa/Lagos",
+ "tags" : [ ]
+ },
+ "log_transfer_mode" : "cycle",
+ "log_transfer_status" : "ENABLE",
+ "log_transfer_type" : "OBS"
+ }
+}
+Status code: 400
+Invalid request. Modify the request based on the description in error_msg before a retry.
+{
+ "error_code" : "LTS.0009",
+ "error_msg" : "The Field transfer id is invalid or missing."
+}
+Status code: 500
+The server has received the request but encountered an internal error.
+{
+ "error_code" : "LTS.0010",
+ "error_msg" : "The system encountered an internal error"
+}
+Status Code + |
+Description + |
+
|---|---|
200 + |
+The transfer task is updated. + |
+
400 + |
+Invalid request. Modify the request based on the description in error_msg before a retry. + |
+
500 + |
+The server has received the request but encountered an internal error. + |
+
See Error Codes.
+Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://lts.eu-de.otc.t-systems.com/uri. In the URL,uri indicates the resource path, that is, the API access path.
-Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.
-For details about how to use APIs, see API Usage Guidelines.
-This API is used to create a log group. All API URLs described in this section must be case-sensitive.
-This function describes how to create a log group for log storage and query. You can create a maximum of 100 log groups.
+This API is used to create a log group. All API URLs described in this section must be case-sensitive.
+This function describes how to create a log group for log storage and query. You can create a maximum of 100 log groups.
POST /v2.0/{project_id}/log-groups
+Parameter +
|
|---|