diff --git a/docs/cts/api-ref/.placeholder b/docs/cts/api-ref/.placeholder deleted file mode 100644 index e69de29b..00000000 diff --git a/docs/cts/api-ref/ALL_META.TXT.json b/docs/cts/api-ref/ALL_META.TXT.json index 669ccc5f..89b2d5ea 100644 --- a/docs/cts/api-ref/ALL_META.TXT.json +++ b/docs/cts/api-ref/ALL_META.TXT.json @@ -1,212 +1,822 @@ [ { - "uri":"en-us_topic_0168602179.html", + "dockw":"API Reference" + }, + { + "uri":"cts_api_0001.html", + "node_id":"cts_api_0001.xml", "product_code":"cts", "code":"1", - "des":"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 Resourc", + "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":"API Usage Guidelines,API Reference", - "title":"API Usage Guidelines", + "kw":"Before You Start", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Before You Start", "githuburl":"" }, { - "uri":"en-us_topic_0168602260.html", + "uri":"cts_api_0030.html", + "node_id":"cts_api_0030.xml", "product_code":"cts", "code":"2", - "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.", + "des":"Cloud Trace Service (CTS) is a log audit service designed to strengthen cloud security. It allows you to collect, store, and query resource operation records. You can use", "doc_type":"api", - "kw":"API Description", - "title":"API Description", + "kw":"Overview,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Overview", "githuburl":"" }, { - "uri":"en-us_topic_0168602231.html", + "uri":"cts_api_0025.html", + "node_id":"cts_api_0025.xml", "product_code":"cts", "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.", + "des":"CTS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", "doc_type":"api", - "kw":"API Version Management", - "title":"API Version Management", + "kw":"API Calling,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"API Calling", "githuburl":"" }, { - "uri":"en-us_topic_0168602247.html", + "uri":"cts_api_0026.html", + "node_id":"cts_api_0026.xml", "product_code":"cts", "code":"4", - "des":"This API is used to query all API versions supported by Cloud Trace Service (CTS).GET /NoneParameter descriptionParameters in the responseParameterMandatoryTypeDescriptio", + "des":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of CTS, see Regions and Endpoints.", "doc_type":"api", - "kw":"Querying All API Versions,API Version Management,API Reference", - "title":"Querying All API Versions", + "kw":"Endpoints,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Endpoints", "githuburl":"" }, { - "uri":"en-us_topic_0168602243.html", + "uri":"cts_api_0027.html", + "node_id":"cts_api_0027.xml", "product_code":"cts", "code":"5", - "des":"This API is used to query a specified API version of CTS.GET/{api_version}The URI parameters are described in Table 1.Parameters in the URIParameterMandatoryDescriptionap", + "des":"A maximum of 1 management tracker can be created in an account. The quotas cannot be modified.For more constraints, see API description.", "doc_type":"api", - "kw":"Querying a Specified API Version,API Version Management,API Reference", - "title":"Querying a Specified API Version", + "kw":"Constraints,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Constraints", "githuburl":"" }, { - "uri":"en-us_topic_0168602232.html", + "uri":"cts_api_0028.html", + "node_id":"cts_api_0028.xml", "product_code":"cts", "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.", + "des":"AccountAn account is created upon successful registration. The account has full access permissions for all of its cloud services and resources. It can be used to reset us", "doc_type":"api", - "kw":"Tracker Management", - "title":"Tracker Management", + "kw":"Concepts,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Concepts", "githuburl":"" }, { - "uri":"en-us_topic_0168602251.html", + "uri":"cts_api_0029.html", + "node_id":"cts_api_0029.xml", "product_code":"cts", "code":"7", - "des":"All API URLs described in this section are case-sensitive.This API is used to create a tracker.A tracker will be automatically created when CTS is enabled. All traces rec", + "des":"It is recommended that you use the V3 APIs, which are more powerful and easy to use. The V1 APIs will be brought offline soon.", "doc_type":"api", - "kw":"Creating a Tracker,Tracker Management,API Reference", - "title":"Creating a Tracker", + "kw":"API Versions,Before You Start,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"API Versions", "githuburl":"" }, { - "uri":"en-us_topic_0168602227.html", + "uri":"cts_api_0002.html", + "node_id":"cts_api_0002.xml", "product_code":"cts", "code":"8", - "des":"CTS allows you to modify configuration parameters of a created tracker, including parameters related to Transfer to OBS and Trace Analysis. You can also change tracker st", + "des":"With the extension APIs provided by CTS, you can use all CTS functions, such as querying the trace list, or creating a tracker.Table 1 lists CTS APIs.", "doc_type":"api", - "kw":"Modifying a Tracker,Tracker Management,API Reference", - "title":"Modifying a Tracker", + "kw":"API Overview,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"API Overview", "githuburl":"" }, { - "uri":"en-us_topic_0168602253.html", + "uri":"cts_api_0006.html", + "node_id":"cts_api_0006.xml", "product_code":"cts", "code":"9", - "des":"This API is used to query the details of a tracker. The details include the name of the tracker, name of the OBS bucket for storing traces, and prefix of the trace files ", - "doc_type":"api", - "kw":"Querying a Tracker,Tracker Management,API Reference", - "title":"Querying a Tracker", - "githuburl":"" - }, - { - "uri":"en-us_topic_0168602223.html", - "product_code":"cts", - "code":"10", - "des":"This API is used to delete a tracker. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can still view th", - "doc_type":"api", - "kw":"Deleting a Tracker,Tracker Management,API Reference", - "title":"Deleting a Tracker", - "githuburl":"" - }, - { - "uri":"en-us_topic_0168602178.html", - "product_code":"cts", - "code":"11", "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":"Trace Management", - "title":"Trace Management", + "kw":"Calling APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Calling APIs", "githuburl":"" }, { - "uri":"en-us_topic_0168602225.html", + "uri":"cts_api_0007.html", + "node_id":"cts_api_0007.xml", + "product_code":"cts", + "code":"10", + "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":"cts", + "opensource":"true" + } + ], + "title":"Making an API Request", + "githuburl":"" + }, + { + "uri":"cts_api_0004.html", + "node_id":"cts_api_0004.xml", + "product_code":"cts", + "code":"11", + "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":"cts", + "opensource":"true" + } + ], + "title":"Authentication", + "githuburl":"" + }, + { + "uri":"cts_api_0024.html", + "node_id":"cts_api_0024.xml", "product_code":"cts", "code":"12", - "des":"This API is used to query records of operations on resources in the last seven days.GET /v1.0/{project_id}/{tracker_name}/trace{?trace_id,service_type,resource_type,resou", + "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":"Querying Traces (v1.0),Trace Management,API Reference", - "title":"Querying Traces (v1.0)", + "kw":"Response,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Response", "githuburl":"" }, { - "uri":"en-us_topic_0168602252.html", + "uri":"cts_api_0008.html", + "node_id":"cts_api_0008.xml", "product_code":"cts", "code":"13", - "des":"This API is used to query records of operations on resources in the last seven days. In v2.0, the request parameter trace_rating is changed to trace_status, and the type ", + "des":"This section describes how to create a tracker by calling APIs.The token obtained from IAM is valid for only 24 hours. If you want to use the same token for authenticatio", "doc_type":"api", - "kw":"Querying Traces (v2.0),Trace Management,API Reference", - "title":"Querying Traces (v2.0)", + "kw":"Getting Started,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Getting Started", "githuburl":"" }, { - "uri":"topic_300000003.html", - "product_code":"", + "uri":"cts_api_0101.html", + "node_id":"cts_api_0101.xml", + "product_code":"cts", "code":"14", "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":"V3 APIs (Recommended)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"V3 APIs (Recommended)", + "githuburl":"" + }, + { + "uri":"topic_300000000.html", + "node_id":"topic_300000000.xml", + "product_code":"cts", + "code":"15", + "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":"Key Event Notification Management", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], "title":"Key Event Notification Management", "githuburl":"" }, { "uri":"cts_api_0312.html", - "product_code":"", - "code":"15", + "node_id":"cts_api_0312.xml", + "product_code":"cts", + "code":"16", "des":"SMS, email, or HTTP/HTTPS notifications can be sent through pre-configured SMN topics to subscribers when key operations occur. This helps you detect high-risk operations", "doc_type":"api", "kw":"Creating a Key Event Notification,Key Event Notification Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], "title":"Creating a Key Event Notification", "githuburl":"" }, { "uri":"cts_api_0313.html", - "product_code":"", - "code":"16", - "des":"This API is used to modify a key event notification. The notification ID carried in the request must be valid.PUT /v3/{project_id}/notificationsStatus code: 200Status cod", + "node_id":"cts_api_0313.xml", + "product_code":"cts", + "code":"17", + "des":"This API is used to modify a key event notification. The notification ID carried in the request must be valid.For details, see Calling APIs.PUT /v3/{project_id}/notificat", "doc_type":"api", "kw":"Modifying a Key Event Notification,Key Event Notification Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], "title":"Modifying a Key Event Notification", "githuburl":"" }, { "uri":"cts_api_0314.html", - "product_code":"", - "code":"17", - "des":"This API is used to delete a key event notification.DELETE /v3/{project_id}/notificationsNoneStatus code: 400NoneNoneSee Error Codes.", + "node_id":"cts_api_0314.xml", + "product_code":"cts", + "code":"18", + "des":"This API is used to delete a key event notification.For details, see Calling APIs.DELETE /v3/{project_id}/notificationsNoneStatus code: 400Status code: 401Status code: 40", "doc_type":"api", "kw":"Deleting a Key Event Notification,Key Event Notification Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], "title":"Deleting a Key Event Notification", "githuburl":"" }, { "uri":"cts_api_0315.html", - "product_code":"", - "code":"18", - "des":"This API is used to query a key event notification.GET /v3/{project_id}/notifications/{notification_type}NoneStatus code: 200Status code: 400NoneStatus code: 200The query", + "node_id":"cts_api_0315.xml", + "product_code":"cts", + "code":"19", + "des":"This API is used to query a key event notification.For details, see Calling APIs.GET /v3/{project_id}/notifications/{notification_type}NoneStatus code: 200Status code: 40", "doc_type":"api", "kw":"Querying a Key Event Notification,Key Event Notification Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], "title":"Querying a Key Event Notification", "githuburl":"" }, { - "uri":"en-us_topic_0168602233.html", + "uri":"cts_api_0310.html", + "node_id":"cts_api_0310.xml", "product_code":"cts", - "code":"19", + "code":"20", "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":"Trace Management", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Trace Management", "githuburl":"" }, { - "uri":"en-us_topic_0168602259.html", + "uri":"cts_api_0311.html", + "node_id":"cts_api_0311.xml", "product_code":"cts", - "code":"20", - "des":"This section explains the meanings of error codes returned by CTS APIs.{\"error_code\": \"CTS.0003\",\"error_msg\": \"Invalid message body. The message body is empty or invalid.", + "code":"21", + "des":"This API is used to query records of operations on resources in the last seven days.GET /v3/{project_id}/tracesNoneStatus code: 200Status code: 400Status code: 401Status ", "doc_type":"api", - "kw":"Error Codes,Public Parameters,API Reference", + "kw":"Querying a Trace List,Trace Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying a Trace List", + "githuburl":"" + }, + { + "uri":"cts_api_0320.html", + "node_id":"cts_api_0320.xml", + "product_code":"cts", + "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":"Tracker Management", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Tracker Management", + "githuburl":"" + }, + { + "uri":"cts_api_0321.html", + "node_id":"cts_api_0321.xml", + "product_code":"cts", + "code":"23", + "des":"When you enable CTS, a tracker is automatically created to associate with the cloud services you are using and record all operations on the services. A management tracker", + "doc_type":"api", + "kw":"Creating a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Creating a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_0322.html", + "node_id":"cts_api_0322.xml", + "product_code":"cts", + "code":"24", + "des":"This API is used to modify configurations of a tracker, including trace transfer to OBS buckets, key event notifications, trace file encryption, trace search and analysis", + "doc_type":"api", + "kw":"Modifying a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Modifying a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_0323.html", + "node_id":"cts_api_0323.xml", + "product_code":"cts", + "code":"25", + "des":"After CTS is enabled, you can view details about the tracker on the Tracker page. The details include the name of the tracker, name of the OBS bucket for storing traces, ", + "doc_type":"api", + "kw":"Querying a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_0324.html", + "node_id":"cts_api_0324.xml", + "product_code":"cts", + "code":"26", + "des":"This API is used to delete a tracker. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can still view th", + "doc_type":"api", + "kw":"Deleting a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Deleting a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_0330.html", + "node_id":"cts_api_0330.xml", + "product_code":"cts", + "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":"Other APIs", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Other APIs", + "githuburl":"" + }, + { + "uri":"cts_api_0331.html", + "node_id":"cts_api_0331.xml", + "product_code":"cts", + "code":"28", + "des":"This API is used to querying tenant quota Information.GET /v3/{project_id}/quotasNoneStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 404Statu", + "doc_type":"api", + "kw":"Querying Tenant Quota Information,Other APIs,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying Tenant Quota Information", + "githuburl":"" + }, + { + "uri":"cts_api_0010.html", + "node_id":"cts_api_0010.xml", + "product_code":"cts", + "code":"29", + "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":"API Version Management", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"API Version Management", + "githuburl":"" + }, + { + "uri":"cts_api_00325.html", + "node_id":"cts_api_00325.xml", + "product_code":"cts", + "code":"30", + "des":"This API is used to query all API versions supported by CTS.GET /NoneStatus code: 200NoneStatus code: 200The request is successful.For details, see Error Codes.", + "doc_type":"api", + "kw":"Querying All API Versions,API Version Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying All API Versions", + "githuburl":"" + }, + { + "uri":"cts_api_0012.html", + "node_id":"cts_api_0012.xml", + "product_code":"cts", + "code":"31", + "des":"This API is used to query a specified API version of CTS.GET /{version}NoneStatus code: 200NoneStatus code: 200The request is successful.For details, see Error Codes.", + "doc_type":"api", + "kw":"Querying a Specific API Version,API Version Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying a Specific API Version", + "githuburl":"" + }, + { + "uri":"cts_api_0009.html", + "node_id":"cts_api_0009.xml", + "product_code":"cts", + "code":"32", + "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":"Out-of-date APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Out-of-date APIs", + "githuburl":"" + }, + { + "uri":"cts_api_0018.html", + "node_id":"cts_api_0018.xml", + "product_code":"cts", + "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":"Trace Management", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Trace Management", + "githuburl":"" + }, + { + "uri":"cts_api_0019.html", + "node_id":"cts_api_0019.xml", + "product_code":"cts", + "code":"34", + "des":"This API is used to query records of operations on resources in the last seven days.GET /v1.0/{project_id}/{tracker_name}/traceNoneStatus code: 200Status code: 200The req", + "doc_type":"api", + "kw":"Querying Traces (v1.0),Trace Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying Traces (v1.0)", + "githuburl":"" + }, + { + "uri":"cts_api_0903.html", + "node_id":"cts_api_0903.xml", + "product_code":"cts", + "code":"35", + "des":"This API is used to query records of operations on resources in the last seven days.GET /v2.0/{project_id}/{tracker_name}/traceNoneStatus code: 200Status code: 200The req", + "doc_type":"api", + "kw":"Querying Traces (v2.0),Trace Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying Traces (v2.0)", + "githuburl":"" + }, + { + "uri":"cts_api_0013.html", + "node_id":"cts_api_0013.xml", + "product_code":"cts", + "code":"36", + "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":"Tracker Management", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Tracker Management", + "githuburl":"" + }, + { + "uri":"cts_api_0125.html", + "node_id":"cts_api_0125.xml", + "product_code":"cts", + "code":"37", + "des":"When you enable CTS, a tracker is automatically created to associate with the cloud services you are using and record all operations on the services. Currently, only one ", + "doc_type":"api", + "kw":"Creating a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Creating a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_0016.html", + "node_id":"cts_api_0016.xml", + "product_code":"cts", + "code":"38", + "des":"This API is used to query the details of a tracker. The details include the name of the tracker, name of the OBS bucket for storing traces, and prefix of the trace files ", + "doc_type":"api", + "kw":"Querying a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Querying a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_0017.html", + "node_id":"cts_api_0017.xml", + "product_code":"cts", + "code":"39", + "des":"This API is used to delete a tracker from CTS. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can stil", + "doc_type":"api", + "kw":"Deleting a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Deleting a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_632.html", + "node_id":"cts_api_632.xml", + "product_code":"cts", + "code":"40", + "des":"This API is used to modify configurations of a tracker, including trace transfer to OBS buckets, key event notifications, trace file encryption, trace search and analysis", + "doc_type":"api", + "kw":"Modifying a Tracker,Tracker Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"cts", + "documenttype":"api", + "opensource":"true" + } + ], + "title":"Modifying a Tracker", + "githuburl":"" + }, + { + "uri":"cts_api_0020.html", + "node_id":"cts_api_0020.xml", + "product_code":"cts", + "code":"41", + "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":"cts", + "opensource":"true" + } + ], + "title":"Appendix", + "githuburl":"" + }, + { + "uri":"ErrorCode.html", + "node_id":"errorcode_1.xml", + "product_code":"cts", + "code":"42", + "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":[ + { + "prodname":"cts", + "opensource":"true", + "documenttype":"api" + } + ], "title":"Error Codes", "githuburl":"" }, { - "uri":"en-us_topic_0168602228.html", + "uri":"cts_api_0005.html", + "node_id":"cts_api_0005.xml", "product_code":"cts", - "code":"21", - "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.", + "code":"43", + "des":"Account ID (domain-id) and project ID are required for some URLs when an API is called. You can perform the following operations to obtain these IDs:Log in to the managem", "doc_type":"api", - "kw":"Change History,API Reference", - "title":"Change History", + "kw":"Obtaining an Account ID and Project ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"cts", + "opensource":"true" + } + ], + "title":"Obtaining an Account ID and Project ID", "githuburl":"" } ] \ No newline at end of file diff --git a/docs/cts/api-ref/CLASS.TXT.json b/docs/cts/api-ref/CLASS.TXT.json index 38cb0350..9fb7c594 100644 --- a/docs/cts/api-ref/CLASS.TXT.json +++ b/docs/cts/api-ref/CLASS.TXT.json @@ -1,191 +1,389 @@ [ { - "desc":"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 Resourc", + "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":"cts", - "title":"API Usage Guidelines", - "uri":"en-us_topic_0168602179.html", + "title":"Before You Start", + "uri":"cts_api_0001.html", "doc_type":"api", "p_code":"", "code":"1" }, { - "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.", + "desc":"Cloud Trace Service (CTS) is a log audit service designed to strengthen cloud security. It allows you to collect, store, and query resource operation records. You can use", "product_code":"cts", - "title":"API Description", - "uri":"en-us_topic_0168602260.html", + "title":"Overview", + "uri":"cts_api_0030.html", "doc_type":"api", - "p_code":"", + "p_code":"1", "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.", + "desc":"CTS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.", "product_code":"cts", - "title":"API Version Management", - "uri":"en-us_topic_0168602231.html", + "title":"API Calling", + "uri":"cts_api_0025.html", "doc_type":"api", - "p_code":"2", + "p_code":"1", "code":"3" }, { - "desc":"This API is used to query all API versions supported by Cloud Trace Service (CTS).GET /NoneParameter descriptionParameters in the responseParameterMandatoryTypeDescriptio", + "desc":"An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of CTS, see Regions and Endpoints.", "product_code":"cts", - "title":"Querying All API Versions", - "uri":"en-us_topic_0168602247.html", + "title":"Endpoints", + "uri":"cts_api_0026.html", "doc_type":"api", - "p_code":"3", + "p_code":"1", "code":"4" }, { - "desc":"This API is used to query a specified API version of CTS.GET/{api_version}The URI parameters are described in Table 1.Parameters in the URIParameterMandatoryDescriptionap", + "desc":"A maximum of 1 management tracker can be created in an account. The quotas cannot be modified.For more constraints, see API description.", "product_code":"cts", - "title":"Querying a Specified API Version", - "uri":"en-us_topic_0168602243.html", + "title":"Constraints", + "uri":"cts_api_0027.html", "doc_type":"api", - "p_code":"3", + "p_code":"1", "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.", + "desc":"AccountAn account is created upon successful registration. The account has full access permissions for all of its cloud services and resources. It can be used to reset us", "product_code":"cts", - "title":"Tracker Management", - "uri":"en-us_topic_0168602232.html", + "title":"Concepts", + "uri":"cts_api_0028.html", "doc_type":"api", - "p_code":"2", + "p_code":"1", "code":"6" }, { - "desc":"All API URLs described in this section are case-sensitive.This API is used to create a tracker.A tracker will be automatically created when CTS is enabled. All traces rec", + "desc":"It is recommended that you use the V3 APIs, which are more powerful and easy to use. The V1 APIs will be brought offline soon.", "product_code":"cts", - "title":"Creating a Tracker", - "uri":"en-us_topic_0168602251.html", + "title":"API Versions", + "uri":"cts_api_0029.html", "doc_type":"api", - "p_code":"6", + "p_code":"1", "code":"7" }, { - "desc":"CTS allows you to modify configuration parameters of a created tracker, including parameters related to Transfer to OBS and Trace Analysis. You can also change tracker st", + "desc":"With the extension APIs provided by CTS, you can use all CTS functions, such as querying the trace list, or creating a tracker.Table 1 lists CTS APIs.", "product_code":"cts", - "title":"Modifying a Tracker", - "uri":"en-us_topic_0168602227.html", + "title":"API Overview", + "uri":"cts_api_0002.html", "doc_type":"api", - "p_code":"6", + "p_code":"", "code":"8" }, - { - "desc":"This API is used to query the details of a tracker. The details include the name of the tracker, name of the OBS bucket for storing traces, and prefix of the trace files ", - "product_code":"cts", - "title":"Querying a Tracker", - "uri":"en-us_topic_0168602253.html", - "doc_type":"api", - "p_code":"6", - "code":"9" - }, - { - "desc":"This API is used to delete a tracker. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can still view th", - "product_code":"cts", - "title":"Deleting a Tracker", - "uri":"en-us_topic_0168602223.html", - "doc_type":"api", - "p_code":"6", - "code":"10" - }, { "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":"cts", - "title":"Trace Management", - "uri":"en-us_topic_0168602178.html", + "title":"Calling APIs", + "uri":"cts_api_0006.html", "doc_type":"api", - "p_code":"2", + "p_code":"", + "code":"9" + }, + { + "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":"cts", + "title":"Making an API Request", + "uri":"cts_api_0007.html", + "doc_type":"api", + "p_code":"9", + "code":"10" + }, + { + "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":"cts", + "title":"Authentication", + "uri":"cts_api_0004.html", + "doc_type":"api", + "p_code":"9", "code":"11" }, { - "desc":"This API is used to query records of operations on resources in the last seven days.GET /v1.0/{project_id}/{tracker_name}/trace{?trace_id,service_type,resource_type,resou", + "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":"cts", - "title":"Querying Traces (v1.0)", - "uri":"en-us_topic_0168602225.html", + "title":"Response", + "uri":"cts_api_0024.html", "doc_type":"api", - "p_code":"11", + "p_code":"9", "code":"12" }, { - "desc":"This API is used to query records of operations on resources in the last seven days. In v2.0, the request parameter trace_rating is changed to trace_status, and the type ", + "desc":"This section describes how to create a tracker by calling APIs.The token obtained from IAM is valid for only 24 hours. If you want to use the same token for authenticatio", "product_code":"cts", - "title":"Querying Traces (v2.0)", - "uri":"en-us_topic_0168602252.html", + "title":"Getting Started", + "uri":"cts_api_0008.html", "doc_type":"api", - "p_code":"11", + "p_code":"", "code":"13" }, { "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":"cts", - "title":"Key Event Notification Management", - "uri":"topic_300000003.html", + "title":"V3 APIs (Recommended)", + "uri":"cts_api_0101.html", "doc_type":"api", - "p_code":"2", + "p_code":"", "code":"14" }, + { + "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":"cts", + "title":"Key Event Notification Management", + "uri":"topic_300000000.html", + "doc_type":"api", + "p_code":"14", + "code":"15" + }, { "desc":"SMS, email, or HTTP/HTTPS notifications can be sent through pre-configured SMN topics to subscribers when key operations occur. This helps you detect high-risk operations", "product_code":"cts", "title":"Creating a Key Event Notification", "uri":"cts_api_0312.html", "doc_type":"api", - "p_code":"14", - "code":"15" + "p_code":"15", + "code":"16" }, { - "desc":"This API is used to modify a key event notification. The notification ID carried in the request must be valid.PUT /v3/{project_id}/notificationsStatus code: 200Status cod", + "desc":"This API is used to modify a key event notification. The notification ID carried in the request must be valid.For details, see Calling APIs.PUT /v3/{project_id}/notificat", "product_code":"cts", "title":"Modifying a Key Event Notification", "uri":"cts_api_0313.html", "doc_type":"api", - "p_code":"14", - "code":"16" + "p_code":"15", + "code":"17" }, { - "desc":"This API is used to delete a key event notification.DELETE /v3/{project_id}/notificationsNoneStatus code: 400NoneNoneSee Error Codes.", + "desc":"This API is used to delete a key event notification.For details, see Calling APIs.DELETE /v3/{project_id}/notificationsNoneStatus code: 400Status code: 401Status code: 40", "product_code":"cts", "title":"Deleting a Key Event Notification", "uri":"cts_api_0314.html", "doc_type":"api", - "p_code":"14", - "code":"17" + "p_code":"15", + "code":"18" }, { - "desc":"This API is used to query a key event notification.GET /v3/{project_id}/notifications/{notification_type}NoneStatus code: 200Status code: 400NoneStatus code: 200The query", + "desc":"This API is used to query a key event notification.For details, see Calling APIs.GET /v3/{project_id}/notifications/{notification_type}NoneStatus code: 200Status code: 40", "product_code":"cts", "title":"Querying a Key Event Notification", "uri":"cts_api_0315.html", "doc_type":"api", - "p_code":"14", - "code":"18" - }, - { - "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":"cts", - "title":"Public Parameters", - "uri":"en-us_topic_0168602233.html", - "doc_type":"api", - "p_code":"", + "p_code":"15", "code":"19" }, { - "desc":"This section explains the meanings of error codes returned by CTS APIs.{\"error_code\": \"CTS.0003\",\"error_msg\": \"Invalid message body. The message body is empty or invalid.", + "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":"cts", - "title":"Error Codes", - "uri":"en-us_topic_0168602259.html", + "title":"Trace Management", + "uri":"cts_api_0310.html", "doc_type":"api", - "p_code":"19", + "p_code":"14", "code":"20" }, + { + "desc":"This API is used to query records of operations on resources in the last seven days.GET /v3/{project_id}/tracesNoneStatus code: 200Status code: 400Status code: 401Status ", + "product_code":"cts", + "title":"Querying a Trace List", + "uri":"cts_api_0311.html", + "doc_type":"api", + "p_code":"20", + "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":"cts", - "title":"Change History", - "uri":"en-us_topic_0168602228.html", + "title":"Tracker Management", + "uri":"cts_api_0320.html", + "doc_type":"api", + "p_code":"14", + "code":"22" + }, + { + "desc":"When you enable CTS, a tracker is automatically created to associate with the cloud services you are using and record all operations on the services. A management tracker", + "product_code":"cts", + "title":"Creating a Tracker", + "uri":"cts_api_0321.html", + "doc_type":"api", + "p_code":"22", + "code":"23" + }, + { + "desc":"This API is used to modify configurations of a tracker, including trace transfer to OBS buckets, key event notifications, trace file encryption, trace search and analysis", + "product_code":"cts", + "title":"Modifying a Tracker", + "uri":"cts_api_0322.html", + "doc_type":"api", + "p_code":"22", + "code":"24" + }, + { + "desc":"After CTS is enabled, you can view details about the tracker on the Tracker page. The details include the name of the tracker, name of the OBS bucket for storing traces, ", + "product_code":"cts", + "title":"Querying a Tracker", + "uri":"cts_api_0323.html", + "doc_type":"api", + "p_code":"22", + "code":"25" + }, + { + "desc":"This API is used to delete a tracker. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can still view th", + "product_code":"cts", + "title":"Deleting a Tracker", + "uri":"cts_api_0324.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":"cts", + "title":"Other APIs", + "uri":"cts_api_0330.html", + "doc_type":"api", + "p_code":"14", + "code":"27" + }, + { + "desc":"This API is used to querying tenant quota Information.GET /v3/{project_id}/quotasNoneStatus code: 200Status code: 400Status code: 401Status code: 403Status code: 404Statu", + "product_code":"cts", + "title":"Querying Tenant Quota Information", + "uri":"cts_api_0331.html", + "doc_type":"api", + "p_code":"27", + "code":"28" + }, + { + "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":"cts", + "title":"API Version Management", + "uri":"cts_api_0010.html", + "doc_type":"api", + "p_code":"14", + "code":"29" + }, + { + "desc":"This API is used to query all API versions supported by CTS.GET /NoneStatus code: 200NoneStatus code: 200The request is successful.For details, see Error Codes.", + "product_code":"cts", + "title":"Querying All API Versions", + "uri":"cts_api_00325.html", + "doc_type":"api", + "p_code":"29", + "code":"30" + }, + { + "desc":"This API is used to query a specified API version of CTS.GET /{version}NoneStatus code: 200NoneStatus code: 200The request is successful.For details, see Error Codes.", + "product_code":"cts", + "title":"Querying a Specific API Version", + "uri":"cts_api_0012.html", + "doc_type":"api", + "p_code":"29", + "code":"31" + }, + { + "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":"cts", + "title":"Out-of-date APIs", + "uri":"cts_api_0009.html", "doc_type":"api", "p_code":"", - "code":"21" + "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":"cts", + "title":"Trace Management", + "uri":"cts_api_0018.html", + "doc_type":"api", + "p_code":"32", + "code":"33" + }, + { + "desc":"This API is used to query records of operations on resources in the last seven days.GET /v1.0/{project_id}/{tracker_name}/traceNoneStatus code: 200Status code: 200The req", + "product_code":"cts", + "title":"Querying Traces (v1.0)", + "uri":"cts_api_0019.html", + "doc_type":"api", + "p_code":"33", + "code":"34" + }, + { + "desc":"This API is used to query records of operations on resources in the last seven days.GET /v2.0/{project_id}/{tracker_name}/traceNoneStatus code: 200Status code: 200The req", + "product_code":"cts", + "title":"Querying Traces (v2.0)", + "uri":"cts_api_0903.html", + "doc_type":"api", + "p_code":"33", + "code":"35" + }, + { + "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":"cts", + "title":"Tracker Management", + "uri":"cts_api_0013.html", + "doc_type":"api", + "p_code":"32", + "code":"36" + }, + { + "desc":"When you enable CTS, a tracker is automatically created to associate with the cloud services you are using and record all operations on the services. Currently, only one ", + "product_code":"cts", + "title":"Creating a Tracker", + "uri":"cts_api_0125.html", + "doc_type":"api", + "p_code":"36", + "code":"37" + }, + { + "desc":"This API is used to query the details of a tracker. The details include the name of the tracker, name of the OBS bucket for storing traces, and prefix of the trace files ", + "product_code":"cts", + "title":"Querying a Tracker", + "uri":"cts_api_0016.html", + "doc_type":"api", + "p_code":"36", + "code":"38" + }, + { + "desc":"This API is used to delete a tracker from CTS. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can stil", + "product_code":"cts", + "title":"Deleting a Tracker", + "uri":"cts_api_0017.html", + "doc_type":"api", + "p_code":"36", + "code":"39" + }, + { + "desc":"This API is used to modify configurations of a tracker, including trace transfer to OBS buckets, key event notifications, trace file encryption, trace search and analysis", + "product_code":"cts", + "title":"Modifying a Tracker", + "uri":"cts_api_632.html", + "doc_type":"api", + "p_code":"36", + "code":"40" + }, + { + "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":"cts", + "title":"Appendix", + "uri":"cts_api_0020.html", + "doc_type":"api", + "p_code":"", + "code":"41" + }, + { + "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":"cts", + "title":"Error Codes", + "uri":"ErrorCode.html", + "doc_type":"api", + "p_code":"41", + "code":"42" + }, + { + "desc":"Account ID (domain-id) and project ID are required for some URLs when an API is called. You can perform the following operations to obtain these IDs:Log in to the managem", + "product_code":"cts", + "title":"Obtaining an Account ID and Project ID", + "uri":"cts_api_0005.html", + "doc_type":"api", + "p_code":"41", + "code":"43" } ] \ No newline at end of file diff --git a/docs/cts/api-ref/ErrorCode.html b/docs/cts/api-ref/ErrorCode.html new file mode 100644 index 00000000..a4d92afa --- /dev/null +++ b/docs/cts/api-ref/ErrorCode.html @@ -0,0 +1,378 @@ + + +

Error Codes

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Error Code

+

Error Message

+

Description

+

Solution

+

400

+

CTS.0001

+

The IAM or OBS service is abnormal.

+

The IAM or OBS service is abnormal.

+

Contact technical support.

+

400

+

CTS.0003

+

The message body is empty or invalid.

+

The message body is empty or invalid.

+

Verify the body content and format.

+

400

+

CTS.0200

+

The number of trackers has reached the upper limit.

+

The number of trackers has reached the upper limit.

+

Delete or modify unnecessary trackers.

+

400

+

CTS.0201

+

A management tracker has been created.

+

A management tracker has been created.

+

Check whether a management tracker is already available.

+

400

+

CTS.0203

+

The value of tracker_name parameter is in an incorrect format.

+

The value of tracker_name is invalid.

+

Modify its value by referring to the parameter descriptions.

+

400

+

CTS.0204

+

The tracker_name parameter of a management tracker can only be set to system.

+

The tracker_name parameter of a management tracker can only be set to system.

+

Modify its value by referring to the parameter descriptions.

+

400

+

CTS.0205

+

The status parameter can only be set to enabled or disabled.

+

The status parameter can only be set to enabled or disabled.

+

Change its value to enabled or disabled.

+

400

+

CTS.0208

+

The tracker already exists.

+

The tracker already exists.

+

Check whether the tracker already exists.

+

400

+

CTS.0209

+

A type of operations on an OBS bucket can be tracked by only one tracker.

+

A type of operations on an OBS bucket can be tracked by only one tracker.

+

Change the tracker configurations.

+

400

+

CTS.0210

+

The OBS bucket to track cannot be empty.

+

The OBS bucket to be tracked cannot be empty.

+

Select another bucket or ensure that the bucket is not empty.

+

400

+

CTS.0211

+

The tracked OBS bucket does not exist.

+

The OBS bucket to be tracked does not exist.

+

Check whether bucket_name is correctly set.

+

400

+

CTS.0212

+

The tracked OBS bucket cannot be modified.

+

The tracked OBS bucket cannot be modified.

+

Withdraw the changes on the OBS bucket.

+

400

+

CTS.0213

+

The OBS bucket used for trace transfer cannot be a tracked OBS bucket.

+

The OBS bucket used for trace transfer cannot be a tracked OBS bucket.

+

Select another OBS bucket for trace transfer.

+

400

+

CTS.0215

+

The OBS bucket already exists.

+

The OBS bucket already exists.

+

Change the value of bucket_name.

+

400

+

CTS.0216

+

Failed to create a bucket.

+

Failed to create a bucket.

+

Contact technical support.

+

400

+

CTS.0217

+

Failed to set a lifecycle rule for the OBS bucket.

+

Failed to set a lifecycle rule for the OBS bucket.

+

Contact technical support.

+

400

+

CTS.0218

+

The value of file_prefix_name is in an incorrect format.

+

The value of file_prefix_name is invalid.

+

Modify its value by referring to the parameter descriptions.

+

400

+

CTS.0219

+

The operation type cannot be empty.

+

The operation type cannot be empty.

+

Select at least one operation type to track.

+

400

+

CTS.0220

+

KMS is not supported.

+

KMS is not supported.

+

Contact technical support.

+

400

+

CTS.0221

+

The KMS ID is empty.

+

The KMS ID is empty.

+

Check whether the KMS ID is correct.

+

400

+

CTS.0222

+

KMS verification failed.

+

KMS verification failed.

+

Check whether the KMS ID is correct.

+

400

+

CTS.0225

+

Only WRITE and/or READ operations on the OBS bucket can be tracked.

+

The bucket operation must be write, read, or read/write.

+

Check whether the input parameters are correctly set.

+

400

+

CTS.0228

+

The CTS service is not trusted.

+

CTS is not trusted.

+

Enable CTS as a trusted service on the Organizations console.

+

400

+

CTS.0229

+

The organization tracker already exists.

+

The organization tracker already exists.

+

Disable the enabled organization tracker first.

+

400

+

CTS.0231

+

Invalid bucket name. A bucket name must be a string of 3 to 63 characters, including only lowercase letters, digits, hyphens (-), or periods (.). It must start with a digit or a lowercase letter.

+

Invalid bucket name. A bucket name must contain 3 to 63 characters and start with a digit or a lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

+

Check whether the bucket name is correct.

+

400

+

CTS.0300

+

Query failed.

+

Query failed.

+

Try again later or contact technical support.

+

403

+

CTS.0002

+

Authentication failed or you do not have the permissions required.

+

Authentication failed or you do not have the permissions required.

+

Check your permissions.

+

403

+

CTS.0013

+

No permission, Please check roles.

+

You do not have the corresponding operation permission.

+

Configure the permission.

+

404

+

CTS.0100

+

API version query is not supported in CTS.

+

API version query is not supported in CTS.

+

Contact technical support.

+

404

+

CTS.0214

+

The tracker does not exist.

+

The tracker does not exist.

+

Check whether the tracker has been deleted.

+

500

+

CTS.0004

+

Failed to write data.

+

Failed to write data.

+

Contact technical support.

+

500

+

CTS.0005

+

Failed to read data.

+

Failed to read data.

+

Contact technical support.

+
+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0001.html b/docs/cts/api-ref/cts_api_0001.html new file mode 100644 index 00000000..2ee0ec69 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0001.html @@ -0,0 +1,21 @@ + + +

Before You Start

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0002.html b/docs/cts/api-ref/cts_api_0002.html new file mode 100644 index 00000000..8ac712c8 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0002.html @@ -0,0 +1,27 @@ + + +

API Overview

+

With the extension APIs provided by CTS, you can use all CTS functions, such as querying the trace list, or creating a tracker.

+

Table 1 lists CTS APIs.

+ +
+ + + + + + + + + + +
Table 1 CTS APIs

Subtype

+

Description

+

Trackers

+

APIs for creating, modifying, querying, and deleting a tracker

+

Traces

+

API for querying traces recorded in the last seven days

+
+
+
+ diff --git a/docs/cts/api-ref/cts_api_0004.html b/docs/cts/api-ref/cts_api_0004.html new file mode 100644 index 00000000..da4ddc28 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0004.html @@ -0,0 +1,52 @@ + + +

Authentication

+

You can use either of the following authentication methods when calling APIs:

+ +

Token-based Authentication

The validity period of a token is 24 hours. When using a token for authentication, cache it to prevent frequently calling the IAM API used to obtain a user token.

+
+

A token specifies temporary permissions in a computer system. During API authentication using a token, the token is added to requests to get permissions for calling the API.

+

You can obtain a token by calling the API used for obtaining a user token. When you call the API, set auth.scope in the request body to project.

+
{
+    "auth": {
+        "identity": {
+            "methods": [
+                "password"
+            ],
+            "password": {
+                "user": {
+                    "name": "username",
+                    "password": "********",
+                    "domain": {
+                        "name": "domainname"
+                    }
+                }
+            }
+        },
+        "scope": {
+            "project": {
+                "name": "xxxxxxxx"
+            }
+        }
+    }
+}
+

After a token is obtained, the X-Auth-Token header field must be added to requests to specify the token when calling other APIs. For example, if the token is ABCDEFJ...., X-Auth-Token: ABCDEFJ.... can be added to a request as follows:

+
+Content-Type: application/json
+X-Auth-Token: ABCDEFJ....
+
+

AK/SK-based Authentication

AK/SK-based authentication supports API requests with a body not larger than 12 MB. For API requests with a larger body, token-based authentication is recommended.

+
+

In AK/SK-based authentication, AK/SK is used to sign requests and the signature is then added to the requests for authentication.

+ +
In AK/SK-based authentication, you can use an AK/SK pair to sign requests based on the signature algorithm or use the signing SDK to sign requests.

The signing SDK is only used for signing requests and is different from the SDKs provided by services.

+
+
+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0005.html b/docs/cts/api-ref/cts_api_0005.html new file mode 100644 index 00000000..476b3abf --- /dev/null +++ b/docs/cts/api-ref/cts_api_0005.html @@ -0,0 +1,40 @@ + + +

Obtaining an Account ID and Project ID

+

Obtaining Account and Project IDs from the Console

Account ID (domain-id) and project ID are required for some URLs when an API is called. You can perform the following operations to obtain these IDs:

+
+
  1. Log in to the management console. Hover the mouse pointer over the username and choose My Credentials from the drop-down list.
  2. On the My Credentials page, view the account and project IDs.
+

If there are multiple projects in one region, expand Region and view sub-project IDs from the Project ID column.

+

Obtaining Project IDs by Calling an API

The API for obtaining a project ID is GET https://{Endpoint}/v3/projects. {Endpoint} indicates the endpoint of IAM.

+

In the following example, id indicates a project ID.

+
{
+    "projects": [
+        {
+            "domain_id": "65382450e8f64ac0870cd180xxxx",
+            "is_domain": false,
+            "parent_id": "65382450e8f64ac0870cd180d1xxxx",
+            "name": "xx-region-1",
+            "description": "",
+            "links": {
+                "next": null,
+                "previous": null,
+                "self": "https://www.example.com/v3/projects/a4a5d4098fb4474fa22cd05f89xxxx"
+            },
+            "id": "a4a5d4098fb4474fa22cd0xxxx",
+            "enabled": true
+        }
+    ],
+    "links": {
+        "next": null,
+        "previous": null,
+        "self": "https://www.example.com/v3/projects"
+    }
+}
+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0006.html b/docs/cts/api-ref/cts_api_0006.html new file mode 100644 index 00000000..22460fbf --- /dev/null +++ b/docs/cts/api-ref/cts_api_0006.html @@ -0,0 +1,15 @@ + + +

Calling APIs

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0007.html b/docs/cts/api-ref/cts_api_0007.html new file mode 100644 index 00000000..273889cc --- /dev/null +++ b/docs/cts/api-ref/cts_api_0007.html @@ -0,0 +1,145 @@ + + +

Making an API Request

+

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 token can then be used to authenticate the calling of other APIs.

+

Request URI

A request URI is in the following format:

+

{URI-scheme} :// {Endpoint} / {resource-path} ? {query-string}

+

Although a request URI is included in the request header, most programming languages or frameworks require the request URI to be transmitted separately.

+ +

To simplify the URI display, each API is provided only with a resource-path and a request method. The URI-scheme of all APIs is HTTPS, and the endpoints of all APIs in the same region are identical.

+
+
+

Request Methods

The HTTP protocol defines the following request methods that can be used to send a request to the server:

+ +

For example, in the case of the API used to obtain a user token, the request method is POST. The request is as follows:

+
+

Request Header

You can also add additional header fields to a request, such as the fields required by a specified URI or HTTP method. For example, to request for the authentication information, add Content-Type, which specifies the request body type.

+
Table 1 lists the common request header fields. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Common request header fields

Parameter

+

Description

+

Mandatory

+

Example Value

+

Host

+

Specifies the server domain name and port number of the resources being requested. The value can be obtained from the URL of the service API. The value is in the format of Hostname:Port number. If the port number is not specified, the default port is used. The default port number for https is 443.

+

No

+

This field is mandatory for AK/SK authentication.

+

code.test.com

+

or

+

code.test.com:443

+

Content-Type

+

Specifies the type (or format) of the message body. The default value application/json is recommended. Other values of this field will be provided for specific APIs if any.

+

Yes

+

application/json

+

Content-Length

+

Specifies the length of the request body. The unit is byte.

+

No

+

3495

+

X-Project-Id

+

Specifies the project ID. Obtain it by referring to Obtaining an Account ID and Project ID.

+

No

+

e9993fc787d94b6c886cbaa340f9c0f4

+
+
+
+

In addition to supporting token-based authentication, APIs also support authentication using access key ID/secret access key (AK/SK). During AK/SK-based authentication, an SDK is used to sign a request, and the Authorization (signature information) and X-Sdk-Date (time when the request is sent) header fields are automatically added to the request.

+

For details, see "AK/SK-based Authentication" in Authentication.

+
+

The API used to obtain a user token does not require authentication. Therefore, only the Content-Type field needs to be added to requests for calling the API. An example of such requests is as follows:

+
+

Request Body (Optional)

This part is optional. A request body transfer information other than the request header and is often sent in a structured format (for example, JSON or XML) defined by the Content-Type header field.

+

A request body varies between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.

+

In the case of the API used to obtain a user token, the request parameters and parameter description can be obtained from the API request. The following provides an example request with a body included. Replace username, domainname, ******** (login password), and xxxxxxxxxxxxxxxxx (project name) with the actual values. Obtain a project name from Regions and Endpoints.

+

The scope parameter specifies where a token takes effect. In the following example, the token takes effect only for the resources in a specified project. For more information about this API, see Obtaining a User Token.

+
+
 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
Content-Type: application/json
+
+{
+    "auth": {
+        "identity": {
+            "methods": [
+                "password"
+            ],
+            "password": {
+                "user": {
+                    "name": "username",
+                    "password": "********",
+                    "domain": {
+                        "name": "domainname"
+                    }
+                }
+            }
+        },
+        "scope": {
+            "project": {
+                "name": "xxxxxxxxxxxxxxxxxx"
+            }
+        }
+    }
+}
+
+ +
+

If all data required for the API request is available, you can send the request to call an API through curl, Postman, or coding. In the response to the API used to obtain a user token, x-subject-token is the desired user token. This token can then be used to authenticate the calling of other APIs.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0008.html b/docs/cts/api-ref/cts_api_0008.html new file mode 100644 index 00000000..25053b7a --- /dev/null +++ b/docs/cts/api-ref/cts_api_0008.html @@ -0,0 +1,38 @@ + + +

Getting Started

+

This section describes how to create a tracker by calling APIs.

+

The token obtained from IAM is valid for only 24 hours. If you want to use the same token for authentication, you can cache it to avoid frequent calling of the IAM API.

+
+

Involved APIs

For token-based authentication, you must obtain a token and add X-Auth-Token to the request header when calling an API.

+ +
+

Procedure

  1. Obtain a token by referring to Authentication.
  2. Send POST /v1.0/ {project_id} /tracker.
  3. Add Content-Type and X-Auth-Token to the request header.
  4. Set parameters in the request body as follows:
    POST /v1.0/{project_id}/tracker
    +{
    + "bucket_name": "obs-f1da",  //Name of an Object Storage Service (OBS) bucket to which traces will be transferred. This parameter is mandatory and its value is a string.
    +  "is_support_trace_files_encryption": true,  //Whether trace files will be encrypted during transfer. This parameter is optional and its value is of boolean type.
    + "kms_id": "13a4207c-7abe-4b68-8510-16b84c3b5504",  //ID of the key for trace file encryption. When is_support_trace_files_encryption is set to true, this parameter is mandatory.
    + "is_obs_created": true,  //Whether a new OBS bucket will be created. This parameter is optional and its value is of boolean type.
    + "file_prefix_name": "yO8Q",   //File name prefix to mark trace files that need to be stored in OBS. This parameter is optional and its value is a string.
    +  "log_file_validate": {
    + "is_support_validate": true  //Whether trace files will be verified. This parameter is optional and its value is of boolean type.
    + }
    +}
    +

    If the request is successful, information about the created tracker is returned.

    +
    {
    + "bucket_name": "obs-f1da",
    + "file_prefix_name": "yO8Q",
    + "is_obs_created": true, 
    + "is_support_trace_files_encryption": true, 
    + "kms_id": "13a4207c-7abe-4b68-8510-16b84c3b5504",   
    +  "log_file_validate": {
    + "is_support_validate": true
    + },
    +"tracker_name": "system",  //Tracker name
    +"status": "enabled"  //Tracker status
    +} 
    +

    If the request fails, an error code and error message are returned. For details, see Error Codes.

    +
+
+
+ diff --git a/docs/cts/api-ref/cts_api_0009.html b/docs/cts/api-ref/cts_api_0009.html new file mode 100644 index 00000000..b9950a46 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0009.html @@ -0,0 +1,13 @@ + + +

Out-of-date APIs

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0010.html b/docs/cts/api-ref/cts_api_0010.html new file mode 100644 index 00000000..34177467 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0010.html @@ -0,0 +1,17 @@ + + +

API Version Management

+
+
+ + + +
+ diff --git a/docs/cts/api-ref/cts_api_0012.html b/docs/cts/api-ref/cts_api_0012.html new file mode 100644 index 00000000..b38f4e42 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0012.html @@ -0,0 +1,188 @@ + + +

Querying a Specific API Version

+

Function

This API is used to query a specified API version of CTS.

+
+

URI

GET /{version}

+ +
+ + + + + + + + + + + +
Table 1 Path parameter

Parameter

+

Mandatory

+

Type

+

Description

+

version

+

Yes

+

String

+

Version number.

+
+
+
+

Request Parameters

None

+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 2 Response body parameters

Parameter

+

Type

+

Description

+

version

+

Object

+

Information of the version.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Version

Parameter

+

Type

+

Description

+

id

+

String

+

Specifies the version ID, for example, v1.

+

links

+

Array of LinksBody objects

+

Specifies the API URL.

+

version

+

String

+

If microversions are supported, set this parameter to the maximum microversion supported. Otherwise, leave this parameter empty.

+

status

+

String

+

Specifies the version status. CURRENT: widely used version. SUPPORTED: earlier version that is still supported. DEPRECATED: deprecated version which may be deleted later.

+

Value:

+
  • CURRENT
  • SUPPORTED
  • DEPRECATED
+

updated

+

String

+

The version release time in UTC. For example, the release time of v1 is 2014-06-28T12:20:21Z.

+

min_version

+

String

+

If microversions are supported, set this parameter to the minimum microversion supported. Otherwise, leave this parameter empty.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 LinksBody

Parameter

+

Type

+

Description

+

href

+

String

+

Specifies the reference address of the current API version.

+

rel

+

String

+

Specifies the relationship between the current API version and the referenced address.

+
+
+
+

Example Request

None

+
+

Example Response

Status code: 200

+

The request is successful.

+
{
+  "version" : {
+    "id" : "v1.0",
+    "links" : {
+      "href" : "https://x.x.x.x/v1.0/",
+      "rel" : "self"
+    },
+    "min_version" : "",
+    "status" : "CURRENT",
+    "updated" : "2018-09-30T00:00:00Z",
+    "version" : ""
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

404

+

The server failed to find the requested resource.

+

500

+

The server encountered an unexpected condition which prevented it from fulfilling the request.

+
+
+
+

Error Codes

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0013.html b/docs/cts/api-ref/cts_api_0013.html new file mode 100644 index 00000000..bceb5c3d --- /dev/null +++ b/docs/cts/api-ref/cts_api_0013.html @@ -0,0 +1,22 @@ + + +

Tracker Management

+

+
+
+ + + +
+ diff --git a/docs/cts/api-ref/cts_api_0016.html b/docs/cts/api-ref/cts_api_0016.html new file mode 100644 index 00000000..4e912456 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0016.html @@ -0,0 +1,294 @@ + + +

Querying a Tracker

+

Function

This API is used to query the details of a tracker. The details include the name of the tracker, name of the OBS bucket for storing traces, and prefix of the trace files stored in the OBS bucket.

+
+

URI

GET /v1.0/{project_id}/tracker

+ +
+ + + + + + + + + + + +
Table 1 Path parameter

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query parameter

Parameter

+

Mandatory

+

Type

+

Description

+

tracker_name

+

Yes

+

String

+

Tracker name. If this parameter is not specified, all trackers of a tenant will be queried. Currently, only one tracker is allowed for each tenant. The tracker name is system.

+
+
+
+

Request Parameters

None

+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Unique tracker ID.

+

create_time

+

Long

+

Timestamp when the tracker was created.

+

domain_id

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining an Account ID.

+

project_id

+

String

+

Project ID.

+

tracker_name

+

String

+

Tracker name. The default value is system.

+

tracker_type

+

String

+

Tracker type.

+

bucket_name

+

String

+

OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

+

file_prefix_name

+

String

+

Prefix of trace files that need to be stored in OBS buckets.

+

status

+

String

+

Tracker status. The value can be enabled, disabled, or error. If the value is set to error, the detail field is required for specifying the source of the error.

+

Value:

+
  • enabled
  • disabled
+

detail

+

String

+

This parameter is returned only when the tracker status is error. It indicates the cause of the abnormal status, and its value can be bucketPolicyError, noBucket, or arrears.

+

is_obs_created

+

Boolean

+

Whether an OBS bucket is created. If the value is true, an OBS bucket will be created to store trace files. If the value is false, trace files will be stored in an existing OBS bucket. A bucket name contains 3 to 64 characters, including digits, letters, and a hyphen (-) or a period (.).

+

is_support_trace_files_encryption

+

Boolean

+

Whether trace files are encrypted during transfer to an OBS bucket. This parameter must be used with kms_id.

+

kms_id

+

String

+

Key ID used for transferring and encrypting trace files. This key ID is obtained from Key Management Service (KMS). This parameter is mandatory when is_support_trace_files_encryption is set to true.

+

group_id

+

String

+

Unique ID of a log group.

+

stream_id

+

String

+

Unique ID of a log stream.

+

lts

+

Lts object

+

Trace analysis.

+

is_support_validate

+

Boolean

+

Whether to enable trace file verification.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Lts

Parameter

+

Type

+

Description

+

is_lts_enabled

+

Boolean

+

Whether the LTS search function is enabled.

+

log_group_name

+

String

+

Name of the log group that CTS creates in LTS.

+

log_topic_name

+

String

+

Name of the log topic that CTS creates in LTS.

+
+
+
+

Example Request

GET https://{endpoint}/v1.0/{project_id}/tracker?tracker_name=system
+
+

Example Response

Status code: 200

+

The request is successfully sent.

+
{
+  "id" : "2e6fa9b8-8c6e-456d-b5d3-77be972d220b",
+  "create_time" : 1587958482923,
+  "domain_id" : "aexxxxxxxx4d4fb4bexxxxxxx791fbf",
+  "is_support_trace_files_encryption" : true,
+  "kms_id" : "13a4207c-7abe-4b68-8510-16b84c3b5504",
+  "bucket_name" : "obs-f1da",
+  "file_prefix_name" : "yO8Q",
+  "project_id" : "bb1xxxxxxxxe4f498cbxxxxxxxx35634",
+  "lts" : {
+    "is_lts_enabled" : true,
+    "log_group_name" : "CTS",
+    "log_topic_name" : "system-trace"
+  },
+  "log_file_validate" : {
+    "is_support_validate" : true
+  },
+  "tracker_name" : "system",
+  "tracker_type" : "system",
+  "status" : "enabled"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successfully sent.

+

400

+

The server failed to process the request.

+

401

+

The request is rejected due to authentication failure.

+

403

+

The server understood the request but refused to authorize it.

+

500

+

Failed to complete the request because of an internal service error.

+
+
+
+

Error Codes

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0017.html b/docs/cts/api-ref/cts_api_0017.html new file mode 100644 index 00000000..b952892a --- /dev/null +++ b/docs/cts/api-ref/cts_api_0017.html @@ -0,0 +1,111 @@ + + +

Deleting a Tracker

+

Function

This API is used to delete a tracker from CTS. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can still view those traces.

+
+

URI

DELETE /v1.0/{project_id}/tracker

+ +
+ + + + + + + + + + + +
Table 1 Path parameter

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query parameter

Parameter

+

Mandatory

+

Type

+

Description

+

tracker_name

+

Yes

+

String

+

Tracker name. If this parameter is not specified, all trackers of a tenant will be deleted. Currently, only one tracker is allowed for each tenant. The tracker name is system.

+
+
+
+

Request Parameters

None

+
+

Response Parameters

None

+
+

Example Request

DELETE https://{endpoint}/v1.0/{project_id}/tracker?tracker_name=system
+
+

Example Response

None

+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

The deletion is successful.

+

400

+

The server failed to process the request.

+

401

+

The request is rejected due to authentication failure.

+

403

+

The server understood the request but refused to authorize it.

+

404

+

The server failed to find the requested resource or some trackers failed to be deleted.

+

500

+

The request failed to be executed or some trackers failed to be deleted.

+
+
+
+

Error Codes

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0018.html b/docs/cts/api-ref/cts_api_0018.html new file mode 100644 index 00000000..1d1ee09a --- /dev/null +++ b/docs/cts/api-ref/cts_api_0018.html @@ -0,0 +1,18 @@ + + +

Trace Management

+

+
+
+ + + +
+ diff --git a/docs/cts/api-ref/cts_api_0019.html b/docs/cts/api-ref/cts_api_0019.html new file mode 100644 index 00000000..9308df1e --- /dev/null +++ b/docs/cts/api-ref/cts_api_0019.html @@ -0,0 +1,552 @@ + + +

Querying Traces (v1.0)

+

Function

This API is used to query records of operations on resources in the last seven days.

+
+

URI

GET /v1.0/{project_id}/{tracker_name}/trace

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

+

tracker_name

+

Yes

+

String

+

Tracker name. Currently, only one tracker is allowed for each tenant. The tracker name is system.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

service_type

+

No

+

String

+

Type of a cloud service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its name abbreviation.

+

user

+

No

+

String

+

Name of the user whose traces are to be queried.

+

from

+

No

+

Long

+

UTC millisecond timestamp of the query start time. The value contains 13 digits and the default value is the timestamp of the last hour. Traces generated after the specified timestamp will be queried. The parameters from and to should be used together.

+

limit

+

No

+

Integer

+

Number of traces to query. The default value is 10 and the maximum value is 200.

+

next

+

No

+

String

+

This parameter is used to query traces generated earlier than its specified value. The value can be that of marker in the response. next can be used with from and to. Traces generated in the overlap of the two time ranges specified respectively by next and by from and to will be returned.

+

resource_id

+

No

+

String

+

ID of a cloud resource whose traces are to be queried.

+

resource_name

+

No

+

String

+

Name of a resource whose traces are to be queried. The value can contain uppercase letters.

+

resource_type

+

No

+

String

+

Type of a resource whose traces are to be queried.

+

to

+

No

+

Long

+

UTC millisecond timestamp of the query end time. The value contains 13 digits and the default value is the timestamp of the current time. Traces generated before the specified timestamp will be queried. The parameters to and from should be used together.

+

trace_id

+

No

+

String

+

Trace ID. If this parameter is specified, other query criteria will not take effect.

+

trace_name

+

No

+

String

+

Trace name. The value can contain uppercase letters.

+

trace_rating

+

No

+

String

+

Trace status. The value can be normal, warning, or incident.

+
+
+
+

Request Parameters

None

+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

traces

+

Array of Traces objects

+

List of returned traces.

+

meta_data

+

MetaData object

+

Number of returned traces and the marker.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Traces

Parameter

+

Type

+

Description

+

resource_id

+

String

+

ID of a cloud resource on which the recorded operation was performed.

+

trace_name

+

String

+

Trace name. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.). It must start with a letter.

+

trace_rating

+

String

+

Trace status. The value can be normal, warning, or incident.

+

Value:

+
  • normal
  • warning
  • incident
+

trace_type

+

String

+

Trace source. The value can be ApiCall, ConsoleAction, or SystemAction.

+

request

+

String

+

Request of an operation on resources.

+

response

+

String

+

Response to a user request, that is, the returned information for an operation on resources.

+

code

+

String

+

HTTP status code returned by the associated API.

+

api_version

+

String

+

Version of the API called in a trace.

+

message

+

String

+

Remarks added by other cloud services to a trace.

+

record_time

+

Long

+

Timestamp when a trace was recorded by CTS.

+

trace_id

+

String

+

Trace ID. The value is the UUID generated by the system.

+

time

+

Long

+

Timestamp when a trace was generated.

+

user

+

UserInfo object

+

Information of the user who performed the operation that triggered the trace.

+

service_type

+

String

+

Type of a cloud service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its name abbreviation.

+

resource_type

+

String

+

Type of the resource on which the operation was performed.

+

source_ip

+

String

+

IP address of the tenant who performed the operation that triggered the trace.

+

resource_name

+

String

+

Name of a resource on which the recorded operation was performed.

+

request_id

+

String

+

Request ID.

+

location_info

+

String

+

Additional information required for fault locating after a request error.

+

endpoint

+

String

+

Endpoint in the details page URL of the cloud resource on which the recorded operation was performed.

+

resource_url

+

String

+

Details page URL (excluding the endpoint) of the cloud resource on which the recorded operation was performed.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 UserInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining an Account ID.

+

name

+

String

+

Account name.

+

domain

+

BaseUser object

+

Domain information of the user who performed the operation generating the trace.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 BaseUser

Parameter

+

Type

+

Description

+

id

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining an Account ID.

+

name

+

String

+

Account name.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 MetaData

Parameter

+

Type

+

Description

+

count

+

Integer

+

Number of returned traces.

+

marker

+

String

+

ID of the last trace in the returned trace list. The value of this parameter can be used as the value of next. If the value of marker is null, all traces have been returned under the specified query criteria.

+
+
+
+

Example Request

GET https://{endpoint}/v1.0/{project_id}/{tracker_name}/trace?limit=11&to=1479095278000&from=1478490478000&trace_name=createTracker&resource_type=tracker&service_type=CTS
+
+

Example Response

Status code: 200

+

The request is successful.

+
{
+  "meta_data" : {
+    "count" : 2,
+    "marker" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
+  },
+  "traces" : [ {
+    "time" : 1472148708232,
+    "user" : {
+      "name" : "xxx",
+      "domain" : {
+        "name" : "xxx",
+        "id" : "ded649d814464428ba89d04d7955c93e"
+      }
+    },
+    "response" : {
+      "code" : "VPC.0514",
+      "message" : "Update port fail."
+    },
+    "code" : 200,
+    "service_type" : "VPC",
+    "resource_type" : "eip",
+    "resource_name" : "192.144.163.1",
+    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
+    "trace_name" : "deleteEip",
+    "trace_rating" : "warning",
+    "trace_type" : "ConsoleAction",
+    "api_version" : "2.0",
+    "record_time" : 1481066128032,
+    "trace_id" : "e001ccb9-bc09-11e6-b00b-4b2a61338db6"
+  }, {
+    "time" : 1472148708232,
+    "user" : {
+      "name" : "xxx",
+      "domain" : {
+        "name" : "xxx",
+        "id" : "ded649d814464428ba89d04d7955c93e"
+      }
+    },
+    "response" : {
+      "code" : "VPC.0514",
+      "message" : "Update port fail."
+    },
+    "code" : 200,
+    "service_type" : "VPC",
+    "resource_type" : "eip",
+    "resource_name" : "192.144.163.1",
+    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
+    "trace_name" : "deleteEip",
+    "trace_rating" : "warning",
+    "trace_type" : "ConsoleAction",
+    "api_version" : "2.0",
+    "record_time" : 1481066128032,
+    "trace_id" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
+  } ]
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

400

+

The request is not completed due to abnormal query parameters.

+

401

+

The request is rejected due to authentication failure.

+

403

+

The server understood the request but refused to authorize it.

+

404

+

The requested traces do not exist.

+

500

+

Failed to complete the request because of an internal service error.

+

503

+

The requested service is invalid. The client should not repeat the request without modifications.

+
+
+
+

Error Codes

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0020.html b/docs/cts/api-ref/cts_api_0020.html new file mode 100644 index 00000000..69027394 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0020.html @@ -0,0 +1,13 @@ + + +

Appendix

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0024.html b/docs/cts/api-ref/cts_api_0024.html new file mode 100644 index 00000000..49e9de01 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0024.html @@ -0,0 +1,46 @@ + + +

Response

+

Status Code

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 5xx. It indicates the status of a request.

+

For example, if status code 201 is returned for calling the API used to obtain a user token, the request is successful.

+
+

Response Header

Similar to a request, a response also has a header, for example, Content-type.

+

Figure 1 shows the response header fields for the API used to obtain a user token. The x-subject-token header field is the desired user token. This token can then be used to authenticate the calling of other APIs.

+
Figure 1 Header fields of the response to the request for obtaining a user token
+
+

Response Body (Optional)

The body of a response is often returned in structured format as specified in the Content-type header field. The response body transfers content except the response header.

+

The following is part of the response body for the API used to obtain a user token.

+
{
+    "token": {
+        "expires_at": "2019-02-13T06:52:13.855000Z",
+        "methods": [
+            "password"
+        ],
+        "catalog": [
+            {
+                "endpoints": [
+                    {
+                        "region_id": "az-01",
+......
+

If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.

+
{
+    "error_msg": "The format of message is error",
+    "error_code": "AS.0001"
+}
+

In the response body, error_code is an error code, and error_msg provides information about the error.

+
+
+
+ +
+ + + \ No newline at end of file diff --git a/docs/cts/api-ref/cts_api_0025.html b/docs/cts/api-ref/cts_api_0025.html new file mode 100644 index 00000000..50454f79 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0025.html @@ -0,0 +1,11 @@ + + +

API Calling

+

CTS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see Calling APIs.

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0026.html b/docs/cts/api-ref/cts_api_0026.html new file mode 100644 index 00000000..4afd3f1a --- /dev/null +++ b/docs/cts/api-ref/cts_api_0026.html @@ -0,0 +1,11 @@ + + +

Endpoints

+

An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. For the endpoints of CTS, see Regions and Endpoints.

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0027.html b/docs/cts/api-ref/cts_api_0027.html new file mode 100644 index 00000000..fbff26c5 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0027.html @@ -0,0 +1,11 @@ + + +

Constraints

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0028.html b/docs/cts/api-ref/cts_api_0028.html new file mode 100644 index 00000000..904382ae --- /dev/null +++ b/docs/cts/api-ref/cts_api_0028.html @@ -0,0 +1,24 @@ + + +

Concepts

+
+
+
+ +
+ + + \ No newline at end of file diff --git a/docs/cts/api-ref/cts_api_0029.html b/docs/cts/api-ref/cts_api_0029.html new file mode 100644 index 00000000..8056f268 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0029.html @@ -0,0 +1,11 @@ + + +

API Versions

+

It is recommended that you use the V3 APIs, which are more powerful and easy to use. The V1 APIs will be brought offline soon.

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0030.html b/docs/cts/api-ref/cts_api_0030.html new file mode 100644 index 00000000..a99054c1 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0030.html @@ -0,0 +1,12 @@ + + +

Overview

+

Cloud Trace Service (CTS) is a log audit service designed to strengthen cloud security. It allows you to collect, store, and query resource operation records. You can use these records to perform security analysis, track resource changes, audit compliance, and locate faults.

+

You can use APIs introduced in this document to perform operations on CTS, such as creating and deleting a tracker. Before calling an API, ensure that you are familiar with related concepts and functions of CTS.

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_00325.html b/docs/cts/api-ref/cts_api_00325.html new file mode 100644 index 00000000..0d9e8bf6 --- /dev/null +++ b/docs/cts/api-ref/cts_api_00325.html @@ -0,0 +1,175 @@ + + +

Querying All API Versions

+

Function

This API is used to query all API versions supported by CTS.

+
+

URI

GET /

+
+

Request Parameters

None

+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 1 Response body parameters

Parameter

+

Type

+

Description

+

versions

+

Array of Versions objects

+

List of all versions.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Versions

Parameter

+

Type

+

Description

+

id

+

String

+

Specifies the version ID, for example, v1.

+

links

+

Array of LinksBody objects

+

Specifies the API URL.

+

version

+

String

+

If microversions are supported, set this parameter to the maximum microversion supported. Otherwise, leave this parameter empty.

+

status

+

String

+

Specifies the version status. CURRENT: widely used version. SUPPORTED: earlier version that is still supported. DEPRECATED: deprecated version which may be deleted later.

+

Value:

+
  • CURRENT
  • SUPPORTED
  • DEPRECATED
+

updated

+

String

+

The version release time in UTC. For example, the release time of v1 is 2014-06-28T12:20:21Z.

+

min_version

+

String

+

If microversions are supported, set this parameter to the minimum microversion supported. Otherwise, leave this parameter empty.

+
+
+ +
+ + + + + + + + + + + + + +
Table 3 LinksBody

Parameter

+

Type

+

Description

+

href

+

String

+

Specifies the reference address of the current API version.

+

rel

+

String

+

Specifies the relationship between the current API version and the referenced address.

+
+
+
+

Example Request

None

+
+

Example Response

Status code: 200

+

The request is successful.

+
{
+  "versions" : [ {
+    "id" : "v1.0",
+    "links" : {
+      "href" : "https://x.x.x.x/v1.0/",
+      "rel" : "self"
+    },
+    "min_version" : "",
+    "status" : "CURRENT",
+    "updated" : "2018-09-30T00:00:00Z",
+    "version" : ""
+  }, {
+    "id" : "v2.0",
+    "links" : {
+      "href" : "https://x.x.x.x/v2.0/",
+      "rel" : "self"
+    },
+    "min_version" : "",
+    "status" : "SUPPORTED",
+    "updated" : "2018-09-30T00:00:00Z",
+    "version" : ""
+  } ]
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

404

+

The server failed to find the requested resource.

+

500

+

The server encountered an unexpected condition which prevented it from fulfilling the request.

+
+
+
+

Error Codes

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0101.html b/docs/cts/api-ref/cts_api_0101.html new file mode 100644 index 00000000..43da358d --- /dev/null +++ b/docs/cts/api-ref/cts_api_0101.html @@ -0,0 +1,20 @@ + + +

V3 APIs (Recommended)

+

+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0125.html b/docs/cts/api-ref/cts_api_0125.html new file mode 100644 index 00000000..61bc7b4b --- /dev/null +++ b/docs/cts/api-ref/cts_api_0125.html @@ -0,0 +1,458 @@ + + +

Creating a Tracker

+

Function

When you enable CTS, a tracker is automatically created to associate with the cloud services you are using and record all operations on the services. Currently, only one management tracker can be created for a cloud account in a region. Traces are retained in the CTS console for seven days. For long-term storage, you can enable Object Storage Service (OBS) and deliver real-time operation records to OBS buckets.

+
+

URI

POST /v1.0/{project_id}/tracker

+ +
+ + + + + + + + + + + +
Table 1 Path parameter

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

bucket_name

+

Yes

+

String

+

OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

+

file_prefix_name

+

No

+

String

+

Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

is_obs_created

+

No

+

Boolean

+

Whether an OBS bucket is created. The default value is false. If the value is true, an OBS bucket will be created to store trace files. If the value is false, trace files will be stored in an existing OBS bucket. A bucket name contains 3 to 64 characters, including digits, letters, and a hyphen (-) or a period (.).

+

is_support_trace_files_encryption

+

No

+

Boolean

+

Whether trace files are encrypted during transfer to an OBS bucket. This parameter must be used with kms_id.

+

kms_id

+

No

+

String

+

Key ID used for transferring and encrypting trace files. This key ID is obtained from Key Management Service (KMS). This parameter is mandatory when is_support_trace_files_encryption is set to true.

+

lts

+

No

+

Lts object

+

Trace analysis.

+

log_file_validate

+

No

+

LogFileValidate object

+

File verification.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Lts

Parameter

+

Mandatory

+

Type

+

Description

+

is_lts_enabled

+

Yes

+

Boolean

+

Whether the LTS search function is enabled.

+

log_group_name

+

Yes

+

String

+

Name of the log group that CTS creates in LTS.

+

log_topic_name

+

Yes

+

String

+

Name of the log topic that CTS creates in LTS.

+
+
+ +
+ + + + + + + + + + + +
Table 4 LogFileValidate

Parameter

+

Mandatory

+

Type

+

Description

+

is_support_validate

+

Yes

+

Boolean

+

Whether to enable trace file verification.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Unique tracker ID.

+

create_time

+

Long

+

Timestamp when the tracker was created.

+

domain_id

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining an Account ID.

+

project_id

+

String

+

Project ID.

+

is_support_trace_files_encryption

+

Boolean

+

Whether trace files are encrypted during transfer to an OBS bucket. This parameter must be used with kms_id.

+

kms_id

+

String

+

Key ID used for transferring and encrypting trace files. This key ID is obtained from Key Management Service (KMS). This parameter is mandatory when is_support_trace_files_encryption is set to true.

+

obs_info

+

ObsInfo object

+

Information about the bucket to which traces are transferred.

+

status

+

String

+

Status of a tracker. The value enabled indicates normal status.

+

tracker_name

+

String

+

Tracker name.

+

tracker_type

+

String

+

Tracker type.

+

group_id

+

String

+

Unique ID of a log group.

+

stream_id

+

String

+

Unique ID of a log stream.

+

lts

+

Lts object

+

Trace analysis.

+

is_support_validate

+

Boolean

+

Whether to enable trace file verification. This function is supported only when the value of tracker_type is system.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ObsInfo

Parameter

+

Type

+

Description

+

bucket_name

+

String

+

OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

+

file_prefix_name

+

String

+

Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

is_obs_created

+

Boolean

+

Whether the OBS bucket is automatically created by the tracker.

+

is_authorized_bucket

+

Boolean

+

Whether CTS has been granted permissions to perform operations on the OBS bucket.

+

bucket_lifecycle

+

String

+

Duration that traces are stored in the OBS bucket. This parameter is valid when tracker_type is set to data.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 7 Lts

Parameter

+

Type

+

Description

+

is_lts_enabled

+

Boolean

+

Whether the LTS search function is enabled.

+

log_group_name

+

String

+

Name of the log group that CTS creates in LTS.

+

log_topic_name

+

String

+

Name of the log topic that CTS creates in LTS.

+
+
+
+

Example Request

POST https://{endpoint}/v1.0/{project_id}/tracker
+
+{
+ "bucket_name": "obs-f1da", 
+ "is_support_trace_files_encryption": true, 
+ "kms_id": "13a4207c-7abe-4b68-8510-16b84c3b5504",
+ "is_obs_created": true,
+ "file_prefix_name": "yO8Q",  
+ "lts": {
+  "is_lts_enabled": true,
+  "log_group_name": "CTS",
+  "log_topic_name": 'system-trace'
+ }, 
+  "log_file_validate": {
+ "is_support_validate": true
+ }
+}
+
+

Example Response

Status code: 201

+

The request is successfully sent.

+
{
+  "id" : "2e6fa9b8-8c6e-456d-b5d3-77be972d220b",
+  "create_time" : 1587958482923,
+  "domain_id" : "aexxxxxxxx4d4fb4bexxxxxxx791fbf",
+  "is_support_trace_files_encryption" : true,
+  "kms_id" : "13a4207c-7abe-4b68-8510-16b84c3b5504",
+  "obs_info" : {
+    "bucket_name" : "obs-f1da",
+    "file_prefix_name" : "yO8Q"
+  },
+  "project_id" : "bb1xxxxxxxxe4f498cbxxxxxxxx35634",
+  "lts" : {
+    "is_lts_enabled" : true,
+    "log_group_name" : "CTS",
+    "log_topic_name" : "system-trace"
+  },
+  "log_file_validate" : {
+    "is_support_validate" : true
+  },
+  "tracker_name" : "system",
+  "tracker_type" : "system",
+  "status" : "enabled"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

The request is successfully sent.

+

400

+

The server failed to process the request.

+

401

+

The request is rejected due to authentication failure.

+

403

+

The server understood the request but refused to authorize it.

+

404

+

The requested OBS bucket does not exist.

+

500

+

Failed to complete the request because of an internal service error.

+
+
+
+

Error Codes

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0310.html b/docs/cts/api-ref/cts_api_0310.html new file mode 100644 index 00000000..4fd600a6 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0310.html @@ -0,0 +1,16 @@ + + +

Trace Management

+

+
+
+ + + +
+ diff --git a/docs/cts/api-ref/cts_api_0311.html b/docs/cts/api-ref/cts_api_0311.html new file mode 100644 index 00000000..0d8a21b0 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0311.html @@ -0,0 +1,726 @@ + + +

Querying a Trace List

+

Function

This API is used to query records of operations on resources in the last seven days.

+
+

URI

GET /v3/{project_id}/traces

+ +
+ + + + + + + + + + + +
Table 1 Path parameter

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details, see Obtaining an Account ID and Project ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query parameters

Parameter

+

Mandatory

+

Type

+

Description

+

trace_type

+

Yes

+

String

+

Trace type. The value can be system (management trace).

+

limit

+

No

+

Integer

+

Number of traces to query. The default value is 10 and the maximum value is 200.

+

from

+

No

+

Long

+

UTC millisecond timestamp of the query start time. The value contains 13 digits and the default value is the timestamp of the last hour. Traces generated after the specified timestamp will be queried. The parameters from and to should be used together.

+

next

+

No

+

String

+

This parameter is used to query traces generated earlier than its specified value. The value can be that of marker in the response. next can be used with from and to. Traces generated in the overlap of the two time ranges specified respectively by next and by from and to will be returned.

+

to

+

No

+

Long

+

UTC millisecond timestamp of the query end time. The value contains 13 digits and the default value is the timestamp of the current time. Traces generated before the specified timestamp will be queried. The parameters to and from should be used together.

+

tracker_name

+

No

+

String

+

When trace_type is set to system, the default value system is used.

+

service_type

+

No

+

String

+

Type of a cloud service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide.

+

user

+

No

+

String

+

Name of the user whose traces are to be queried.

+

resource_id

+

No

+

String

+

ID of a cloud resource whose traces are to be queried.

+

resource_name

+

No

+

String

+

Name of a resource whose traces are to be queried. The value can contain uppercase letters.

+

resource_type

+

No

+

String

+

Type of a resource whose traces are to be queried.

+

trace_id

+

No

+

String

+

Trace ID. If this parameter is specified, other query criteria will not take effect.

+

trace_name

+

No

+

String

+

Trace name. The value can contain uppercase letters.

+

trace_rating

+

No

+

String

+

Trace status. The value can be normal, warning, or incident.

+

Enumerated values:

+
  • normal
  • warning
  • incident
+
+
+
+

Request Parameters

None

+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

traces

+

Array of Traces objects

+

List of returned traces.

+

meta_data

+

MetaData object

+

Number of returned traces and the marker.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Traces

Parameter

+

Type

+

Description

+

resource_id

+

String

+

ID of a cloud resource on which the recorded operation was performed.

+

trace_name

+

String

+

Trace name. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.). It must start with a letter.

+

trace_rating

+

String

+

Trace status. The value can be normal, warning, or incident.

+

Enumerated values:

+
  • normal
  • warning
  • incident
+

trace_type

+

String

+

Trace source. For management traces, the value can be ApiCall, ConsoleAction, or SystemAction.

+

request

+

String

+

Request of an operation on resources.

+

response

+

String

+

Response to a user request, that is, the returned information for an operation on resources.

+

code

+

String

+

HTTP status code returned by the associated API.

+

api_version

+

String

+

Version of the API.

+

message

+

String

+

Remarks added by other cloud services to a trace.

+

record_time

+

Long

+

Timestamp when an operation was recorded by CTS.

+

trace_id

+

String

+

Trace ID. The value is the UUID generated by the system.

+

time

+

Long

+

Timestamp when a trace was generated.

+

user

+

UserInfo object

+

Information of the user who performed the operation that triggered the trace.

+

service_type

+

String

+

Type of a cloud service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters.

+

resource_type

+

String

+

Type of the resource on which the operation was performed.

+

source_ip

+

String

+

IP address of the tenant who performed the operation that triggered the trace.

+

resource_name

+

String

+

Name of a resource on which the recorded operation was performed.

+

request_id

+

String

+

ID of the recorded request.

+

location_info

+

String

+

Additional information required for fault locating after a request error.

+

endpoint

+

String

+

Endpoint in the details page URL of the cloud resource on which the recorded operation was performed.

+

resource_url

+

String

+

Details page URL (excluding the endpoint) of the cloud resource on which the recorded operation was performed.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 UserInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Account ID. For details, see section "Obtaining an Account ID and Project ID" in Cloud Trace Service API Reference.

+

name

+

String

+

Account name.

+

domain

+

BaseUser object

+

Domain information of the user who performed the operation generating the trace.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 BaseUser

Parameter

+

Type

+

Description

+

id

+

String

+

Account ID. For details, see section "Obtaining an Account ID and Project ID" in Cloud Trace Service API Reference.

+

name

+

String

+

Account name.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 MetaData

Parameter

+

Type

+

Description

+

count

+

Integer

+

Number of returned traces.

+

marker

+

String

+

ID of the last trace in the returned trace list. The value of this parameter can be used as the next value. If the value of marker is null, all traces have been returned.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 503

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Request

+
+

Example Response

Status code: 200

+

The request is successful.

+
{
+  "meta_data" : {
+    "count" : 2,
+    "marker" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
+  },
+  "traces" : [ {
+    "time" : 1472148708232,
+    "user" : {
+      "name" : "xxx",
+      "domain" : {
+        "name" : "xxx",
+        "id" : "ded649d814464428ba89d04d7955c93e"
+      }
+    },
+    "response" : {
+      "code" : "VPC.0514",
+      "message" : "Update port fail."
+    },
+    "code" : 200,
+    "service_type" : "VPC",
+    "resource_type" : "eip",
+    "resource_name" : "192.144.163.1",
+    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
+    "trace_name" : "deleteEip",
+    "trace_rating" : "warning",
+    "trace_type" : "ConsoleAction",
+    "api_version" : "2.0",
+    "record_time" : 1481066128032,
+    "trace_id" : "e001ccb9-bc09-11e6-b00b-4b2a61338db6"
+  }, {
+    "time" : 1472148708232,
+    "user" : {
+      "name" : "xxx",
+      "domain" : {
+        "name" : "xxx",
+        "id" : "ded649d814464428ba89d04d7955c93e"
+      }
+    },
+    "response" : {
+      "code" : "VPC.0514",
+      "message" : "Update port fail."
+    },
+    "code" : 200,
+    "service_type" : "VPC",
+    "resource_type" : "eip",
+    "resource_name" : "192.144.163.1",
+    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
+    "trace_name" : "deleteEip",
+    "trace_rating" : "warning",
+    "trace_type" : "ConsoleAction",
+    "api_version" : "2.0",
+    "record_time" : 1481066128032,
+    "trace_id" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
+  } ]
+}
+
+

Status Code

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

400

+

The query parameters are abnormal.

+

401

+

The request is rejected due to authentication failure.

+

403

+

The server understood the request but refused to authorize it.

+

404

+

The requested trace does not exist.

+

500

+

Failed to complete the request because of an internal service error.

+

503

+

The requested service is invalid. The client should not repeat the request without modifications.

+
+
+
+

Error Code

For details, see Error Codes.

+
+
+
+ +
+ diff --git a/docs/cts/api-ref/cts_api_0312.html b/docs/cts/api-ref/cts_api_0312.html index 6c1d675b..5700c0b3 100644 --- a/docs/cts/api-ref/cts_api_0312.html +++ b/docs/cts/api-ref/cts_api_0312.html @@ -1,405 +1,631 @@

Creating a Key Event Notification

-

Function

SMS, email, or HTTP/HTTPS notifications can be sent through pre-configured SMN topics to subscribers when key operations occur. This helps you detect high-risk operations promptly. Notifications can also be used as triggers for specific operations or to connect to your own audit system.

+

Function

SMS, email, or HTTP/HTTPS notifications can be sent through pre-configured SMN topics to subscribers when key operations occur. This helps you detect high-risk operations promptly. Notifications can also be used as triggers for specific operations or to connect to your own audit system.

-

URI

POST /v3/{project_id}/notifications

+

API Calling

For details, see Calling APIs.

+
+

URI

POST /v3/{project_id}/notifications

-
Table 1 URI parameter

Parameter

+
- - - - - - -
Table 1 Path parameters

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

project_id

+

project_id

Yes

+

Yes

String

+

String

Project ID. For details, see section "Obtaining the Account ID and Project ID" in Cloud Trace Service API Reference.

+

Project ID. For details, see Obtaining an Account ID and Project ID.

-

Request Parameters

-
Table 2 Request body parameters

Parameter

+

Request Parameters

+
- - - - - - - - - - - - - - - - - - - - - - - + + + + +
Table 2 Request body parameters

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

notification_name

+

notification_name

Yes

+

Yes

String

+

String

Notification name.

+

Notification name.

operation_type

+

operation_type

Yes

+

Yes

String

+

String

Operation type. Possible options include complete and customized. If you choose complete, you do not need to specify operations and notify_user_list, and notifications will be sent when any supported operations occur on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

-

Enumerated values:

-
  • complete
  • customized
+

Operation type. Possible options include complete and customized. If you choose complete, you do not need to specify operations and notify_user_list, and notifications will be sent when any supported operations occur on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

+

Enumerated values:

+
  • complete
  • customized

operations

+

operations

No

+

No

Array of Operations objects

+

Array of Operations objects

Operation list.

+

Operation list.

notify_user_list

+

notify_user_list

No

+

No

Array of NotificationUsers objects

+

Array of NotificationUsers objects

List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

+

List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

topic_id

+

topic_id

No

+

No

String

+

String

Topic URN.

-
  • To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2
+

Topic URN or function URN. To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2 To obtain the function URN, call the FunctionGraph API for querying functions. Example URN: urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test

+

filter

+

No

+

Filter object

+

Advanced filter of key event notifications.

-
Table 3 Operations

Parameter

+
- - - - - - - - - - - - - - -
Table 3 Operations

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

service_type

+

service_type

Yes

+

Yes

String

+

String

Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in the Cloud Trace Service User Guide.

+

Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its acronym.

resource_type

+

resource_type

Yes

+

Yes

String

+

String

Resource type.

+

Resource type.

trace_names

+

trace_names

Yes

+

Yes

Array of strings

+

Array of strings

Trace name.

+

Trace name.

-
Table 4 NotificationUsers

Parameter

+
- - - - - - - - - - - - - -
Table 4 NotificationUsers

Parameter

Mandatory

+

Mandatory

Type

+

Type

Description

+

Description

user_group

+

user_group

Yes

+

Yes

String

+

String

IAM user group.

+

IAM user group.

user_list

+

user_list

Yes

+

Yes

Array of strings

+

Array of strings

IAM user.

-
-
- -

Response Parameters

Status code: 201

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Table 5 Response body parameters

Parameter

-

Type

-

Description

-

notification_name

-

String

-

Notification name.

-

operation_type

-

String

-

Operation type. Possible options include complete and customized.

-

Enumerated values:

-
  • customized
  • complete
-

operations

-

Array of Operations objects

-

Operation list.

-

notify_user_list

-

Array of NotificationUsers objects

-

List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

-

status

-

String

-

Notification status. Possible options include enabled and disabled.

-

Enumerated values:

-
  • enabled
  • disabled
-

topic_id

-

String

-

Unique resource ID of an SMN topic. You can obtain the ID by querying the topic list.

-

notification_id

-

String

-

Unique notification ID.

-

notification_type

-

String

-

Notification type.

-

Enumerated value:

-
  • smn
-

project_id

-

String

-

Project ID.

-

create_time

-

Long

-

Time when a notification rule was created.

+

IAM user.

-
Table 6 Operations

Parameter

+
- - + - - - + - - - + - - - + + + +
Table 5 Filter

Parameter

Type

+

Mandatory

Description

+

Type

+

Description

service_type

+

condition

String

+

Yes

Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in the Cloud Trace Service User Guide.

+

String

+

Relationship between conditions.

+
  • AND (default value) indicates that a rule takes effect after all filtering criteria are met.
  • OR indicates that a rule takes effect when one of the filtering criteria is met.
+

Enumerated values:

+
  • AND (default value)
  • OR

resource_type

+

is_support_filter

String

+

Yes

Resource type.

+

Boolean

+

Whether to enable the advanced filter.

trace_names

+

rule

Array of strings

+

Yes

Trace name.

+

Array of strings

+

Advanced filter criteria rule. Example: key != value. The format is field rule value. - Field options: api_version, code, trace_rating, trace_type, resource_id, or resource_name. - Rule: != or =. - Value: api_version: ^(a-zA-Z0-9_-.){1,64}$; code: 1 to 256 characters; trace_rating: normal, warning, or incident; trace_type: ConsoleAction, ApiCall, or SystemAction; resource_id: 1 to 350 characters; resource_name: 1 to 256 characters.

+
+
+ +

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

notification_name

+

String

+

Notification name.

+

operation_type

+

String

+

Operation type. Possible options include complete and customized.

+
  • complete: Notifications will be sent through SMN for all operations recorded by CTS.
  • customized: Notifications will be sent through SMN for specified operations performed on specified cloud services.
+

Enumerated values:

+
  • customized
  • complete
+

operations

+

Array of Operations objects

+

Operation list.

+

notify_user_list

+

Array of NotificationUsers objects

+

List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

+

status

+

String

+

Notification status.

+
  • disabled: Key event notification is disabled.
  • enabled: Key event notification is enabled.
+

Enumerated values:

+
  • enabled
  • disabled
+

topic_id

+

String

+

Unique resource ID of an SMN topic. You can obtain the ID by querying the topic list.

+

notification_id

+

String

+

Unique notification ID.

+

notification_type

+

String

+

Notification type. - smn: Simple Message Notification (SMN). - fun: FunctionGraph.

+

Enumerated values:

+
  • smn
  • fun
+

project_id

+

String

+

Project ID.

+

create_time

+

Long

+

Time when a notification rule was created.

+

filter

+

Filter object

+

Advanced filter of key event notifications.

-
Table 7 NotificationUsers

Parameter

+
- - - - - - - - + + + +
Table 7 Operations

Parameter

Type

+

Type

Description

+

Description

user_group

+

service_type

String

+

String

IAM user group.

+

Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its acronym.

user_list

+

resource_type

Array of strings

+

String

IAM user.

+

Resource type.

+

trace_names

+

Array of strings

+

Trace name.

-

Status code: 400

-
Table 8 Response body parameters

Parameter

+
- - - - - - - - + + +
Table 8 NotificationUsers

Parameter

Type

+

Type

Description

+

Description

error_code

+

user_group

String

+

String

Error code. Format: CTS.XXX.

+

IAM user group.

error_msg

+

user_list

String

+

Array of strings

Error description.

+

IAM user.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 9 Filter

Parameter

+

Type

+

Description

+

condition

+

String

+

Relationship between conditions.

+
  • AND (default value) indicates that a rule takes effect after all filtering criteria are met.
  • OR indicates that a rule takes effect when one of the filtering criteria is met.
+

Enumerated values:

+
  • AND (default value)
  • OR
+

is_support_filter

+

Boolean

+

Whether to enable the advanced filter.

+

rule

+

Array of strings

+

Advanced filter criteria rule. Example: key != value. The format is field rule value. - Field options: api_version, code, trace_rating, trace_type, resource_id, or resource_name. - Rule: != or =. - Value: api_version: ^(a-zA-Z0-9_-.){1,64}$; code: 1 to 256 characters; trace_rating: normal, warning, or incident; trace_type: ConsoleAction, ApiCall, or SystemAction; resource_id: 1 to 350 characters; resource_name: 1 to 256 characters.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 503

+ +
+ + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code. Format: CTS.XXX.

+

error_msg

+

String

+

Error message.

-

Example Request

  • Creating a custom key event notification
    POST  https://{endpoint}/v3/{project_id}/notifications
    +

    Example Request

    • Creating a complete key event notification
      POST https://{endpoint}/v3/{project_id}/notifications
       
       {
      -    "notification_name": "keyOperate_info_cfwy",
      -    "operation_type": "customized",
      -    "operations": [{
      -            "service_type": "CTS",
      -            "resource_type": "tracker",
      -            "trace_names": [
      -                "createTracker",
      -                "deleteTraceker"
      -            ]
      -        }, {
      -            "service_type": "CTS",
      -            "resource_type": "notification",
      -            "trace_names": [
      -                "deleteNotification",
      -                "updateNotification"
      -            ]
      -        }, {
      -            "service_type": "AOM",
      -            "resource_type": "pe",
      -            "trace_names": [
      -                "deletePolicyGroup",
      -                "updatePolicyGroup",
      -                "createPolicyGroup"
      -            ]
      -        }
      -    ],
      -    "notify_user_list": [{
      -            "user_group": "admin",
      -            "user_list": [
      -                "test1",
      -                "test2"
      -            ]
      -        }, {
      -            "user_group": "CTS view",
      -            "user_list": [
      -                "test3",
      -                "test4"
      -            ]
      -        }
      -    ],
      -    "topic_id": "urn:smn:{regionid}:24edf66e79d04187acb99a463e610764:test"
      +  "notification_name" : "test",
      +  "filter" : {
      +    "is_support_filter" : true,
      +    "rule" : [ "code != 200", "api_version = v1.0", "trace_rating = normal", "trace_type != ApiCall", "resource_id = xxx", "resource_name = xxx" ],
      +    "condition" : "OR"
      +  },
      +  "operation_type" : "complete",
      +  "topic_id" : "urn:smn:{regionid}:24edf66e79d04187acb99a463e610764:test"
       }
      -
    • Creating a complete key event notification
      POST  https://{endpoint}/v3/{project_id}/notifications
      +
    • Creating a custom key event notification
      POST https://{endpoint}/v3/{project_id}/notifications
       
       {
      -    "notification_name": "test",
      -    "operation_type": "complete",
      -    "topic_id": "urn:smn:{regionid}:24edf66e79d04187acb99a463e610764:test"
      +  "notification_name" : "test",
      +  "operation_type" : "customized",
      +  "filter" : {
      +    "is_support_filter" : true,
      +    "rule" : [ "code != 200", "api_version = v1.0", "trace_rating = normal", "trace_type != ApiCall", "resource_id = xxx", "resource_name = xxx" ],
      +    "condition" : "OR"
      +  },
      +  "operations" : [ {
      +    "service_type" : "CTS",
      +    "resource_type" : "tracker",
      +    "trace_names" : [ "createTracker", "deleteTracker" ]
      +  }, {
      +    "service_type" : "CTS",
      +    "resource_type" : "notification",
      +    "trace_names" : [ "deleteNotification", "updateNotification" ]
      +  }, {
      +    "service_type" : "AOM",
      +    "resource_type" : "pe",
      +    "trace_names" : [ "deletePolicyGroup", "updatePolicyGroup", "createPolicyGroup" ]
      +  } ],
      +  "notify_user_list" : [ {
      +    "user_group" : "admin",
      +    "user_list" : [ "test1", "test2" ]
      +  }, {
      +    "user_group" : "CTS view",
      +    "user_list" : [ "test3", "test4" ]
      +  } ],
      +  "topic_id" : "urn:smn:{regionid}:24edf66e79d04187acb99a463e610764:test"
       }
    -

    Example Response

    Status code: 201

    -

    The creation is successful.

    -
    {
    +

    Example Response

    Status code: 201

    +

    The creation is successful.

    +
    {
       "create_time" : 1634001495876,
       "notification_id" : "cda8fd83-d08c-46f0-b914-1453a6a85c00",
    -  "notification_name" : "keyOperate_info_cfwy",
    +  "notification_name" : "test",
       "notification_type" : "smn",
       "notify_user_list" : [ {
         "user_group" : "admin",
    @@ -412,7 +638,7 @@
       "operations" : [ {
         "resource_type" : "tracker",
         "service_type" : "CTS",
    -    "trace_names" : [ "createTracker", "deleteTraceker" ]
    +    "trace_names" : [ "createTracker", "deleteTracker" ]
       }, {
         "resource_type" : "notification",
         "service_type" : "CTS",
    @@ -427,58 +653,58 @@
       "topic_id" : "urn:smn:{regionid}:24edf66e79d04187acb99a463e610764:test"
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - - - - - - - -

    Status Code

    Description

    +

    Description

    201

    +

    201

    The creation is successful.

    +

    The creation is successful.

    400

    +

    400

    The server failed to process the request.

    +

    The server failed to process the request.

    401

    +

    401

    The request is rejected due to authentication failure.

    +

    The request is rejected due to authentication failure.

    403

    +

    403

    The server understood the request but refused to authorize it.

    +

    The server understood the request but refused to authorize it.

    404

    +

    404

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    +

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    500

    +

    500

    The request failed to be executed or some trackers failed to be deleted.

    +

    The request failed to be executed or some trackers failed to be deleted.

    503

    +

    503

    The requested service is unavailable. The client should not repeat the request without modifications.

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    -

    Error Codes

    See Error Codes.

    +

    Error Code

    For details, see Error Codes.

    diff --git a/docs/cts/api-ref/cts_api_0313.html b/docs/cts/api-ref/cts_api_0313.html index 1c99fc83..0b9c39c4 100644 --- a/docs/cts/api-ref/cts_api_0313.html +++ b/docs/cts/api-ref/cts_api_0313.html @@ -1,368 +1,617 @@

    Modifying a Key Event Notification

    -

    Function

    This API is used to modify a key event notification. The notification ID carried in the request must be valid.

    +

    Function

    This API is used to modify a key event notification. The notification ID carried in the request must be valid.

    -

    URI

    PUT /v3/{project_id}/notifications

    +

    API Calling

    For details, see Calling APIs.

    +
    +

    URI

    PUT /v3/{project_id}/notifications

    -
    Table 1 URI parameter

    Parameter

    +
    - - - - - - -
    Table 1 Path parameter

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details, see section "Obtaining the Account ID and Project ID" in Cloud Trace Service API Reference.

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    -

    Request Parameters

    -
    Table 2 Request body parameters

    Parameter

    +

    Request Parameters

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + +
    Table 2 Request body parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    notification_name

    +

    notification_name

    Yes

    +

    Yes

    String

    +

    String

    Notification name.

    +

    Notification name.

    operation_type

    +

    operation_type

    Yes

    +

    Yes

    String

    +

    String

    Operation type. Possible options include complete and customized. If you choose complete, notifications will be sent when any supported operation occurs on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

    -

    Enumerated values:

    -
    • customized
    • complete
    +

    Operation type. Possible options include complete and customized. If you choose complete, notifications will be sent when any supported operation occurs on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

    +

    Enumerated values:

    +
    • customized

      +
    • complete

      +

    operations

    +

    operations

    No

    +

    No

    Array of Operations objects

    +

    Array of Operations objects

    Operation list.

    +

    Operation list.

    notify_user_list

    +

    notify_user_list

    No

    +

    No

    Array of NotificationUsers objects

    +

    Array of NotificationUsers objects

    List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

    +

    List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

    status

    +

    status

    Yes

    +

    Yes

    String

    +

    String

    Notification status. Possible options include enabled and disabled.

    -

    Enumerated values:

    -
    • enabled
    • disabled
    +

    Notification status. Possible options include enabled and disabled.

    +

    Enumerated values:

    +
    • enabled

      +
    • disabled

      +

    topic_id

    +

    topic_id

    No

    +

    No

    String

    +

    String

    Topic URN. This parameter is mandatory when status is set to enabled.

    -
    • To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2
    +

    Topic URN or function URN. This parameter is mandatory when status is set to enabled. To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2 To obtain the function URN, call the FunctionGraph API for querying functions. Example URN: urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test

    notification_id

    +

    notification_id

    Yes

    +

    Yes

    String

    +

    String

    Notification ID.

    +

    Notification ID.

    +

    filter

    +

    No

    +

    Filter object

    +

    Advanced filter of key event notifications.

    -
    Table 3 Operations

    Parameter

    +
    - - - - - - - - - - - - - - -
    Table 3 Operations

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    service_type

    +

    service_type

    Yes

    +

    Yes

    String

    +

    String

    Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in the Cloud Trace Service User Guide.

    +

    Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its acronym.

    resource_type

    +

    resource_type

    Yes

    +

    Yes

    String

    +

    String

    Resource type.

    +

    Resource type.

    trace_names

    +

    trace_names

    Yes

    +

    Yes

    Array of strings

    +

    Array of strings

    Trace name.

    +

    Trace name.

    -
    Table 4 NotificationUsers

    Parameter

    +
    - - - - - - - - - - - - - -
    Table 4 NotificationUsers

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    user_group

    +

    user_group

    Yes

    +

    Yes

    String

    +

    String

    IAM user group.

    +

    IAM user group.

    user_list

    +

    user_list

    Yes

    +

    Yes

    Array of strings

    +

    Array of strings

    IAM user.

    -
    -
    - -

    Response Parameters

    Status code: 200

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Table 5 Response body parameters

    Parameter

    -

    Type

    -

    Description

    -

    notification_name

    -

    String

    -

    Notification name.

    -

    operation_type

    -

    String

    -

    Operation type. Possible options include complete and customized. If you choose complete, notifications will be sent when any supported operation occurs on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

    -

    Enumerated values:

    -
    • customized
    • complete
    -

    operations

    -

    Array of Operations objects

    -

    Operation list.

    -

    notify_user_list

    -

    Array of NotificationUsers objects

    -

    List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

    -

    status

    -

    String

    -

    Notification status. Possible options include enabled and disabled.

    -

    Enumerated values:

    -
    • enabled
    • disabled
    -

    topic_id

    -

    String

    -

    Topic URN.

    -
    • To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2
    -

    notification_id

    -

    String

    -

    Unique notification ID.

    -

    notification_type

    -

    String

    -

    Notification type.

    -

    Enumerated value:

    -
    • smn
    -

    project_id

    -

    String

    -

    Project ID.

    -

    create_time

    -

    Long

    -

    Timestamp when a notification was created.

    +

    IAM user.

    -
    Table 6 Operations

    Parameter

    +
    - - + - - - + - - - + - - - + + + +
    Table 5 Filter

    Parameter

    Type

    +

    Mandatory

    Description

    +

    Type

    +

    Description

    service_type

    +

    condition

    String

    +

    Yes

    Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in the Cloud Trace Service User Guide.

    +

    String

    +

    Relationship between conditions.

    +
    • AND (default value) indicates that a rule takes effect after all filtering criteria are met.

      +
    • OR indicates that a rule takes effect when one of the filtering criteria is met.

      +
    +

    Enumerated values:

    +
    • AND (default value)

      +
    • OR

      +

    resource_type

    +

    is_support_filter

    String

    +

    Yes

    Resource type.

    +

    Boolean

    +

    Whether to enable the advanced filter.

    trace_names

    +

    rule

    Array of strings

    +

    Yes

    Trace name.

    +

    Array of strings

    +

    Advanced filter criteria rule. Example: key != value. The format is field rule value. - Field options: api_version, code, trace_rating, trace_type, resource_id, or resource_name. - Rule: != or =. - Value: api_version: ^(a-zA-Z0-9_-.){1,64}$; code: 1 to 256 characters; trace_rating: normal, warning, or incident; trace_type: ConsoleAction, ApiCall, or SystemAction; resource_id: 1 to 350 characters; resource_name: 1 to 256 characters.

    +
    +
    + +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    notification_name

    +

    String

    +

    Notification name.

    +

    operation_type

    +

    String

    +

    Operation type. Possible options include complete and customized. If you choose complete, notifications will be sent when any supported operation occurs on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

    +

    Enumerated values:

    +
    • customized

      +
    • complete

      +
    +

    operations

    +

    Array of Operations objects

    +

    Operation list.

    +

    notify_user_list

    +

    Array of NotificationUsers objects

    +

    List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

    +

    status

    +

    String

    +

    Notification status. Possible options include enabled and disabled.

    +

    Enumerated values:

    +
    • enabled

      +
    • disabled

      +
    +

    topic_id

    +

    String

    +

    Topic URN or function URN. To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2 To obtain the function URN, call the FunctionGraph API for querying functions. Example URN: urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test

    +

    notification_id

    +

    String

    +

    Unique notification ID.

    +

    notification_type

    +

    String

    +

    Notification type identified based on topic_id. Possible options include SMN (smn) and FunctionGraph (fun).

    +

    Enumerated values:

    +
    • smn

      +
    • fun

      +
    +

    project_id

    +

    String

    +

    Project ID.

    +

    create_time

    +

    Long

    +

    Timestamp when a notification was created.

    +

    filter

    +

    Filter object

    +

    Advanced filter of key event notifications.

    -
    Table 7 NotificationUsers

    Parameter

    +
    - - - - - - - - + + + +
    Table 7 Operations

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    user_group

    +

    service_type

    String

    +

    String

    IAM user group.

    +

    Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its acronym.

    user_list

    +

    resource_type

    Array of strings

    +

    String

    IAM user.

    +

    Resource type.

    +

    trace_names

    +

    Array of strings

    +

    Trace name.

    -

    Status code: 400

    -
    Table 8 Response body parameters

    Parameter

    +
    - - - - - - - - + + +
    Table 8 NotificationUsers

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    error_code

    +

    user_group

    String

    +

    String

    Error code. Format: CTS.XXX.

    +

    IAM user group.

    error_msg

    +

    user_list

    String

    +

    Array of strings

    Error description.

    +

    IAM user.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 9 Filter

    Parameter

    +

    Type

    +

    Description

    +

    condition

    +

    String

    +

    Relationship between conditions.

    +
    • AND (default value) indicates that a rule takes effect after all filtering criteria are met.

      +
    • OR indicates that a rule takes effect when one of the filtering criteria is met.

      +
    +

    Enumerated values:

    +
    • AND (default value)

      +
    • OR

      +
    +

    is_support_filter

    +

    Boolean

    +

    Whether to enable the advanced filter.

    +

    rule

    +

    Array of strings

    +

    Advanced filter criteria rule. Example: key != value. The format is field rule value. - Field options: api_version, code, trace_rating, trace_type, resource_id, or resource_name. - Rule: != or =. - Value: api_version: ^(a-zA-Z0-9_-.){1,64}$; code: 1 to 256 characters; trace_rating: normal, warning, or incident; trace_type: ConsoleAction, ApiCall, or SystemAction; resource_id: 1 to 350 characters; resource_name: 1 to 256 characters.

    +
    +
    +

    Status code: 400

    + +
    + + + + + + + + + + + + + +
    Table 10 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 11 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 12 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 404

    + +
    + + + + + + + + + + + + + +
    Table 13 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 14 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + +
    Table 15 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    -

    Example Request

    Modifying a key event notification

    -
    PUT https://{endpoint}/v3/{project_id}/notifications
    +

    Example Request

    Modify a key event notification.

    +
    PUT https://{endpoint}/v3/{project_id}/notifications
     
     {
       "notification_id" : "6d4a09bb-aa8e-40db-9e87-0d5e203823a8",
    @@ -371,7 +620,7 @@
       "operations" : [ {
         "service_type" : "CTS",
         "resource_type" : "tracker",
    -    "trace_names" : [ "createTracker", "deleteTraceker" ]
    +    "trace_names" : [ "createTracker", "deleteTracker" ]
       }, {
         "service_type" : "CTS",
         "resource_type" : "notification",
    @@ -392,16 +641,16 @@
       "topic_id" : "urn:smn:{regionid}:24edf66e79d04187acb99a463e610764:foo"
     }
    -

    Example Response

    Status code: 200

    -

    The notification is modified.

    -
    {
    +

    Example Response

    Status code: 200

    +

    The notification is modified.

    +
    {
       "notification_id" : "6d4a09bb-aa8e-40db-9e87-0d5e203823a8",
       "notification_name" : "keyOperate_info_cfwy",
       "operation_type" : "customized",
       "operations" : [ {
         "service_type" : "CTS",
         "resource_type" : "tracker",
    -    "trace_names" : [ "createTracker", "deleteTraceker" ]
    +    "trace_names" : [ "createTracker", "deleteTracker" ]
       }, {
         "service_type" : "CTS",
         "resource_type" : "notification",
    @@ -425,58 +674,58 @@
       "topic_id" : "urn:smn:{regionid}:24edf66e79d04187acb99a463e610764:foo"
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - - - - - - - -

    Status Code

    Description

    +

    Description

    200

    +

    200

    The notification is modified.

    +

    The notification is modified.

    400

    +

    400

    The server failed to process the request.

    +

    The server failed to process the request.

    401

    +

    401

    The request is rejected due to authentication failure.

    +

    The request is rejected due to authentication failure.

    403

    +

    403

    The server understood the request but refused to authorize it.

    +

    The server understood the request but refused to authorize it.

    404

    +

    404

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    +

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    500

    +

    500

    The request failed to be executed or some trackers failed to be deleted.

    +

    The request failed to be executed or some trackers failed to be deleted.

    503

    +

    503

    The requested service is unavailable. The client should not repeat the request without modifications.

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    -

    Error Codes

    See Error Codes.

    +

    Error Code

    For details, see Error Codes.

    diff --git a/docs/cts/api-ref/cts_api_0314.html b/docs/cts/api-ref/cts_api_0314.html index e9713e6c..3dc56635 100644 --- a/docs/cts/api-ref/cts_api_0314.html +++ b/docs/cts/api-ref/cts_api_0314.html @@ -1,142 +1,279 @@

    Deleting a Key Event Notification

    -

    Function

    This API is used to delete a key event notification.

    +

    Function

    This API is used to delete a key event notification.

    -

    URI

    DELETE /v3/{project_id}/notifications

    +

    API Calling

    For details, see Calling APIs.

    +
    +

    URI

    DELETE /v3/{project_id}/notifications

    -
    Table 1 URI parameter

    Parameter

    +
    - - - - - - -
    Table 1 Path parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details, see section "Obtaining the Account ID and Project ID" in Cloud Trace Service API Reference.

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    -
    Table 2 Query parameter

    Parameter

    +
    - - - - - - -
    Table 2 Query parameter

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    notification_id

    +

    notification_id

    Yes

    +

    Yes

    String

    +

    String

    Notification ID. To batch delete notifications, enter multiple notification IDs separated by commas (,), for example, notification_id="xxx1,ccc2".

    +

    Notification ID. To batch delete notifications, enter multiple notification IDs separated by commas (,), for example, notification_id="xxx1,ccc2".

    -

    Request Parameters

    None

    +

    Request Parameters

    None

    -

    Response Parameters

    Status code: 400

    +

    Response Parameters

    Status code: 400

    -
    Table 3 Response body parameters

    Parameter

    +
    - - - - - - - - + + +
    Table 3 Response body parameters

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    error_code

    +

    error_code

    String

    +

    String

    Error code. Format: CTS.XXX.

    +

    Error code. Format: CTS.XXX.

    error_msg

    +

    error_msg

    String

    +

    String

    Error description.

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 4 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 5 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 404

    + +
    + + + + + + + + + + + + + +
    Table 6 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 7 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + +
    Table 8 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    -

    Example Request

    None

    +

    Example Request

    None

    -

    Example Response

    None

    +

    Example Response

    None.

    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - - - - - - - -

    Status Code

    Description

    +

    Description

    204

    +

    204

    The deletion is successful.

    +

    The deletion is successful.

    400

    +

    400

    The server failed to process the request.

    +

    The server failed to process the request.

    401

    +

    401

    The request is rejected due to authentication failure.

    +

    The request is rejected due to authentication failure.

    403

    +

    403

    The server understood the request but refused to authorize it.

    +

    The server understood the request but refused to authorize it.

    404

    +

    404

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    +

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    500

    +

    500

    The request failed to be executed or some trackers failed to be deleted.

    +

    The request failed to be executed or some trackers failed to be deleted.

    503

    +

    503

    The requested service is unavailable. The client should not repeat the request without modifications.

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    -

    Error Codes

    See Error Codes.

    +

    Error Code

    For details, see Error Codes.

    diff --git a/docs/cts/api-ref/cts_api_0315.html b/docs/cts/api-ref/cts_api_0315.html index 3404598e..e07fc1c1 100644 --- a/docs/cts/api-ref/cts_api_0315.html +++ b/docs/cts/api-ref/cts_api_0315.html @@ -1,270 +1,461 @@

    Querying a Key Event Notification

    -

    Function

    This API is used to query a key event notification.

    +

    Function

    This API is used to query a key event notification.

    -

    URI

    GET /v3/{project_id}/notifications/{notification_type}

    +

    API Calling

    For details, see Calling APIs.

    +
    +

    URI

    GET /v3/{project_id}/notifications/{notification_type}

    -
    Table 1 URI parameters

    Parameter

    +
    - - - - - - - - - - -
    Table 1 Path parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    project_id

    +

    project_id

    Yes

    +

    Yes

    String

    +

    String

    Project ID. For details, see section "Obtaining the Account ID and Project ID" in Cloud Trace Service API Reference.

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    notification_type

    +

    notification_type

    Yes

    +

    Yes

    String

    +

    String

    Notification type.

    -

    Enumerated value:

    -
    • smn
    +

    Notification type. - smn: Simple Message Notification (SMN). - fun: FunctionGraph.

    +

    Enumerated values:

    +
    • smn

      +
    • fun

      +
    -
    Table 2 Query parameter

    Parameter

    +
    - - - - - - -
    Table 2 Query parameters

    Parameter

    Mandatory

    +

    Mandatory

    Type

    +

    Type

    Description

    +

    Description

    notification_name

    +

    notification_name

    No

    +

    No

    String

    +

    String

    Notification name. If this parameter is not specified, all key event notifications configured in the current tenant account are returned.

    +

    Notification name. If this parameter is not specified, all key event notifications configured in the current tenant account are returned.

    -

    Request Parameters

    None

    +

    Request Parameters

    None

    -

    Response Parameters

    Status code: 200

    +

    Response Parameters

    Status code: 200

    -
    Table 3 Response body parameter

    Parameter

    +
    - - - - -
    Table 3 Response body parameters

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    notifications

    +

    notifications

    Array of NotificationsResponseBody objects

    +

    Array of NotificationsResponseBody objects

    Notification list.

    +

    Notification list.

    -
    Table 4 NotificationsResponseBody

    Parameter

    +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +
    Table 4 NotificationsResponseBody

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    notification_name

    +

    notification_name

    String

    +

    String

    Notification name.

    +

    Notification name.

    operation_type

    +

    operation_type

    String

    +

    String

    Operation type. Possible options include complete and customized. If you choose complete, notifications will be sent when any supported operation occurs on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

    -

    Enumerated values:

    -
    • customized
    • complete
    +

    Operation type. Possible options include complete and customized. If you choose complete, notifications will be sent when any supported operation occurs on any of the connected cloud services. If you choose customized, notifications will be sent when operations defined in operations occur.

    +

    Enumerated values:

    +
    • customized

      +
    • complete

      +

    operations

    +

    operations

    Array of Operations objects

    +

    Array of Operations objects

    Operation list.

    +

    Operation list.

    notify_user_list

    +

    notify_user_list

    Array of NotificationUsers objects

    +

    Array of NotificationUsers objects

    List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

    +

    List of users whose operations will trigger notifications. Currently, up to 50 users in 10 user groups can be configured.

    status

    +

    status

    String

    +

    String

    Notification status. Possible options include enabled and disabled.

    -

    Enumerated values:

    -
    • enabled
    • disabled
    +

    Notification status. Possible options include enabled and disabled.

    +

    Enumerated values:

    +
    • enabled

      +
    • disabled

      +

    topic_id

    +

    topic_id

    String

    +

    String

    Topic URN.

    -
    • To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2
    +

    Topic URN or function URN. To obtain the topic_urn, call the SMN API for querying topics. Example URN: urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2 To obtain the function URN, call the FunctionGraph API for querying functions. Example URN: urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test

    notification_id

    +

    notification_id

    String

    +

    String

    Unique notification ID.

    +

    Unique notification ID.

    notification_type

    +

    notification_type

    String

    +

    String

    Notification type.

    -

    Enumerated value:

    -
    • smn
    +

    Notification type identified based on topic_id. Possible options include SMN (smn) and FunctionGraph (fun).

    +

    Enumerated values:

    +
    • smn

      +
    • fun

      +

    project_id

    +

    project_id

    String

    +

    String

    Project ID.

    +

    Project ID.

    create_time

    +

    create_time

    Long

    +

    Long

    Timestamp when a notification was created.

    +

    Timestamp when a notification was created.

    +

    filter

    +

    Filter object

    +

    Advanced filter of key event notifications.

    -
    Table 5 Operations

    Parameter

    +
    - - - - - - - - - - -
    Table 5 Operations

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    service_type

    +

    service_type

    String

    +

    String

    Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in the Cloud Trace Service User Guide.

    +

    Cloud service. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its acronym.

    resource_type

    +

    resource_type

    String

    +

    String

    Resource type.

    +

    Resource type.

    trace_names

    +

    trace_names

    Array of strings

    +

    Array of strings

    Trace name.

    +

    Trace name.

    -
    Table 6 NotificationUsers

    Parameter

    +
    - - - - - - - -
    Table 6 NotificationUsers

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    user_group

    +

    user_group

    String

    +

    String

    IAM user group.

    +

    IAM user group.

    user_list

    +

    user_list

    Array of strings

    +

    Array of strings

    IAM user.

    +

    IAM user.

    -

    Status code: 400

    -
    Table 7 Response body parameters

    Parameter

    +
    - - - - - - - - + + + + + + +
    Table 7 Filter

    Parameter

    Type

    +

    Type

    Description

    +

    Description

    error_code

    +

    condition

    String

    +

    String

    Error code. Format: CTS.XXX.

    +

    Relationship between conditions.

    +
    • AND (default value) indicates that a rule takes effect after all filtering criteria are met.

      +
    • OR indicates that a rule takes effect when one of the filtering criteria is met.

      +
    +

    Enumerated values:

    +
    • AND (default value)

      +
    • OR

      +

    error_msg

    +

    is_support_filter

    String

    +

    Boolean

    Error description.

    +

    Whether to enable the advanced filter.

    +

    rule

    +

    Array of strings

    +

    Advanced filter criteria rule. Example: key != value. The format is field rule value. - Field options: api_version, code, trace_rating, trace_type, resource_id, or resource_name. - Rule: != or =. - Value: api_version: ^(a-zA-Z0-9_-.){1,64}$; code: 1 to 256 characters; trace_rating: normal, warning, or incident; trace_type: ConsoleAction, ApiCall, or SystemAction; resource_id: 1 to 350 characters; resource_name: 1 to 256 characters.

    +
    +
    +

    Status code: 400

    + +
    + + + + + + + + + + + + + +
    Table 8 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 9 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 10 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 404

    + +
    + + + + + + + + + + + + + +
    Table 11 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 12 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + +
    Table 13 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    -

    Example Request

    None

    +

    Example Request

    None

    -

    Example Response

    Status code: 200

    -

    The query is successful.

    -
    {
    +

    Example Response

    Status code: 200

    +

    The query is successful.

    +
    {
       "notifications" : [ {
         "create_time" : 1633933167385,
         "notify_user_list" : [ {
    @@ -313,58 +504,58 @@
       } ]
     }
    -

    Status Codes

    -

    Status Code

    +

    Status Codes

    +
    - - - - - - - - - - - - - - -

    Status Code

    Description

    +

    Description

    200

    +

    200

    The query is successful.

    +

    The query is successful.

    400

    +

    400

    The server failed to process the request.

    +

    The server failed to process the request.

    401

    +

    401

    The request is rejected due to authentication failure.

    +

    The request is rejected due to authentication failure.

    403

    +

    403

    The server understood the request but refused to authorize it.

    +

    The server understood the request but refused to authorize it.

    404

    +

    404

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    +

    The server failed to find the requested resource or some key event notifications failed to be deleted.

    500

    +

    500

    The request failed to be executed or some trackers failed to be deleted.

    +

    The request failed to be executed or some trackers failed to be deleted.

    503

    +

    503

    The requested service is unavailable. The client should not repeat the request without modifications.

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    -

    Error Codes

    See Error Codes.

    +

    Error Code

    For details, see Error Codes.

    diff --git a/docs/cts/api-ref/cts_api_0320.html b/docs/cts/api-ref/cts_api_0320.html new file mode 100644 index 00000000..575b98f2 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0320.html @@ -0,0 +1,22 @@ + + +

    Tracker Management

    +

    +
    + + diff --git a/docs/cts/api-ref/cts_api_0321.html b/docs/cts/api-ref/cts_api_0321.html new file mode 100644 index 00000000..9a060be7 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0321.html @@ -0,0 +1,592 @@ + + +

    Creating a Tracker

    +

    Function

    When you enable CTS, a tracker is automatically created to associate with the cloud services you are using and record all operations on the services. A management tracker can be created by an account in a region. Traces are retained in the CTS console for seven days. For long-term storage, you can enable Object Storage Service (OBS) and deliver real-time operation records to OBS buckets.

    +
    +

    URI

    POST /v3/{project_id}/tracker

    + +
    + + + + + + + + + + + +
    Table 1 Path parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    tracker_type

    +

    Yes

    +

    String

    +

    Tracker type. The value can be system (management tracker).

    +

    Enumerated values:

    +
    • system
    +

    tracker_name

    +

    Yes

    +

    String

    +

    Tracker name. When tracker_type is set to system, the default value system is used.

    +

    is_lts_enabled

    +

    No

    +

    Boolean

    +

    Whether to enable trace analysis.

    +

    obs_info

    +

    No

    +

    TrackerObsInfo object

    +

    Configurations of an OBS bucket to which traces will be transferred.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 TrackerObsInfo

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    bucket_name

    +

    No

    +

    String

    +

    OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

    +

    file_prefix_name

    +

    No

    +

    String

    +

    Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

    +

    is_obs_created

    +

    No

    +

    Boolean

    +

    Whether an OBS bucket is created. If the value is true, an OBS bucket will be created to store trace files. If the value is false, trace files will be stored in an existing OBS bucket.

    +

    compress_type

    +

    No

    +

    String

    +

    Compression type. The value can be JSON (no compression) or GZIP (compression). The default format is GZIP.

    +

    Enumerated values:

    +
    • gzip
    • json
    +

    is_sort_by_service

    +

    No

    +

    Boolean

    +

    Whether to sort the path by cloud service. If this option is enabled, the cloud service name is added to the transfer file path. The default value is true.

    +
    +
    +
    +

    Response Parameters

    Status code: 201

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Unique tracker ID.

    +

    create_time

    +

    Long

    +

    Timestamp when the tracker was created.

    +

    lts

    +

    Lts object

    +

    Detail about trace analysis.

    +

    tracker_type

    +

    String

    +

    Tracker type. The value can be system (management tracker).

    +

    Enumerated values:

    +
    • system
    +

    domain_id

    +

    String

    +

    Account ID. For details, see Obtaining an Account ID and Project ID.

    +

    project_id

    +

    String

    +

    Project ID.

    +

    tracker_name

    +

    String

    +

    Tracker name. The default value is system.

    +

    status

    +

    String

    +

    Tracker status. The value can be enabled, disabled, or error. If the value is set to error, the detail field is required for specifying the source of the error.

    +

    Enumerated values:

    +
    • enabled
    • disabled
    +

    detail

    +

    String

    +

    This parameter is returned only when the tracker status is error. It indicates the cause of the abnormal status, and its value can be bucketPolicyError, noBucket, or arrears.

    +

    obs_info

    +

    ObsInfo object

    +

    Information about the bucket to which traces are transferred.

    +
    +
    + +
    + + + + + + + + + +
    Table 5 ManagementEventSelector

    Parameter

    +

    Type

    +

    Description

    +

    exclude_service

    +

    Array of strings

    +

    Cloud services whose traces will not be transferred. Currently, the value can only be set to KMS, indicating that the createDatakey traces of KMS will not be transferred.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 6 Lts

    Parameter

    +

    Type

    +

    Description

    +

    is_lts_enabled

    +

    Boolean

    +

    Specifies whether to enable the LTS search function.

    +

    log_group_name

    +

    String

    +

    Name of the log group that CTS creates in LTS.

    +

    log_topic_name

    +

    String

    +

    Specifies the name of the log topic that CTS creates in LTS.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 7 ObsInfo

    Parameter

    +

    Type

    +

    Description

    +

    bucket_name

    +

    String

    +

    OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

    +

    file_prefix_name

    +

    String

    +

    Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

    +

    is_obs_created

    +

    Boolean

    +

    Whether the OBS bucket is automatically created by the tracker.

    +

    compress_type

    +

    String

    +

    Compression type. The value can be JSON (no compression) or GZIP (compression). The default format is GZIP.

    +

    Enumerated values:

    +
    • gzip
    • json
    +

    is_sort_by_service

    +

    Boolean

    +

    Whether to sort the path by cloud service. If this option is enabled, the cloud service name is added to the transfer file path. The default value is true.

    +
    +
    +

    Status code: 400

    + +
    + + + + + + + + + + + + + +
    Table 8 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 9 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 10 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 404

    + +
    + + + + + + + + + + + + + +
    Table 11 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 12 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + + + + +
    Table 13 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +
    +

    Example Request

    • Creating a management tracker
      POST https://{endpoint}/v3/{project_id}/tracker
      +
      +{
      +  "tracker_type" : "system",
      +  "tracker_name" : "system",
      +  "obs_info" : {
      +    "is_obs_created" : false,
      +    "bucket_name" : "test-data-tracker",
      +    "file_prefix_name" : "11"
      +  },
      +  "is_lts_enabled" : true,
      +  "is_support_trace_files_encryption" : true,
      +  "kms_id" : "13a4207c-7abe-4b68-8510-16b84c3b5504",
      +  "is_support_validate" : true
      +}
      +
    +
    +

    Example Response

    Status code: 201

    +

    The request is successful.

    +
    {
    +  "id" : "2e6fa9b8-8c6e-456d-b5d3-77be972d220b",
    +  "create_time" : 1587958482923,
    +  "domain_id" : "aexxxxxxxx4d4fb4bexxxxxxx791fbf",
    +  "obs_info" : {
    +    "is_obs_created" : false,
    +    "bucket_name" : "test-bucket",
    +    "is_authorized_bucket" : false,
    +    "file_prefix_name" : "11",
    +    "bucket_lifecycle" : 30
    +  },
    +  "project_id" : "bb1xxxxxxxxe4f498cbxxxxxxxx35634",
    +  "lts" : {
    +    "is_lts_enabled" : true,
    +    "log_group_name" : "CTS",
    +    "log_topic_name" : "system-trace"
    +  },
    +  "is_support_validate" : true,
    +  "tracker_name" : "system",
    +  "tracker_type" : "system",
    +  "status" : "enabled"
    +}
    +
    +

    Status Code

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    201

    +

    The request is successful.

    +

    400

    +

    The server failed to process the request.

    +

    401

    +

    The request is rejected due to authentication failure.

    +

    403

    +

    The server understood the request but refused to authorize it.

    +

    404

    +

    The requested resource does not exist.

    +

    500

    +

    Failed to complete the request because of an internal service error.

    +

    503

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    +
    +
    +
    +

    Error Code

    For details, see Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/cts/api-ref/cts_api_0322.html b/docs/cts/api-ref/cts_api_0322.html new file mode 100644 index 00000000..159594b0 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0322.html @@ -0,0 +1,393 @@ + + +

    Modifying a Tracker

    +

    Function

    This API is used to modify configurations of a tracker, including trace transfer to OBS buckets, key event notifications, trace file encryption, trace search and analysis using LTS, trace file integrity check, and tracker enablement or disablement. Modifying tracker parameters does not affect the existing operation records. After the modification is complete, the new rules are immediately applied to operation recording.

    +
    +

    URI

    PUT /v3/{project_id}/tracker

    + +
    + + + + + + + + + + + +
    Table 1 Path parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    tracker_type

    +

    Yes

    +

    String

    +

    Tracker type. The value can be system (management tracker).

    +

    Enumerated values:

    +
    • system
    +

    tracker_name

    +

    Yes

    +

    String

    +

    Tracker name. When tracker_type is set to system, the default value system is used.

    +

    status

    +

    No

    +

    String

    +

    Tracker status. The value can be enabled or disabled. If you change the value to disabled, the tracker stops recording traces.

    +

    Enumerated values:

    +
    • enabled
    • disabled
    +

    is_lts_enabled

    +

    No

    +

    Boolean

    +

    Whether to enable trace analysis.

    +

    obs_info

    +

    No

    +

    TrackerObsInfo object

    +

    Configurations of an OBS bucket to which traces will be transferred.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 3 TrackerObsInfo

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    bucket_name

    +

    No

    +

    String

    +

    OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

    +

    file_prefix_name

    +

    No

    +

    String

    +

    Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

    +

    is_obs_created

    +

    No

    +

    Boolean

    +

    Whether an OBS bucket is created. If the value is true, an OBS bucket will be created to store trace files. If the value is false, trace files will be stored in an existing OBS bucket.

    +

    compress_type

    +

    No

    +

    String

    +

    Compression type. The value can be JSON (no compression) or GZIP (compression). The default format is GZIP.

    +

    Enumerated values:

    +
    • gzip
    • json
    +

    is_sort_by_service

    +

    No

    +

    Boolean

    +

    Whether to sort the path by cloud service. If this option is enabled, the cloud service name is added to the transfer file path. The default value is true.

    +
    +
    +
    +

    Response Parameters

    Status code: 400

    + +
    + + + + + + + + + + + + + +
    Table 4 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 5 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 6 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 404

    + +
    + + + + + + + + + + + + + +
    Table 7 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 8 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + + + + +
    Table 9 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +
    +

    Example Request

    • Modifying a management tracker
      PUT https://{endpoint}/v3/{project_id}/tracker
      +
      +{
      +  "tracker_type" : "system",
      +  "tracker_name" : "system",
      +  "obs_info" : {
      +    "is_obs_created" : false,
      +    "bucket_name" : "test-data-tracker",
      +    "file_prefix_name" : "11"
      +  },
      +  "is_lts_enabled" : false,
      +  "is_support_trace_files_encryption" : false,
      +  "kms_id" : "",
      +  "is_support_validate" : false,
      +  "status" : "enabled"
      +}
      +
    +
    +

    Example Response

    None

    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    The request is successful.

    +

    400

    +

    The server failed to process the request.

    +

    401

    +

    The request is rejected due to authentication failure.

    +

    403

    +

    The server understood the request but refused to authorize it.

    +

    404

    +

    The server failed to find the requested resource.

    +

    500

    +

    Failed to complete the request because of an internal service error.

    +

    503

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    +
    +
    +
    +

    Error Code

    For details, see Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/cts/api-ref/cts_api_0323.html b/docs/cts/api-ref/cts_api_0323.html new file mode 100644 index 00000000..5fe827fe --- /dev/null +++ b/docs/cts/api-ref/cts_api_0323.html @@ -0,0 +1,472 @@ + + +

    Querying a Tracker

    +

    Function

    After CTS is enabled, you can view details about the tracker on the Tracker page. The details include the name of the tracker, name of the OBS bucket for storing traces, and prefix of the trace files stored in the OBS bucket.

    +
    +

    URI

    GET /v3/{project_id}/trackers

    + +
    + + + + + + + + + + + +
    Table 1 Path parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 2 Query parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    tracker_name

    +

    No

    +

    String

    +

    Tracker name. If this parameter is not specified, all trackers of a tenant will be queried.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + +
    Table 3 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    trackers

    +

    Array of TrackerResponseBody objects

    +

    List of tracker information.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 TrackerResponseBody

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Unique tracker ID.

    +

    create_time

    +

    Long

    +

    Timestamp when the tracker was created.

    +

    lts

    +

    Lts object

    +

    Detail about trace analysis.

    +

    tracker_type

    +

    String

    +

    Tracker type. The value can be system (management tracker).

    +

    Enumerated values:

    +
    • system
    +

    domain_id

    +

    String

    +

    Account ID. For details, see Obtaining an Account ID and Project ID.

    +

    project_id

    +

    String

    +

    Project ID.

    +

    tracker_name

    +

    String

    +

    Tracker name. The default value is system.

    +

    status

    +

    String

    +

    Tracker status. The value can be enabled, disabled, or error. If the value is set to error, the detail field is required for specifying the source of the error.

    +

    Enumerated values:

    +
    • enabled
    • disabled
    +

    detail

    +

    String

    +

    This parameter is returned only when the tracker status is error. It indicates the cause of the abnormal status, and its value can be bucketPolicyError, noBucket, or arrears.

    +

    obs_info

    +

    ObsInfo object

    +

    Information about the bucket to which traces are transferred.

    +

    group_id

    +

    String

    +

    LTS log group ID.

    +

    stream_id

    +

    String

    +

    LTS log stream ID.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 5 Lts

    Parameter

    +

    Type

    +

    Description

    +

    is_lts_enabled

    +

    Boolean

    +

    Specifies whether to enable the LTS search function.

    +

    log_group_name

    +

    String

    +

    Name of the log group that CTS creates in LTS.

    +

    log_topic_name

    +

    String

    +

    Specifies the name of the log topic that CTS creates in LTS.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 6 ObsInfo

    Parameter

    +

    Type

    +

    Description

    +

    bucket_name

    +

    String

    +

    OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

    +

    file_prefix_name

    +

    String

    +

    Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

    +

    is_obs_created

    +

    Boolean

    +

    Whether the OBS bucket is automatically created by the tracker.

    +

    compress_type

    +

    String

    +

    Compression type. The value can be JSON (no compression) or GZIP (compression). The default format is GZIP.

    +

    Enumerated values:

    +
    • gzip
    • json
    +

    is_sort_by_service

    +

    Boolean

    +

    Whether to sort the path by cloud service. If this option is enabled, the cloud service name is added to the transfer file path. The default value is true.

    +
    +
    +

    Status code: 400

    + +
    + + + + + + + + + + + + + +
    Table 7 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 8 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 9 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 10 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + + + + +
    Table 11 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +
    +

    Example Request

    GET https://{endpoint}/v3/{project_id}/trackers?tracker_name=system
    +
    +

    Example Response

    Status code: 200

    +

    The request is successful.

    +
    {
    +  "trackers" : [ {
    +    "create_time" : 1589886034121,
    +    "stream_id" : "4a1ef2b6-d79a-4dc6-90f0-48151cd5491b",
    +    "group_id" : "26fa12ac-75f7-42ed-8118-ab9f2263042f",
    +    "obs_info" : {
    +      "is_obs_created" : false,
    +      "bucket_name" : "",
    +      "is_authorized_bucket" : false,
    +      "file_prefix_name" : "",
    +    },
    +    "lts" : {
    +      "log_group_name" : "CTS",
    +      "is_lts_enabled" : true,
    +      "log_topic_name" : "system-trace"
    +    },
    +    "tracker_type" : "system",
    +    "domain_id" : "2306579dc99f4c8690b14b68e734fcd9",
    +    "project_id" : "24edf66e79d04187acb99a463e610764",
    +    "tracker_name" : "system",
    +    "id" : "ebf8d1c3-762b-4ce3-b316-6b1aa32f8be3",
    +    "status" : "enabled"
    +  }
    +}
    +
    +

    Status Code

    +
    + + + + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    The request is successful.

    +

    400

    +

    The server failed to process the request.

    +

    401

    +

    The request is rejected due to authentication failure.

    +

    403

    +

    The server understood the request but refused to authorize it.

    +

    500

    +

    Failed to complete the request because of an internal service error.

    +

    503

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    +
    +
    +
    +

    Error Code

    For details, see Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/cts/api-ref/cts_api_0324.html b/docs/cts/api-ref/cts_api_0324.html new file mode 100644 index 00000000..202bdd49 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0324.html @@ -0,0 +1,277 @@ + + +

    Deleting a Tracker

    +

    Function

    This API is used to delete a tracker. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can still view those traces.

    +
    +

    URI

    DELETE /v3/{project_id}/trackers

    + +
    + + + + + + + + + + + +
    Table 1 Path parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 2 Query parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    tracker_name

    +

    No

    +

    String

    +

    Tracker name. If this parameter is not specified, all trackers of the current tenant account will be deleted.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 400

    + +
    + + + + + + + + + + + + + +
    Table 3 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 4 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 5 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 404

    + +
    + + + + + + + + + + + + + +
    Table 6 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 7 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + + + + +
    Table 8 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +
    +

    Example Request

    DELETE https://{endpoint}/v3/{project_id}/trackers?tracker_name=system
    +
    +

    Example Response

    None

    +
    +

    Status Code

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    204

    +

    The deletion is successful.

    +

    400

    +

    The server failed to process the request.

    +

    401

    +

    The request is rejected due to authentication failure.

    +

    403

    +

    The server understood the request but refused to authorize it.

    +

    404

    +

    The server failed to find the requested resource or some trackers failed to be deleted.

    +

    500

    +

    The request failed to be executed or some trackers failed to be deleted.

    +

    503

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    +
    +
    +
    +

    Error Code

    For details, see Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/cts/api-ref/cts_api_0330.html b/docs/cts/api-ref/cts_api_0330.html new file mode 100644 index 00000000..e1c3c608 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0330.html @@ -0,0 +1,16 @@ + + +

    Other APIs

    +

    +
    + + diff --git a/docs/cts/api-ref/cts_api_0331.html b/docs/cts/api-ref/cts_api_0331.html new file mode 100644 index 00000000..508032c9 --- /dev/null +++ b/docs/cts/api-ref/cts_api_0331.html @@ -0,0 +1,322 @@ + + +

    Querying Tenant Quota Information

    +

    Function

    This API is used to querying tenant quota Information.

    +
    +

    URI

    GET /v3/{project_id}/quotas

    + +
    + + + + + + + + + + + +
    Table 1 Path parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details, see Obtaining an Account ID and Project ID.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + +
    Table 2 Response body parameter

    Parameter

    +

    Type

    +

    Description

    +

    resources

    +

    Array of Quota objects

    +

    List of tracker information.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 3 Quota

    Parameter

    +

    Type

    +

    Description

    +

    type

    +

    String

    +

    Quota resource type.

    +

    used

    +

    Long

    +

    Number of used resources.

    +

    quota

    +

    Long

    +

    Total number of resources.

    +
    +
    +

    Status code: 400

    + +
    + + + + + + + + + + + + + +
    Table 4 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 401

    + +
    + + + + + + + + + + + + + +
    Table 5 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 403

    + +
    + + + + + + + + + + + + + +
    Table 6 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 404

    + +
    + + + + + + + + + + + + + +
    Table 7 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 500

    + +
    + + + + + + + + + + + + + +
    Table 8 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +

    Status code: 503

    + +
    + + + + + + + + + + + + + +
    Table 9 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    error_code

    +

    String

    +

    Error code. Format: CTS.XXX.

    +

    error_msg

    +

    String

    +

    Error message.

    +
    +
    +
    +

    Example Request

    GET https://{endpoint}/v3/{project_id}/quotas
    +
    +

    Example Response

    Status code: 200

    +

    The request is successful.

    +
    {
    +    "resources": [
    +        {
    +            "quota": 1,
    +            "used": 1,
    +            "type": "system_tracker"
    +        },
    +        {
    +            "quota": 100,
    +            "used": 2,
    +            "type": "smn_notification"
    +        }
    +    ]
    +}
    +
    +

    Status Code

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    The request is successful.

    +

    400

    +

    The server failed to process the request.

    +

    401

    +

    The request is rejected due to authentication failure.

    +

    403

    +

    The server understood the request but refused to authorize it.

    +

    404

    +

    The requested resource does not exist.

    +

    500

    +

    Failed to complete the request because of an internal service error.

    +

    503

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    +
    +
    +
    +

    Error Code

    For details, see Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/cts/api-ref/cts_api_0903.html b/docs/cts/api-ref/cts_api_0903.html new file mode 100644 index 00000000..6ae66e9f --- /dev/null +++ b/docs/cts/api-ref/cts_api_0903.html @@ -0,0 +1,552 @@ + + +

    Querying Traces (v2.0)

    +

    Function

    This API is used to query records of operations on resources in the last seven days.

    +
    +

    URI

    GET /v2.0/{project_id}/{tracker_name}/trace

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

    +

    tracker_name

    +

    Yes

    +

    String

    +

    Tracker name. Currently, only one tracker is allowed for each tenant. The tracker name is system.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Query parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    service_type

    +

    No

    +

    String

    +

    Type of a cloud service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its name abbreviation.

    +

    user

    +

    No

    +

    String

    +

    Name of the user whose traces are to be queried.

    +

    from

    +

    No

    +

    Long

    +

    UTC millisecond timestamp of the query start time. The value contains 13 digits and the default value is the timestamp of the last hour. Traces generated after the specified timestamp will be queried. The parameters from and to should be used together.

    +

    limit

    +

    No

    +

    Integer

    +

    Number of traces to query. The default value is 10 and the maximum value is 200.

    +

    next

    +

    No

    +

    String

    +

    This parameter is used to query traces generated earlier than its specified value. The value can be that of marker in the response. next can be used with from and to. Traces generated in the overlap of the two time ranges specified respectively by next and by from and to will be returned.

    +

    resource_id

    +

    No

    +

    String

    +

    ID of a cloud resource whose traces are to be queried.

    +

    resource_name

    +

    No

    +

    String

    +

    Name of a resource whose traces are to be queried. The value can contain uppercase letters.

    +

    resource_type

    +

    No

    +

    String

    +

    Type of a resource whose traces are to be queried.

    +

    to

    +

    No

    +

    Long

    +

    UTC millisecond timestamp of the query end time. The value contains 13 digits and the default value is the timestamp of the current time. Traces generated before the specified timestamp will be queried. The parameters to and from should be used together.

    +

    trace_id

    +

    No

    +

    String

    +

    Trace ID. If this parameter is specified, other query criteria will not take effect.

    +

    trace_name

    +

    No

    +

    String

    +

    Trace name. The value can contain uppercase letters.

    +

    trace_rating

    +

    No

    +

    String

    +

    Trace status. The value can be normal, warning, or incident.

    +
    +
    +
    +

    Request Parameters

    None

    +
    +

    Response Parameters

    Status code: 200

    + +
    + + + + + + + + + + + + + +
    Table 3 Response body parameters

    Parameter

    +

    Type

    +

    Description

    +

    traces

    +

    Array of Traces objects

    +

    List of returned traces.

    +

    meta_data

    +

    MetaData object

    +

    Number of returned traces and the marker.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 4 Traces

    Parameter

    +

    Type

    +

    Description

    +

    resource_id

    +

    String

    +

    ID of a cloud resource on which the recorded operation was performed.

    +

    trace_name

    +

    String

    +

    Trace name. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.). It must start with a letter.

    +

    trace_rating

    +

    String

    +

    Trace status. The value can be normal, warning, or incident.

    +

    Value:

    +
    • normal
    • warning
    • incident
    +

    trace_type

    +

    String

    +

    Trace source. The value can be ApiCall, ConsoleAction, or SystemAction.

    +

    request

    +

    String

    +

    Request of an operation on resources.

    +

    response

    +

    String

    +

    Response to a user request, that is, the returned information for an operation on resources.

    +

    code

    +

    String

    +

    HTTP status code returned by the associated API.

    +

    api_version

    +

    String

    +

    Version of the API called in a trace.

    +

    message

    +

    String

    +

    Remarks added by other cloud services to a trace.

    +

    record_time

    +

    Long

    +

    Timestamp when a trace was recorded by CTS.

    +

    trace_id

    +

    String

    +

    Trace ID. The value is the UUID generated by the system.

    +

    time

    +

    Long

    +

    Timestamp when a trace was generated.

    +

    user

    +

    UserInfo object

    +

    Information of the user who performed the operation that triggered the trace.

    +

    service_type

    +

    String

    +

    Type of a cloud service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in Cloud Trace Service User Guide. You can click the document link of each cloud service to view its name abbreviation.

    +

    resource_type

    +

    String

    +

    Type of the resource on which the operation was performed.

    +

    source_ip

    +

    String

    +

    IP address of the tenant who performed the operation that triggered the trace.

    +

    resource_name

    +

    String

    +

    Name of a resource on which the recorded operation was performed.

    +

    request_id

    +

    String

    +

    Request ID.

    +

    location_info

    +

    String

    +

    Additional information required for fault locating after a request error.

    +

    endpoint

    +

    String

    +

    Endpoint in the details page URL of the cloud resource on which the recorded operation was performed.

    +

    resource_url

    +

    String

    +

    Details page URL (excluding the endpoint) of the cloud resource on which the recorded operation was performed.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + +
    Table 5 UserInfo

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Account ID. For details about how to obtain an account ID, see Obtaining an Account ID.

    +

    name

    +

    String

    +

    Account name.

    +

    domain

    +

    BaseUser object

    +

    Domain information of the user who performed the operation generating the trace.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 6 BaseUser

    Parameter

    +

    Type

    +

    Description

    +

    id

    +

    String

    +

    Account ID. For details about how to obtain an account ID, see Obtaining an Account ID.

    +

    name

    +

    String

    +

    Account name.

    +
    +
    + +
    + + + + + + + + + + + + + +
    Table 7 MetaData

    Parameter

    +

    Type

    +

    Description

    +

    count

    +

    Integer

    +

    Number of returned traces.

    +

    marker

    +

    String

    +

    ID of the last trace in the returned trace list. The value of this parameter can be used as the value of next. If the value of marker is null, all traces have been returned under the specified query criteria.

    +
    +
    +
    +

    Example Request

    GET https://{endpoint}/v2.0/{project_id}/{tracker_name}/trace?limit=11&to=1479095278000&from=1478490478000&trace_name=createTracker&resource_type=tracker&service_type=CTS
    +
    +

    Example Response

    Status code: 200

    +

    The request is successful.

    +
    {
    +  "meta_data" : {
    +    "count" : 2,
    +    "marker" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
    +  },
    +  "traces" : [ {
    +    "time" : 1472148708232,
    +    "user" : {
    +      "name" : "xxx",
    +      "domain" : {
    +        "name" : "xxx",
    +        "id" : "ded649d814464428ba89d04d7955c93e"
    +      }
    +    },
    +    "response" : {
    +      "code" : "VPC.0514",
    +      "message" : "Update port fail."
    +    },
    +    "code" : 200,
    +    "service_type" : "VPC",
    +    "resource_type" : "eip",
    +    "resource_name" : "192.144.163.1",
    +    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
    +    "trace_name" : "deleteEip",
    +    "trace_rating" : "warning",
    +    "trace_type" : "ConsoleAction",
    +    "api_version" : "2.0",
    +    "record_time" : 1481066128032,
    +    "trace_id" : "e001ccb9-bc09-11e6-b00b-4b2a61338db6"
    +  }, {
    +    "time" : 1472148708232,
    +    "user" : {
    +      "name" : "xxx",
    +      "domain" : {
    +        "name" : "xxx",
    +        "id" : "ded649d814464428ba89d04d7955c93e"
    +      }
    +    },
    +    "response" : {
    +      "code" : "VPC.0514",
    +      "message" : "Update port fail."
    +    },
    +    "code" : 200,
    +    "service_type" : "VPC",
    +    "resource_type" : "eip",
    +    "resource_name" : "192.144.163.1",
    +    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
    +    "trace_name" : "deleteEip",
    +    "trace_rating" : "warning",
    +    "trace_type" : "ConsoleAction",
    +    "api_version" : "2.0",
    +    "record_time" : 1481066128032,
    +    "trace_id" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
    +  } ]
    +}
    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    The request is successful.

    +

    400

    +

    The request is not completed due to abnormal query parameters.

    +

    401

    +

    The request is rejected due to authentication failure.

    +

    403

    +

    The server understood the request but refused to authorize it.

    +

    404

    +

    The requested traces do not exist.

    +

    500

    +

    Failed to complete the request because of an internal service error.

    +

    503

    +

    The requested service is invalid. The client should not repeat the request without modifications.

    +
    +
    +
    +

    Error Codes

    For details, see Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/cts/api-ref/cts_api_632.html b/docs/cts/api-ref/cts_api_632.html new file mode 100644 index 00000000..17e848cd --- /dev/null +++ b/docs/cts/api-ref/cts_api_632.html @@ -0,0 +1,265 @@ + + +

    Modifying a Tracker

    +

    Function

    This API is used to modify configurations of a tracker, including trace transfer to OBS buckets, key event notifications, trace file encryption, trace search and analysis using LTS, trace file integrity check, and tracker enablement or disablement. Modifying tracker parameters does not affect the existing operation records. After the modification is complete, the new rules are immediately applied to operation recording.

    +
    +

    URI

    PUT /v1.0/{project_id}/tracker/{tracker_name}

    + +
    + + + + + + + + + + + + + + + + +
    Table 1 Path parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    project_id

    +

    Yes

    +

    String

    +

    Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

    +

    tracker_name

    +

    Yes

    +

    String

    +

    Tracker name. Currently, only one tracker is allowed for each tenant. The tracker name is system.

    +
    +
    +
    +

    Request Parameters

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Table 2 Request body parameters

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    bucket_name

    +

    No

    +

    String

    +

    OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

    +

    file_prefix_name

    +

    No

    +

    String

    +

    Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

    +

    status

    +

    No

    +

    String

    +

    Tracker status. The value can be enabled or disabled. If you change the value to disabled, the tracker stops recording traces.

    +

    Value:

    +
    • enabled
    • disabled
    +

    is_obs_created

    +

    No

    +

    Boolean

    +

    Whether an OBS bucket is created. If the value is true, an OBS bucket will be created to store trace files. If the value is false, trace files will be stored in an existing OBS bucket. A bucket name contains 3 to 64 characters, including digits, letters, and a hyphen (-) or a period (.).

    +

    is_support_trace_files_encryption

    +

    No

    +

    Boolean

    +

    Whether trace files are encrypted during transfer to an OBS bucket. This parameter must be used with kms_id.

    +

    kms_id

    +

    No

    +

    String

    +

    Key ID used for transferring and encrypting trace files. This key ID is obtained from Key Management Service (KMS). This parameter is mandatory when is_support_trace_files_encryption is set to true.

    +

    lts

    +

    No

    +

    Lts object

    +

    Trace analysis.

    +

    log_file_validate

    +

    No

    +

    LogFileValidate object

    +

    File verification.

    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
    Table 3 Lts

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    is_lts_enabled

    +

    Yes

    +

    Boolean

    +

    Whether the LTS search function is enabled.

    +

    log_group_name

    +

    Yes

    +

    String

    +

    Name of the log group that CTS creates in LTS.

    +

    log_topic_name

    +

    Yes

    +

    String

    +

    Name of the log topic that CTS creates in LTS.

    +
    +
    + +
    + + + + + + + + + + + +
    Table 4 LogFileValidate

    Parameter

    +

    Mandatory

    +

    Type

    +

    Description

    +

    is_support_validate

    +

    Yes

    +

    Boolean

    +

    Whether to enable trace file verification.

    +
    +
    +
    +

    Response Parameters

    None

    +
    +

    Example Request

    PUT https://{endpoint}/v1.0/{project_id}/tracker/system
    +
    +{ 
    + "bucket_name" : "my_created_bucket", 
    + "file_prefix_name" : "some_folder", 
    + "is_obs_created": true,  
    + "is_support_trace_files_encryption": true, 
    + "kms_id": "13a4207c-7abe-4b68-8510-16b84c3b5504",
    + "lts": {
    +   "is_lts_enabled": true,
    +   "log_group_name": "CTS",
    +   "log_topic_name": 'system-trace'
    + },
    + "log_file_validate": {
    + "is_support_validate": true
    + }, 
    + "status" : "disabled"   
    +}
    +
    +

    Example Response

    None

    +
    +

    Status Codes

    +
    + + + + + + + + + + + + + + + + + + + + + + +

    Status Code

    +

    Description

    +

    200

    +

    The request is successful.

    +

    400

    +

    The server failed to process the request.

    +

    401

    +

    The request is rejected due to authentication failure.

    +

    403

    +

    The server understood the request but refused to authorize it.

    +

    404

    +

    The server failed to find the requested resource.

    +

    500

    +

    The request failed to be executed or some trackers failed to be deleted.

    +
    +
    +
    +

    Error Codes

    For details, see Error Codes.

    +
    +
    +
    + +
    + diff --git a/docs/cts/api-ref/en-us_image_0000001819970050.png b/docs/cts/api-ref/en-us_image_0000001819970050.png new file mode 100644 index 00000000..4a421d8a Binary files /dev/null and b/docs/cts/api-ref/en-us_image_0000001819970050.png differ diff --git a/docs/cts/api-ref/en-us_image_0000001866649757.png b/docs/cts/api-ref/en-us_image_0000001866649757.png new file mode 100644 index 00000000..d4a37a97 Binary files /dev/null and b/docs/cts/api-ref/en-us_image_0000001866649757.png differ diff --git a/docs/cts/api-ref/en-us_topic_0168602178.html b/docs/cts/api-ref/en-us_topic_0168602178.html deleted file mode 100644 index d6dad6e4..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602178.html +++ /dev/null @@ -1,17 +0,0 @@ - - -

    Trace Management

    -
    - - diff --git a/docs/cts/api-ref/en-us_topic_0168602179.html b/docs/cts/api-ref/en-us_topic_0168602179.html deleted file mode 100644 index f1f45766..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602179.html +++ /dev/null @@ -1,8 +0,0 @@ - - -

    API Usage Guidelines

    -

    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://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.

    -

    Cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted using JSON messages, with the media type represented by Application/json.

    -

    For details about how to use APIs, see API Usage Guidelines.

    -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602223.html b/docs/cts/api-ref/en-us_topic_0168602223.html deleted file mode 100644 index ef722de4..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602223.html +++ /dev/null @@ -1,110 +0,0 @@ - - -

    Deleting a Tracker

    -

    Function

    This API is used to delete a tracker. Deleting a tracker has no impact on the operation records that have been generated. When you enable CTS again, you can still view those records.

    -
    -

    URI

    DELETE /v1.0/{project_id}/tracker?tracker_name={tracker_name}

    -
    The URI parameters are described in Table1 Parameters in the URI. -
    - - - - - - - - - - - - - - - - -
    Table 1 Parameters in the URI

    Parameter

    -

    Mandatory

    -

    Type

    -

    Description

    -

    project_id

    -

    Yes

    -

    String

    -

    Project ID

    -

    tracker_name

    -

    No

    -

    String

    -

    Tracker name.

    -

    If this parameter is not specified, all trackers will be deleted.

    -
    -
    -
    -
    -

    Request

    • Parameter description

      None

      -
    -
    • Example request
      DELETE /v1.0/{project_id}/tracker?tracker_name=system
      -
    -
    -

    Response

    • Parameter description

      None

      -
    -
    • Example response

      None

      -
    -
    -

    Returned Value

    • Normal -
      - - - - - - - -
      Table 2 Return code for successful requests

      Returned Value

      -

      Description

      -

      204

      -

      The tracker is deleted successfully.

      -
      -
      -
    • Abnormal -
      - - - - - - - - - - - - - - - - - - - -
      Table 3 Return code for failed requests

      Returned Value

      -

      Description

      -

      400

      -

      The server failed to process the request.

      -

      404

      -

      The server failed to find the requested resource or deleting some trackers failed.

      -

      500

      -

      The request failed to be executed or some trackers failed to be deleted.

      -

      401

      -

      Your access request is rejected.

      -

      403

      -

      You are forbidden to access the requested page.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602225.html b/docs/cts/api-ref/en-us_topic_0168602225.html deleted file mode 100644 index c78e6acb..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602225.html +++ /dev/null @@ -1,491 +0,0 @@ - - -

    Querying Traces (v1.0)

    -

    Function

    This API is used to query records of operations on resources in the last seven days.

    -
    -

    URI

    GET /v1.0/{project_id}/{tracker_name}/trace{?trace_id,service_type,resource_type,resource_id,resource_name,trace_name,trace_rating,user,limit,from,to,next}

    -
    The URI parameters are described in Table1 Parameters in the URI. -
    - - - - - - - - - - - - - - - - -
    Table 1 Parameters in the URI

    Parameter

    -

    Mandatory

    -

    Type

    -

    Description

    -

    project_id

    -

    Yes

    -

    String

    -

    Project ID

    -

    tracker_name

    -

    Yes

    -

    String

    -

    Tracker name. Currently, only one tracker is allowed for each tenant. The tracker name is system.

    -
    -
    -
    -
    -

    Request

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Parameters in the request

      Parameter

      -

      Mandatory

      -

      Type

      -

      Description

      -

      service_type

      -

      No

      -

      String

      -

      Type of a service whose traces are to be queried. The value must be the abbreviation of a cloud service that has been interconnected with CTS. It is a word composed of uppercase letters. For the interconnected cloud services, see section "Supported Services" in the Cloud Trace Service User Guide.

      -

      resource_type

      -

      No

      -

      String

      -

      Type of a resource whose traces are to be queried. The value can contain 1 to 64 characters, including letters, numbers, hyphens (-), underscores (_), and periods (.). It must start with a letter. For the interconnected cloud services, see section "Supported Services" in the Cloud Trace Service User Guide.

      -

      resource_id

      -

      No

      -

      String

      -

      ID of a resource whose traces are to be queried

      -

      resource_name

      -

      No

      -

      String

      -

      Name of a resource whose traces are to be queried

      -

      trace_name

      -

      No

      -

      String

      -

      Trace name. It indicates the operation recorded by this trace. The value can contain 1 to 64 characters, including letters, numbers, hyphens (-), underscores (_), and periods (.). It must start with a letter.

      -

      limit

      -

      No

      -

      String

      -

      Number of traces returned in the trace list. The default value is 50 and the maximum value is 200.

      -

      next

      -

      No

      -

      String

      -

      This parameter is used to query traces generated earlier than its specified value. The value can be that of marker in Table 5.

      -

      next can be used with the parameters from and to.

      -

      Traces generated in the overlap of the two time ranges specified respectively by next and by from and to will be returned.

      -

      from

      -

      No

      -

      String

      -

      UTC timestamp of the start time of the query time range. The value is in milliseconds and contains 13 numbers. Traces generated on the specified timestamp are not returned. The parameters from and to should be used together.

      -

      to

      -

      No

      -

      String

      -

      UTC timestamp of the end time of the query time range. The value is in milliseconds and contains 13 numbers. Traces generated on the specified timestamp are not returned. The parameters to and from should be used together.

      -

      trace_id

      -

      No

      -

      String

      -

      ID of a trace.

      -

      If this parameter is specified, other query criteria will not take effect.

      -

      trace_rating

      -

      No

      -

      String

      -

      Status of a trace. The value can be normal, warning, or incident.

      -

      user

      -

      No

      -

      String

      -

      Name of the user whose traces are to be queried

      -
      NOTE:

      The username is case sensitive.

      -
      -
      -
      -
    -
    • Example request
      GET /v1.0/{project_id}/{tracker_name}/trace?limit=11&to=1479095278000&from=1478490478000&trace_name=createTracker&resource_type=tracker&service_type=CTS
      -
    -
    -

    Response

    • Parameter description -
      - - - - - - - - - - - - - -
      Table 3 Parameters in the response

      Parameter

      -

      Type

      -

      Description

      -

      traces

      -

      array

      -

      List of returned traces

      -

      meta_data

      -

      Structure

      -

      Extended parameter. The value can be count (number of traces in the response) or marker (ID of the last trace in the trace list).

      -
      -
      -
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 4 Data structure of the traces parameter

      Parameter

      -

      Type

      -

      Description

      -

      resource_id

      -

      String

      -

      ID of a resource on which an operation was performed

      -

      trace_name

      -

      String

      -

      Name of a trace. The value will contain 1 to 64 characters, including letters, numbers, hyphens (-), underscores (_), and periods (.). It will also start with a letter.

      -

      trace_rating

      -

      String

      -

      Status of a trace. The value can be normal, warning, or incident.

      -

      trace_type

      -

      String

      -

      Type of a source trace. The value can be ApiCall, ConsoleAction, or SystemAction.

      -

      request

      -

      String

      -

      Request of an operation on resources

      -

      response

      -

      String

      -

      Response to a user request, that is, the returned information for an operation on resources.

      -

      code

      -

      String

      -

      HTTP status code returned by the associated API

      -

      api_version

      -

      String

      -

      Version of the API

      -

      message

      -

      String

      -

      Remarks added by other cloud services to a trace

      -

      record_time

      -

      Long

      -

      Timestamp when an operation was recorded by CTS

      -

      trace_id

      -

      String

      -

      ID of a trace. The value is the UUID generated by the system.

      -

      time

      -

      Long

      -

      Timestamp when an operation occurred

      -

      user

      -

      String

      -

      Information of the user who performed the operation that triggered the trace.

      -

      service_type

      -

      String

      -

      Type of a service whose traces were queried. The value is the abbreviation of a cloud service that has been interconnected with CTS. It is a word composed of uppercase letters.

      -

      resource_type

      -

      String

      -

      Type of a resource whose traces were queried. The value will contain 1 to 64 characters, including letters, numbers, hyphens (-), underscores (_), and periods (.). It will also start with a letter.

      -

      source_ip

      -

      String

      -

      IP address of the user who performed the operation that triggered the trace.

      -

      resource_name

      -

      String

      -

      Name of a resource whose traces were queried

      -

      request_id

      -

      String

      -

      Request ID

      -

      location_info

      -

      String

      -

      Additional information required for fault locating after a request error

      -

      endpoint

      -

      String

      -

      Endpoint in the detail page URL of the cloud resource on which the recorded operation was performed

      -

      resource_url

      -

      String

      -

      Detail page URL (excluding the endpoint) of the cloud resource on which the recorded operation was performed

      -
      -
      -
      -
      -
      - - - - - - - - - - - - - -
      Table 5 Data structure of the meta_data parameter

      Parameter

      -

      Type

      -

      Description

      -

      count

      -

      Integer

      -

      Number of traces returned in the trace list

      -

      marker

      -

      String

      -

      ID of the last trace in the trace list. The value of this parameter can be used as the next value. If the value of marker is null, all traces have been returned.

      -
      -
      -
      -
    -
    • Example response
      {
      -  "traces" : [ {
      -    "time" : 1472148708232,
      -    "user" : "{\"name\":\"xxx\",\"domain\":{\"name\":\"xxx\",\"id\":\"ded649d814464428ba89d04d7955c93e\"},\"assumedBy\":{\"user\":{\"name\":\"bss_bm_admin\",\"id\":\"c5140af45b5d4b399dea8f900f1dcf1b\",\"domain\":{\"name\":\"op_service\",\"id\":\"71ce673175024d0495664e525e52bac0\"}}}}",
      -    "response" : "{\"code\":\"VPC.0514\",\"message\":\"Update port fail.\"}",
      -    "code" : 200,
      -    "service_type" : "VPC",
      -    "resource_type" : "eip",
      -    "resource_name" : "192.144.163.1",
      -    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
      -    "trace_name" : "deleteEip",
      -    "trace_rating" : "warning",
      -    "trace_type" : "ConsoleAction",
      -    "api_version" : "2.0",
      -    "record_time" : 1481066128032,
      -    "trace_id" : "e001ccb9-bc09-11e6-b00b-4b2a61338db6"
      -    "request_id" : "a0001c1b9-bctt-2136-c12b-4b2a611116"
      -    "location_info" : "resource has been deleted"
      -    "endpoint" : "https://*****/vpc?agencyId=***&region=***&locale=zh-cn#"
      -    "resource_url" : "/vpc/vpcmanager/vpcs?vpcid=*****"
      -  }, {
      -    "time" : 1472148708232,
      -    "user" : "{\"name\":\"xxx\",\"domain\":{\"name\":\"xxx\",\"id\":\"ded649d814464428ba89d04d7955c93e\"},\"assumedBy\":{\"user\":{\"name\":\"bss_bm_admin\",\"id\":\"c5140af45b5d4b399dea8f900f1dcf1b\",\"domain\":{\"name\":\"op_service\",\"id\":\"71ce673175024d0495664e525e52bac0\"}}}}",
      -    "response" : "{\"code\":\"VPC.0514\",\"message\":\"Update port fail.\"}",
      -    "code" : 200,
      -    "service_type" : "VPC",
      -    "resource_type" : "eip",
      -    "resource_name" : "192.144.163.1",
      -    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc",
      -    "trace_name" : "deleteEip",
      -    "trace_rating" : "warning",
      -    "trace_type" : "ConsoleAction",
      -    "api_version" : "2.0",
      -    "record_time" : 1481066128032,
      -    "trace_id" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
      -    "request_id" : "a0001c1b9-bctt-2136-c12b-4b2a611116"
      -    "location_info" : "resource has been deleted"
      -    "endpoint" : "https://*****/vpc?agencyId=***&region=***&locale=zh-cn#"
      -    "resource_url" : "/vpc/vpcmanager/vpcs?vpcid=*****"
      -  } ],
      -  "meta_data" : {
      -    "count" : 2,
      -    "marker" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8"
      -  }
      -}
      -
    -
    -

    Returned Value

    • Normal -
      - - - - - - - -
      Table 6 Return code for successful requests

      Returned Value

      -

      Description

      -

      200

      -

      The request is successful and the query result is returned.

      -
      -
      -
    • Abnormal -
      - - - - - - - - - - - - - - - - - - - -
      Table 7 Return code for failed requests

      Returned Value

      -

      Description

      -

      400

      -

      The query parameters are abnormal.

      -

      500

      -

      Failed to complete the request because of an internal service error.

      -

      401

      -

      Your access request is rejected.

      -

      403

      -

      You are forbidden to access the requested page.

      -

      404

      -

      The requested trace does not exist.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602227.html b/docs/cts/api-ref/en-us_topic_0168602227.html deleted file mode 100644 index 3e470902..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602227.html +++ /dev/null @@ -1,262 +0,0 @@ - - -

    Modifying a Tracker

    -

    Function

    CTS allows you to modify configuration parameters of a created tracker, including parameters related to Transfer to OBS and Trace Analysis. You can also change tracker status by clicking Enable or Disable in the Operation column. Modifying tracker parameters does not affect the existing operation records. After the modification is complete, the system will immediately start recording operations based on the new rule.

    -
    -

    URI

    PUT /v1.0/{project_id}/tracker/{tracker_name}

    -
    The URI parameters are described in Table1 Parameters in the URI. -
    - - - - - - - - - - - - - - - - -
    Table 1 Parameters in the URI

    Parameter

    -

    Mandatory

    -

    Type

    -

    Description

    -

    project_id

    -

    Yes

    -

    String

    -

    Project ID

    -

    tracker_name

    -

    Yes

    -

    String

    -

    Tracker name. Currently, only one tracker is allowed for each tenant. The tracker name is system.

    -
    -
    -
    -
    -

    Request

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Parameters in the request

      Parameter

      -

      Sub-Parameter

      -

      Mandatory

      -

      Type

      -

      Description

      -

      bucket_name

      -

      N/A

      -

      Yes

      -

      String

      -

      OBS bucket name. It starts with a number or lowercase letter and contains 3 to 63 characters, including lowercase letters, numbers, hyphens (-), and periods (.)

      -

      file_prefix_name

      -

      N/A

      -

      No

      -

      String

      -

      Prefix of trace files that need to be stored in OBS buckets. The value contains 0 to 64 characters, including letters, numbers, hyphens (-), underscores (_), and periods (.)

      -

      status

      -

      N/A

      -

      No

      -

      String

      -

      Status of a tracker. The value can be enabled or disabled. If you change the value to disabled, the tracker stops recording traces.

      -

      lts

      -

      is_lts_enabled

      -

      Yes

      -

      Boolean

      -

      Whether trace analysis is enabled.

      -
      NOTE:

      When you enable trace analysis, a log group named CTS and a log stream named system-trace are created in LTS.

      -
      -
      -
      -
    -
    • Example request
      PUT /v1.0/{project_id}/tracker/system   
      -{
      -	"bucket_name" : "my_created_bucket",
      -	"file_prefix_name" : "some_folder",
      -	"lts" : {
      -		"is_lts_enabled" : true,
      -	},
      -	"status" : "disabled"
      -}
      -
    -
    -

    Response

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 3 Parameters in the response

      Parameter

      -

      Sub-Parameter

      -

      Type

      -

      Description

      -

      tracker_name

      -

      N/A

      -

      String

      -

      Tracker name. It is set as system by default.

      -

      bucket_name

      -

      N/A

      -

      String

      -

      OBS bucket name. It starts with a number or lowercase letter and contains 3 to 63 characters, including lowercase letters, numbers, hyphens (-), and periods (.)

      -

      file_prefix_name

      -

      N/A

      -

      String

      -

      Prefix of trace files that need to be stored in OBS buckets.

      -

      status

      -

      N/A

      -

      String

      -

      Status of a tracker. The value can be enabled or disabled.

      -

      lts

      -

      is_lts_enabled

      -

      Boolean

      -

      Whether trace analysis is enabled.

      -

      log_group_name

      -

      String

      -

      Name of the LTS log group.

      -

      log_topic_name

      -

      String

      -

      Name of the LTS log stream.

      -
      -
      -
    -
    • Example response
    -
    -
    {
    -	"bucket_name" : "my_created_bucket",
    -	"tracker_name" : "system",
    -	"file_prefix_name" : "some_folder",
    -	"lts" : {
    -		"is_lts_enabled" : true,
    -		"log_group_name" : "CTS",
    -		"log_topic_name" : "system-trace"
    -	},
    -	"status" : "disabled"    
    -        "bucket_name" : "1214",    
    -        "tracker_name" : "system",    
    -}
    -

    Returned Value

    • Normal -
      - - - - - - - -
      Table 4 Return code for successful requests

      Returned Value

      -

      Description

      -

      200

      -

      The request is successfully processed.

      -
      -
      -
    • Abnormal -
      - - - - - - - - - - - - - - - - - - - -
      Table 5 Return code for failed requests

      Returned Value

      -

      Description

      -

      400

      -

      The server failed to process the request.

      -

      404

      -

      The server failed to find the requested resource.

      -

      500

      -

      Failed to complete the request because of an internal service error.

      -

      401

      -

      Your access request is rejected.

      -

      403

      -

      You are forbidden to access the requested page.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602228.html b/docs/cts/api-ref/en-us_topic_0168602228.html deleted file mode 100644 index 1d0e1dac..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602228.html +++ /dev/null @@ -1,150 +0,0 @@ - - -

    Change History

    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Released On

    -

    Description

    -

    2022-10-30

    -
    • Added description of error codes CTS.0201, CTS.0400, CTS.0401, CTS.0402, CTS.0403, CTS.0404, CTS.0407, CTS.0410 and CTS.0411 in Error Code Description.
    -

    2022-07-21

    -

    This release incorporates the following changes:

    -

    Added Creating a Key Event Notification.

    -

    Added Modifying a Key Event Notification.

    -

    Added Deleting a Key Event Notification.

    -

    Added Querying a Key Event Notification.

    -

    2021-02-25

    -

    This release incorporates the following changes:

    - -

    2020-04-30

    -

    This release incorporates the following changes:

    -

    Added descriptions of the parameters domain_id, is_support_trace_files_encryption, create_time, and message to the Parameter in the response table in Creating a Tracker, Modifying a Tracker, and Querying a Tracker. Deleted SMN-related content.

    -

    2018-09-30

    -

    This release incorporates the following changes:

    -

    Added section API Version Management to support the queries of API versions.

    -

    2018-05-10

    -

    This release incorporates the following changes:

    -

    Accepted in OTC 3.1.

    -

    2018-04-08

    -

    This release incorporates the following changes:

    -

    Optimized descriptions of the parameter tracker_name in sections Tracker Management and Trace Management.

    -

    2018-03-15

    -

    This release incorporates the following changes:

    -

    Optimized the parameter description in sections Creating a Tracker, Modifying a Tracker, and Querying a Tracker.

    -

    2018-02-25

    -

    This release incorporates the following changes:

    -

    In sections Creating a Tracker, Modifying a Tracker, and Querying a Tracker, added the parameters related to the new feature in Key Event Notifications, which is notifications of login activities of specified users.

    -

    2018-01-30

    -

    This release incorporates the following changes:

    - -

    2017-12-30

    -

    This release incorporates the following changes:

    -

    Added descriptions of notifications of native OpenStack API calls in sections Creating a Tracker, Modifying a Tracker, and Querying a Tracker.

    -

    2017-11-30

    -

    This release incorporates the following changes:

    -

    Added parameters in sections Creating a Tracker and Modifying a Tracker. These parameters can be configured to enable notifications of user login activities.

    -

    2017-10-30

    -

    This release incorporates the following changes:

    -

    Added parameters in sections Creating a Tracker and Modifying a Tracker. These parameters can be configured to support the search of management traces using LTS.

    -

    2017-09-30

    -

    This release incorporates the following changes:

    -
    • Added the description of the Key Event Notification API.
    • Added the OBS error information to section Error Codes.
    -

    2017-08-30

    -

    This release incorporates the following changes:

    -
    • Added the description of Key Event Notification.
    - -

    2017-05-26

    -

    -

    This release incorporates the following changes:

    -

    In section Querying a Tracker, added the description of API responses.

    -

    2017-04-28

    -

    This release incorporates the following changes:

    -

    In section Trace Management, added the description of Querying Traces v2.0.

    -

    2017-02-27

    -

    This release incorporates the following changes:

    -
    • In section Querying a Tracker, modified the description of the return code 200.
    • Added the description of the user parameter in section "Querying Traces".
    -

    2017-02-08

    -

    This release incorporates the following changes:

    - -

    2017-02-03

    -

    This release incorporates the following changes:

    -
    • In section Creating a Tracker, added the return code 400.
    • In section Modifying a Tracker, added the naming rule of bucket_name. Added the description of tracker_name to the URI parameter description.
    • In sections Querying a Tracker and Deleting a Tracker, added the description of tracker_name to the URI parameter description. Deleted the description of parameter tracker_name from the request part in these two APIs.
    • Modified the description of the error code CTS.0023 in Error Codes.
    • Modified descriptions of the parameters trace_id, response, code, message, from, and to in the trace query API. Added descriptions of return code 400 and 404.
    -

    2017-01-20

    -

    This release incorporates the following changes:

    -

    Added the servicetype parameter to the trace query API.

    -

    2016-12-30

    -

    This issue is the first official release.

    -
    -
    -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602231.html b/docs/cts/api-ref/en-us_topic_0168602231.html deleted file mode 100644 index 5c0c05bd..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602231.html +++ /dev/null @@ -1,17 +0,0 @@ - - -

    API Version Management

    -
    - - diff --git a/docs/cts/api-ref/en-us_topic_0168602232.html b/docs/cts/api-ref/en-us_topic_0168602232.html deleted file mode 100644 index 66d195dc..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602232.html +++ /dev/null @@ -1,21 +0,0 @@ - - -

    Tracker Management

    -
    - - diff --git a/docs/cts/api-ref/en-us_topic_0168602233.html b/docs/cts/api-ref/en-us_topic_0168602233.html deleted file mode 100644 index ff745673..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602233.html +++ /dev/null @@ -1,12 +0,0 @@ - - -

    Public Parameters

    -

    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602243.html b/docs/cts/api-ref/en-us_topic_0168602243.html deleted file mode 100644 index 7cfd36ef..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602243.html +++ /dev/null @@ -1,206 +0,0 @@ - - -

    Querying a Specified API Version

    -

    Function

    This API is used to query a specified API version of CTS.

    -
    -

    URI

    GET/{api_version}

    -
    The URI parameters are described in Table 1. -
    - - - - - - - - - -
    Table 1 Parameters in the URI

    Parameter

    -

    Mandatory

    -

    Description

    -

    api_version

    -

    Yes

    -

    API version

    -
    -
    -
    -
    -

    Request

    None

    -
    -

    Response

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Parameters in the response

      Parameter

      -

      Mandatory

      -

      Type

      -

      Description

      -

      version

      -

      Yes

      -

      Array

      -

      Information of the API version.

      -

      id

      -

      Yes

      -

      String

      -

      Version ID (version number), for example, v1.

      -

      links

      -

      Yes

      -

      String

      -

      API URL

      -

      href

      -

      Yes

      -

      String

      -

      Reference address of the current API version

      -

      rel

      -

      Yes

      -

      String

      -

      Relationship between the current API version and the referenced address

      -

      version

      -

      Yes

      -

      String

      -

      If microversions are supported by the APIs of the given version, the maximum microversion supported will be displayed. If microversions are not supported, this parameter will be left blank.

      -

      status

      -

      Yes

      -

      String

      -

      Version status. The value will be one of the following:

      -

      CURRENT: The version is the primary version.

      -

      SUPPORTED: The version is an old version, but it is still supported.

      -

      DEPRECATED: The version is a deprecated version, which may be deleted later.

      -

      updated

      -

      Yes

      -

      String

      -

      Version release time, which is the Coordinated Universal time (UTC). For example, the release time of v1 is 2014-06-28T12:20:21Z.

      -

      min_version

      -

      No

      -

      String

      -

      If microversions are supported by the APIs of the given version, the minimum microversion supported will be displayed. If microversions are not supported, this parameter will be left blank.

      -
      -
      -
    • Example response
      {
      -  "version": 
      -    {
      -      "id": "v1.0",
      -      "links": [
      -        {
      -          "href": "https://x.x.x.x/v1.0/",
      -          "rel": "self"
      -        }
      -      ],
      -      "min_version": "",
      -      "status": "CURRENT",
      -      "updated": "2018-09-30T00:00:00Z",
      -      "version": ""
      -    }
      -  ]
      -}
      -
    -
    -

    Returned Value

    • Normal

      200

      -
    • Abnormal -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 3 Return code for failed requests

      Returned Value

      -

      Description

      -

      400 Bad Request

      -

      Request error.

      -

      401 Unauthorized

      -

      The authentication information is not provided or is incorrect.

      -

      403 Forbidden

      -

      The request was forbidden.

      -

      404 Not Found

      -

      The server failed to find the requested resource.

      -

      408 Request Timeout

      -

      The request timed out.

      -

      429 Too Many Requests

      -

      The number of requests exceeded the upper limit.

      -

      500 Internal Server Error

      -

      Failed to complete the request because of an internal service error.

      -

      503 Service Unavailable

      -

      The service is currently unavailable.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602247.html b/docs/cts/api-ref/en-us_topic_0168602247.html deleted file mode 100644 index 489dc3ed..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602247.html +++ /dev/null @@ -1,199 +0,0 @@ - - -

    Querying All API Versions

    -

    Function

    This API is used to query all API versions supported by Cloud Trace Service (CTS).

    -
    -

    URI

    GET /

    -
    -

    Request

    None

    -
    -

    Response

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 1 Parameters in the response

      Parameter

      -

      Mandatory

      -

      Type

      -

      Description

      -

      version

      -

      Yes

      -

      Array

      -

      List of all API versions

      -

      id

      -

      Yes

      -

      String

      -

      Version ID (version number), for example, v1.

      -

      links

      -

      Yes

      -

      String

      -

      API URL

      -

      href

      -

      Yes

      -

      String

      -

      Reference address of the current API version

      -

      rel

      -

      Yes

      -

      String

      -

      Relationship between the current API version and the referenced address

      -

      version

      -

      Yes

      -

      String

      -

      If microversions are supported by the APIs of the given version, the maximum microversion supported will be displayed. If microversions are not supported, this parameter will be left blank.

      -

      status

      -

      Yes

      -

      String

      -

      Version status. The value will be one of the following:

      -

      CURRENT: The version is the primary version.

      -

      SUPPORTED: The version is an old version, but it is still supported.

      -

      DEPRECATED: The version is a deprecated version, which may be deleted later.

      -

      updated

      -

      Yes

      -

      String

      -

      Version release time, which is the Coordinated Universal time (UTC). For example, the release time of v1 is 2014-06-28T12:20:21Z.

      -

      min_version

      -

      No

      -

      String

      -

      If microversions are supported by the APIs of the given version, the minimum microversion supported will be displayed. If microversions are not supported, this parameter will be left blank.

      -
      -
      -
    • Example response
      {
      -  "version": [
      -    {
      -      "id": "v1.0",
      -      "links": [
      -        {
      -          "href": "https://x.x.x.x/v1.0/",
      -          "rel": "self"
      -        }
      -      ],
      -      "min_version": "",
      -      "status": "CURRENT",
      -      "updated": "2018-09-30T00:00:00Z",
      -      "version": ""
      -    }
      -   {
      -      "id": "v2.0",
      -      "links": [
      -        {
      -          "href": "https://x.x.x.x/v2.0/",
      -          "rel": "self"
      -        }
      -      ],
      -      "min_version": "",
      -      "status": "SUPPORTED",
      -      "updated": "2018-09-30T00:00:00Z",
      -      "version": ""
      -    }
      -  ]
      -}
      -
    -
    -

    Returned Value

    • Normal

      200

      -
    • Abnormal -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Return code for failed requests

      Returned Value

      -

      Description

      -

      400 Bad Request

      -

      Request error.

      -

      401 Unauthorized

      -

      The authentication information is not provided or is incorrect.

      -

      403 Forbidden

      -

      The request was forbidden.

      -

      404 Not Found

      -

      The server failed to find the requested resource.

      -

      408 Request Timeout

      -

      The request timed out.

      -

      429 Too Many Requests

      -

      The number of requests exceeded the upper limit.

      -

      500 Internal Server Error

      -

      Failed to complete the request because of an internal service error.

      -

      503 Service Unavailable

      -

      The service is currently unavailable.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602251.html b/docs/cts/api-ref/en-us_topic_0168602251.html deleted file mode 100644 index 68acad05..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602251.html +++ /dev/null @@ -1,246 +0,0 @@ - - -

    Creating a Tracker

    -

    All API URLs described in this section are case-sensitive.

    -

    Function

    This API is used to create a tracker.

    -

    A tracker will be automatically created when CTS is enabled. All traces recorded by CTS are associated with the tracker. Currently, only one tracker can be created for each tenant in a region.

    -

    Traces are retained in the CTS console for seven days. For long-term storage, you can enable Object Storage Service (OBS) and deliver real-time operation records to OBS buckets.

    -
    -

    URI

    POST /v1.0/{project_id}/tracker

    -
    The URI parameters are described in Table1 Parameters in the URI. -
    - - - - - - - - - - - -
    Table 1 Parameters in the URI

    Parameter

    -

    Mandatory

    -

    Type

    -

    Description

    -

    project_id

    -

    Yes

    -

    String

    -

    Project ID.

    -
    -
    -
    -
    -

    Request

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Parameters in the request

      Parameter

      -

      Sub-Parameter

      -

      Mandatory

      -

      Type

      -

      Description

      -

      bucket_name

      -

      N/A

      -

      Yes

      -

      String

      -

      OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

      -

      file_prefix_name

      -

      N/A

      -

      No

      -

      String

      -

      Prefix of trace files that need to be stored in OBS buckets. The value can contain 0 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

      -

      lts

      -

      is_lts_enabled

      -

      No

      -

      Boolean

      -

      Whether trace analysis is enabled.

      -
      NOTE:

      When you enable trace analysis, a log group named CTS and a log stream named system-trace are created in LTS.

      -
      -
      -
      -
    -
    • Example request
      {
      -	"bucket_name" : "obs-f1da",
      -	"file_prefix_name" : "yO8Q",	
      -	"lts" : {
      -		"is_lts_enabled" : true
      -	}
      -}
      -
    -
    -

    Response

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 3 Parameters in the response

      Parameter

      -

      Sub-Parameter

      -

      Type

      -

      Description

      -

      bucket_name

      -

      N/A

      -

      String

      -

      OBS bucket name. The value contains 3 to 63 characters and must start with a digit or lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

      -

      file_prefix_name

      -

      N/A

      -

      String

      -

      Prefix of trace files that need to be stored in OBS buckets.

      -

      status

      -

      N/A

      -

      String

      -

      Status of a tracker. The value is enabled.

      -

      tracker_name

      -

      N/A

      -

      String

      -

      Tracker name. The default value is system.

      -

      lts

      -

      -

      -

      is_lts_enabled

      -

      Boolean

      -

      Whether trace analysis is enabled.

      -

      log_group_name

      -

      String

      -

      Name of the Log Tank Service (LTS) log group.

      -

      log_topic_name

      -

      String

      -

      Name of the LTS log stream.

      -
      -
      -
    -
    • Example response
      {
      -	"bucket_name" : "obs-f1da",
      -	"file_prefix_name" : "yO8Q",	
      -	"lts" : {
      -		"is_lts_enabled" : true,
      -		"log_group_name" : "CTS",
      -		"log_topic_name" : "system-trace"
      -	},
      -        "bucket_name" : "1214",    
      -        "tracker_name" : "system",    
      -         "file_prefix_name" : "",    
      -         "status" : "enabled",
      -         "tracker_type" : "system"
      -}
      -
    -
    -

    Returned Value

    • Normal -
      - - - - - - - -
      Table 4 Return code for successful requests

      Returned Value

      -

      Description

      -

      201

      -

      The request is successful.

      -
      -
      -
    • Abnormal -
      - - - - - - - - - - - - - - - - - - - -
      Table 5 Return code for failed requests

      Returned Value

      -

      Description

      -

      400

      -

      The server failed to process the request.

      -

      403

      -

      The server understood the request but refused to authorize it.

      -

      500

      -

      Failed to complete the request because of an internal service error.

      -

      401

      -

      The request is rejected due to authentication failure.

      -

      400

      -

      The requested OBS bucket does not exist.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602252.html b/docs/cts/api-ref/en-us_topic_0168602252.html deleted file mode 100644 index ab6fd321..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602252.html +++ /dev/null @@ -1,500 +0,0 @@ - - -

    Querying Traces (v2.0)

    -

    Function

    This API is used to query records of operations on resources in the last seven days. In v2.0, the request parameter trace_rating is changed to trace_status, and the type of response parameter user is changed to Structure.

    -
    -

    URI

    GET /v2.0/{project_id}/{tracker_name}/trace{?trace_id,service_type,resource_type,resource_id,resource_name,trace_name,trace_status,user,limit,from,to,next}

    -
    The URI parameters are described in Table1 Parameters in the URI. -
    - - - - - - - - - - - - - - - - -
    Table 1 Parameters in the URI

    Parameter

    -

    Mandatory

    -

    Type

    -

    Description

    -

    project_id

    -

    Yes

    -

    String

    -

    Project ID.

    -

    tracker_name

    -

    Yes

    -

    String

    -

    Tracker name. Currently, only one tracker is allowed for each tenant. The tracker name is system.

    -
    -
    -
    -
    -

    Request

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2 Parameters in the request

      Parameter

      -

      Mandatory

      -

      Type

      -

      Description

      -

      service_type

      -

      No

      -

      String

      -

      Type of a service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters.

      -

      For cloud services that can be connected with CTS, see section "Supported Services and Operations" in the Cloud Trace Service User Guide.

      -

      resource_type

      -

      No

      -

      String

      -

      Type of a resource whose traces are to be queried. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.). It must start with a letter. For cloud services that can be connected with CTS, see section "Supported Services and Operations" in the Cloud Trace Service User Guide.

      -

      resource_id

      -

      No

      -

      String

      -

      ID of a cloud resource whose traces are to be queried.

      -

      resource_name

      -

      No

      -

      String

      -

      Name of a resource whose traces are to be queried.

      -
      NOTE:

      The resource name is case sensitive.

      -
      -

      trace_name

      -

      No

      -

      String

      -

      Trace name. It indicates the operation recorded by this trace.

      -
      NOTE:

      The trace name is case sensitive.

      -
      -

      limit

      -

      No

      -

      String

      -

      Number of traces returned in the trace list. The default value is 50 and the maximum value is 200.

      -

      next

      -

      No

      -

      String

      -

      This parameter is used to query traces generated earlier than its specified value. The value can be that of marker in Table 5.

      -

      next can be used with from and to.

      -

      Traces generated in the overlap of the two time ranges specified respectively by next and by from and to will be returned.

      -

      from

      -

      No

      -

      String

      -

      UTC timestamp of the start time of the query time range. The value is in milliseconds and contains 13 digits. Traces generated on the specified timestamp are not returned. The parameters from and to should be used together.

      -

      to

      -

      No

      -

      String

      -

      UTC timestamp of the end time of the query time range. The value is in milliseconds and contains 13 digits. Traces generated on the specified timestamp are not returned. The parameters to and from should be used together.

      -

      trace_id

      -

      No

      -

      String

      -

      Trace ID.

      -

      If this parameter is specified, other query criteria will not take effect.

      -

      trace_status

      -

      No

      -

      String

      -

      Status of a trace. The value can be normal, warning, or incident.

      -

      user

      -

      No

      -

      String

      -

      Name of the user whose traces are to be queried.

      -
      NOTE:

      The username is case sensitive.

      -
      -
      -
      -
    -
    • Example request
      GET 
      -/v2.0/{project_id}/{tracker_name}/trace?limit=11&to=1479095278000&from=1478490478000&trace_name=createTracker&resource_type=tracker&service_type=CTS
      -
    -
    -

    Response

    • Parameter description -
      - - - - - - - - - - - - - -
      Table 3 Parameters in the response

      Parameter

      -

      Type

      -

      Description

      -

      traces

      -

      array

      -

      List of returned traces.

      -

      meta_data

      -

      Structure

      -

      Extended parameter. The value can be count (number of traces in the response) or marker (ID of the last trace in the trace list).

      -
      -
      -
      -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 4 Data structure of the traces parameter

      Parameter

      -

      Type

      -

      Description

      -

      resource_id

      -

      String

      -

      ID of a cloud resource on which the recorded operation was performed.

      -

      trace_name

      -

      String

      -

      Name of a trace. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.). It must start with a letter.

      -

      trace_status

      -

      String

      -

      Trace status. The value can be normal, warning, or incident.

      -

      trace_type

      -

      String

      -

      Trace source. The value can be ApiCall, ConsoleAction, or SystemAction.

      -

      request

      -

      String

      -

      Request of an operation on resources.

      -

      response

      -

      String

      -

      Response to a user request, that is, the returned information for an operation on resources.

      -

      code

      -

      String

      -

      HTTP status code returned by the associated API.

      -

      api_version

      -

      String

      -

      Version of the API.

      -

      message

      -

      String

      -

      Remarks added by other cloud services to a trace.

      -

      record_time

      -

      Long

      -

      Timestamp when an operation was recorded by CTS.

      -

      trace_id

      -

      String

      -

      Trace ID. The value is the UUID generated by the system.

      -

      time

      -

      Long

      -

      Timestamp when a trace was generated.

      -

      user

      -

      Structure

      -

      Information of the user who performed the operation that triggered the trace.

      -

      service_type

      -

      String

      -

      Type of a service whose traces are to be queried. The value must be the acronym of a cloud service that has been connected with CTS. It is a word composed of uppercase letters.

      -

      resource_type

      -

      String

      -

      Type of a resource whose traces are to be queried. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.). It must start with a letter.

      -

      source_ip

      -

      String

      -

      IP address of the tenant who performed the operation that triggered the trace.

      -

      resource_name

      -

      String

      -

      Name of a resource on which the recorded operation was performed.

      -

      request_id

      -

      String

      -

      Request ID.

      -

      location_info

      -

      String

      -

      Additional information required for fault locating after a request error.

      -

      endpoint

      -

      String

      -

      Endpoint in the details page URL of the cloud resource on which the recorded operation was performed.

      -

      resource_url

      -

      String

      -

      Details page URL (excluding the endpoint) of the cloud resource on which the recorded operation was performed.

      -
      -
      -
      -
      -
      - - - - - - - - - - - - - -
      Table 5 Data structure of the meta_data parameter

      Parameter

      -

      Type

      -

      Description

      -

      count

      -

      Integer

      -

      Number of returned traces.

      -

      marker

      -

      String

      -

      ID of the last trace in the returned trace list. The value of this parameter can be used as the next value. If the value of marker is null, all traces have been returned.

      -
      -
      -
      -
    -
    • Example response
      { 
      -  "traces" : [ { 
      -    "time" : 1472148708232, 
      -    "user" : "{\"name\":\"xxx\",\"id\":\"a2e899190fcd444084a68fc0ac2sc1e9\",\"domain\":{\"name\":\"xxx\",\"id\":\"05b2598d69bc4a209f9ac5eeeb1f91ad\"}}", 
      -    "response" : "{\"code\":\"VPC.0514\",\"message\":\"Update port fail.\"}", 
      -    "code" : 200, 
      -    "service_type" : "VPC", 
      -    "resource_type" : "eip", 
      -    "resource_name" : "192.144.163.1", 
      -    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc", 
      -    "trace_name" : "deleteEip", 
      -    "trace_status " : "warning", 
      -    "trace_type" : "ConsoleAction", 
      -    "api_version" : "2.0", 
      -    "record_time" : 1481066128032, 
      -    "trace_id" : "e001ccb9-bc09-11e6-b00b-4b2a61338db6" 
      -    "request_id" : "a0001c1b9-bctt-2136-c12b-4b2a611116"
      -    "location_info" : "resource has been deleted"
      -    "endpoint" : "https://*****/vpc?agencyId=***&region=***&locale=zh-cn#"
      -    "resource_url" : "/vpc/vpcmanager/vpcs?vpcid=*****"
      -  }, { 
      -    "time" : 1472148708232, 
      -    "user" :  "{\"name\":\"xxx\",\"domain\":{\"name\":\"xxx\",\"id\":\"ded649d814464428ba89d04d7955c93e\"},\"assumedBy\":{\"user\":{\"name\":\"bss_bm_admin\",\"id\":\"c5140af45b5d4b399dea8f900f1dcf1b\",\"domain\":{\"name\":\"op_service\",\"id\":\"71ce673175024d0495664e525e52bac0\"}}}}",
      -    "response" : "{\"code\":\"VPC.0514\",\"message\":\"Update port fail.\"}", 
      -    "code" : 200, 
      -    "service_type" : "VPC", 
      -    "resource_type" : "eip", 
      -    "resource_name" : "192.144.163.1", 
      -    "resource_id" : "d502809d-0d1d-41ce-9690-784282142ccc", 
      -    "trace_name" : "deleteEip", 
      -    "trace_status" : "warning", 
      -    "trace_type" : "ConsoleAction", 
      -    "api_version" : "2.0", 
      -    "record_time" : 1481066128032, 
      -    "trace_id" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8" 
      -    "request_id" : "a0001c1b9-bctt-2136-c12b-4b2a611116"
      -    "location_info" : "resource has been deleted"
      -    "endpoint" : "https://*****/vpc?agencyId=***&region=***&locale=zh-cn#"
      -    "resource_url" : "/vpc/vpcmanager/vpcs?vpcid=*****"
      -
      -  } ], 
      -  "meta_data" : { 
      -    "count" : 2, 
      -    "marker" : "e001ccb8-bc09-11e6-b2cc-2640a43cc6e8" 
      -  } 
      -}
      -

      -
    -
    -

    Returned Value

    • Normal -
      - - - - - - - -
      Table 6 Return code for successful requests

      Returned Value

      -

      Description

      -

      200

      -

      The request is successful and the query result is returned.

      -
      -
      -
    -
    • Abnormal -
      - - - - - - - - - - - - - - - - - - - -
      Table 7 Return code for failed requests

      Returned Value

      -

      Description

      -

      400

      -

      The query parameters are abnormal.

      -

      500

      -

      Failed to complete the request because of an internal service error.

      -

      401

      -

      The request is rejected due to authentication failure.

      -

      403

      -

      The server understood the request but refused to authorize it.

      -

      404

      -

      The requested trace does not exist.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602253.html b/docs/cts/api-ref/en-us_topic_0168602253.html deleted file mode 100644 index 1920ec62..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602253.html +++ /dev/null @@ -1,205 +0,0 @@ - - -

    Querying a Tracker

    -

    Function

    This API is used to query the details of a tracker. The details include the name of the tracker, name of the OBS bucket for storing traces, and prefix of the trace files stored in the OBS bucket.

    -
    -

    URI

    GET /v1.0/{project_id}/tracker?tracker_name={tracker_name}

    -
    The URI parameters are described in Table1 Parameters in the URI. -
    - - - - - - - - - - - - - - - - -
    Table 1 Parameters in the URI

    Parameter

    -

    Mandatory

    -

    Type

    -

    Description

    -

    project_id

    -

    Yes

    -

    String

    -

    Project ID

    -

    tracker_name

    -

    No

    -

    String

    -

    Tracker name.

    -

    If this parameter is not specified, all trackers will be queried.

    -

    Currently, only one tracker is allowed for each tenant. The tracker name is system.

    -
    -
    -

    It is expected that CTS can support multiple trackers in the future. In this case, if you send a request where the parameter tracker_name is not specified (GET /v1.0/{project_id}/tracker), the response will be in array format. Otherwise, the response will be in object format.

    -
    -
    -
    -

    Request

    • Parameter description

      None

      -
    -
    • Example request
      GET /v1.0/{project_id}/tracker?tracker_name=system
      -
    -
    -

    Response

    • Parameter description -
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Table 2

      Parameter

      -

      Sub-Parameter

      -

      Type

      -

      Description

      -

      tracker_name

      -

      -

      -

      String

      -

      Tracker name. It is set as system by default.

      -

      bucket_name

      -

      -

      -

      String

      -

      OBS bucket name. It starts with a number or lowercase letter and contains 3 to 63 characters, including lowercase letters, numbers, hyphens (-), and periods (.)

      -

      file_prefix_name

      -

      -

      -

      String

      -

      Prefix of trace files that need to be stored in OBS buckets

      -

      status

      -

      -

      -

      String

      -

      Status of a tracker. The value can be enabled or disabled.

      -

      detail

      -

      -

      -

      String

      -

      This parameter is returned only when the tracker status is abnormal. It specifies the cause of the exception. The value will be checkBucketExistFailed, which indicates the failure to check the bucket, or noBucket, which indicates that the bucket does not exist.

      -

      -

      lts

      -

      -

      is_lts_enabled

      -

      Boolean

      -

      Whether trace analysis is enabled

      -

      log_group_name

      -

      String

      -

      Name of the LTS log group

      -

      log_topic_name

      -

      String

      -

      Name of the LTS log stream

      -
      -
      -
    -
    • Example response
      {
      -	"bucket_name" : "my_created_bucket",
      -	"tracker_name" : "system",
      -	"detail" : "noBucket",
      -	"file_prefix_name" : "some_folder",
      -	"status" : "disabled",
      -	"lts" : {
      -		"is_lts_enabled" : true,
      -		"log_group_name" : "CTS",
      -		"log_topic_name" : "tracker"
      -	},
      -        "bucket_name" : "1214",    
      -        "tracker_name" : "system",    
      -      
      -}
      -
    -
    -

    Returned Value

    • Normal -
      - - - - - - - -
      Table 3 Return code for successful requests

      Returned Value

      -

      Description

      -

      200

      -

      The request is successful and the query result is returned.

      -
      -
      -
    • Abnormal -
      - - - - - - - - - - - - - - - - -
      Table 4 Return code for failed requests

      Returned Value

      -

      Description

      -

      400

      -

      The server failed to process the request.

      -

      500

      -

      Failed to complete the request because of an internal service error.

      -

      401

      -

      Your access request is rejected.

      -

      403

      -

      You are forbidden to access the requested page.

      -
      -
      -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602259.html b/docs/cts/api-ref/en-us_topic_0168602259.html deleted file mode 100644 index 64a3e21b..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602259.html +++ /dev/null @@ -1,496 +0,0 @@ - - -

    Error Codes

    -

    Introduction

    This section explains the meanings of error codes returned by CTS APIs.

    -
    -

    Example of Returned Error Information

    {

    -

    "error_code": "CTS.0003",

    -

    "error_msg": "Invalid message body. The message body is empty or invalid."

    -

    }

    -
    -

    Error Code Description

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Status Code

    -

    Error Code

    -

    Error Message

    -

    Description

    -

    Solution

    -

    400

    -

    CTS.0001

    -

    IAM or OBS exception, please check.

    -

    The IAM or OBS service is abnormal.

    -

    Contact technical support.

    -

    403

    -

    CTS.0002

    -

    The user fails the authentication or does not have permission to this operation.

    -

    Authentication failed or you do not have the permissions required.

    -

    Check your permissions.

    -

    400

    -

    CTS.0003

    -

    Invalid message body. The message body is empty or invalid.

    -

    The message body is empty or invalid.

    -

    Check the body content and format.

    -

    500

    -

    CTS.0004

    -

    Data write exception.

    -

    Failed to write data.

    -

    Contact technical support.

    -

    500

    -

    CTS.0005

    -

    Data read exception.

    -

    Failed to read data.

    -

    Contact technical support.

    -

    403

    -

    CTS.0012

    -

    Invalid project ID. Check whether the project ID is correct.

    -

    The project ID is invalid.

    -

    Check whether the project ID is correct.

    -

    400

    -

    CTS.0056

    -

    Failed to create lts trace analysis.

    -

    Failed to enable trace analysis.

    -

    Contact technical support.

    -

    404

    -

    CTS.0100

    -

    CTS does not support API interface version query.

    -

    API version query is not supported in CTS.

    -

    Contact technical support.

    -

    400

    -

    CTS.0200

    -

    Tracker number is Maximum.

    -

    The number of trackers has reached the upper limit.

    -

    Delete or modify unnecessary trackers.

    -

    400

    -

    CTS.0201

    -

    A management tracker has been created.

    -

    A management tracker has been created.

    -

    Check whether the management tracker is available.

    -

    400

    -

    CTS.0202

    -

    Invalid message body. Tracker tracker_type must be either system or data.

    -

    The value of tracker_type is invalid.

    -

    Change its value to system or data.

    -

    400

    -

    CTS.0203

    -

    Invalid message body. The tracker_name is a string of 1 to 32 characters and cannot start with underscores or hyphens.

    -

    The value of tracker_name is invalid.

    -

    Modify its value by referring to the parameter descriptions.

    -

    400

    -

    CTS.0204

    -

    The tracker_name parameter of a management tracker can only be set to system.

    -

    The tracker_name parameter of a management tracker must be set to system.

    -

    Modify its value by referring to the parameter descriptions.

    -

    400

    -

    CTS.0205

    -

    Invalid message body. Tracker status is required and value must be either enabled or disabled.

    -

    The status parameter can only be set to enabled or disabled.

    -

    Change its value to enabled or disabled.

    -

    400

    -

    CTS.0206

    -

    Invalid message body. The data_bucket is not need.

    -

    The data_bucket parameter cannot be included in the message body for a management tracker.

    -

    Delete the data_bucket parameter.

    -

    400

    -

    CTS.0207

    -

    Invalid message body. The tracker_name value cannot be system or system-trace.

    -

    The tracker_name parameter in the message body cannot be set to system for a data tracker.

    -

    Change the value of tracker_name to a value other than system.

    -

    400

    -

    CTS.0208

    -

    The tracker already exists.

    -

    The tracker already exists.

    -

    Check whether the tracker already exists.

    -

    400

    -

    CTS.0209

    -

    You cannot create different trackers to record the same type of operations on the same OBS bucket.

    -

    A type of operations on an OBS bucket can be tracked by only one tracker.

    -

    Change the tracker configurations.

    -

    400

    -

    CTS.0210

    -

    Invalid message body. The OBS bucket for which data operations are to be recorded can not be empty.

    -

    The OBS bucket to be tracked cannot be empty.

    -

    Select another bucket or ensure that the bucket is not empty.

    -

    400

    -

    CTS.0211

    -

    Check bucket failed.The bucket is not exist.

    -

    The OBS bucket to be tracked does not exist.

    -

    Check whether bucket_name is correctly set.

    -

    400

    -

    CTS.0212

    -

    The tracked OBS bucket can not be modify.

    -

    The tracked OBS bucket cannot be modified.

    -

    Withdraw the changes on the OBS bucket.

    -

    400

    -

    CTS.0213

    -

    Invalid message body. The OBS bucket for which data operations are to be recorded and the OBS bucket configured for storing transferred traces cannot be the same.

    -

    The OBS bucket used for trace transfer cannot be the tracked OBS bucket.

    -

    Select another OBS bucket for trace transfer.

    -

    404

    -

    CTS.0214

    -

    The tracker does not exist.

    -

    The tracker does not exist.

    -

    Check whether the tracker has been deleted.

    -

    400

    -

    CTS.0215

    -

    Check bucket failed.The bucket is already exist.

    -

    The OBS bucket already exists.

    -

    Change the value of bucket_name.

    -

    400

    -

    CTS.0216

    -

    Create bucket failed.

    -

    Failed to create a bucket.

    -

    Contact technical support.

    -

    400

    -

    CTS.0217

    -

    Set bucket life cycle failed. Contact O&M personnel.

    -

    Failed to set a lifecycle rule for the OBS bucket.

    -

    Contact technical support.

    -

    400

    -

    CTS.0218

    -

    Invalid message body. The file_prefix_name is a string of 0 to 64 characters and can only contain uppercase letters, lowercase letters, digits, hyphens, underscores and periods.

    -

    The value of file_prefix_name is invalid.

    -

    Modify its value by referring to the parameter descriptions.

    -

    400

    -

    CTS.0219

    -

    The bucket operation cannot be empty.

    -

    The operation type cannot be empty.

    -

    Select at least one operation type to track.

    -

    400

    -

    CTS.0220

    -

    KMS is not supported.

    -

    KMS is not supported.

    -

    Contact technical support.

    -

    400

    -

    CTS.0221

    -

    The KMS ID is empty.

    -

    The KMS ID is empty.

    -

    Check whether the KMS ID is correct.

    -

    400

    -

    CTS.0222

    -

    Failed to obtain key list from KMS.

    -

    KMS verification failed.

    -

    Check whether the KMS ID is correct.

    -

    400

    -

    CTS.0225

    -

    The Bucket operation must be WRITE or READ or WRITE,READ.

    -

    The bucket operation must be write, read, or read/write.

    -

    Enter a correct parameter.

    -

    400

    -

    CTS.0231

    -

    Invalid bucket name. A bucket name must be a string of 3 to 63 characters, including only lowercase letters, digits, hyphens (-), or periods (.). It must start with a digit or a lowercase letter.

    -

    Invalid bucket name. A bucket name must contain 3 to 63 characters and start with a digit or a lowercase letter. Only lowercase letters, digits, hyphens (-), and periods (.) are allowed.

    -

    Check whether the bucket name is correct.

    -

    400

    -

    CTS.0300

    -

    Query data failed.

    -

    Query failed.

    -

    Try again later or contact technical support.

    -

    400

    -

    CTS.0400

    -

    Notification name is existed already.

    -

    The key event notification name already exists.

    -

    Check whether the key event notification already exists.

    -

    400

    -

    CTS.0401

    -

    Invalid message body. The operations parameter value is invalid.

    -

    The operations parameter is invalid.

    -

    Check whether the operation parameter is correct.

    -

    400

    -

    CTS.0402

    -

    The Smn topic does not exist.

    -

    The SMN topic does not exist.

    -

    Check whether the SMN topic exists.

    -

    404

    -

    CTS.0403

    -

    The notification does not exist.

    -

    The key event notification does not exist.

    -

    Check whether the key event notification has been deleted.

    -

    400

    -

    CTS.0404

    -

    State setting failed, check if topicId exists.

    -

    Failed to enable the key event notification. Check whether the SMN topic has been configured.

    -

    Check whether the SMN topic has been configured.

    -

    400

    -

    CTS.0407

    -

    The quantity has exceeded the maximum quantity limit.

    -

    The number of key event notifications exceeds the upper limit.

    -

    Check whether the number of key event notifications exceeds the quota.

    -

    400

    -

    CTS.0410

    -

    The notification_type must be smn.

    -

    The key event notification type can only be smn.

    -

    Check the key operation notification type.

    -

    400

    -

    CTS.0411

    -

    The notification_name invalid.

    -

    The notification name is invalid.

    -

    Check whether the notification name is correct.

    -
    -
    -
    -
    -
    - -
    - diff --git a/docs/cts/api-ref/en-us_topic_0168602260.html b/docs/cts/api-ref/en-us_topic_0168602260.html deleted file mode 100644 index 5f123cef..00000000 --- a/docs/cts/api-ref/en-us_topic_0168602260.html +++ /dev/null @@ -1,17 +0,0 @@ - - -

    API Description

    -
    - - diff --git a/docs/cts/api-ref/public_sys-resources/imageclose.gif b/docs/cts/api-ref/public_sys-resources/imageclose.gif new file mode 100644 index 00000000..3a3344af Binary files /dev/null and b/docs/cts/api-ref/public_sys-resources/imageclose.gif differ diff --git a/docs/cts/api-ref/public_sys-resources/imageclosehover.gif b/docs/cts/api-ref/public_sys-resources/imageclosehover.gif new file mode 100644 index 00000000..8699d5e3 Binary files /dev/null and b/docs/cts/api-ref/public_sys-resources/imageclosehover.gif differ diff --git a/docs/cts/api-ref/public_sys-resources/imagemax.gif b/docs/cts/api-ref/public_sys-resources/imagemax.gif new file mode 100644 index 00000000..99c07dc2 Binary files /dev/null and b/docs/cts/api-ref/public_sys-resources/imagemax.gif differ diff --git a/docs/cts/api-ref/public_sys-resources/imagemaxhover.gif b/docs/cts/api-ref/public_sys-resources/imagemaxhover.gif new file mode 100644 index 00000000..d01d77d6 Binary files /dev/null and b/docs/cts/api-ref/public_sys-resources/imagemaxhover.gif differ diff --git a/docs/cts/api-ref/public_sys-resources/macFFBgHack.png b/docs/cts/api-ref/public_sys-resources/macFFBgHack.png new file mode 100644 index 00000000..ec811470 Binary files /dev/null and b/docs/cts/api-ref/public_sys-resources/macFFBgHack.png differ diff --git a/docs/cts/api-ref/topic_300000003.html b/docs/cts/api-ref/topic_300000000.html similarity index 85% rename from docs/cts/api-ref/topic_300000003.html rename to docs/cts/api-ref/topic_300000000.html index b38a9fc0..ff19f8d3 100644 --- a/docs/cts/api-ref/topic_300000003.html +++ b/docs/cts/api-ref/topic_300000000.html @@ -1,4 +1,4 @@ - +

    Key Event Notification Management

    @@ -15,7 +15,7 @@