检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Getting Started Enabling CTS Querying Real-Time Traces Querying Archived Traces Configuring Key Event Notification 04 APIs CTS provides open APIs and samples, so that you can easily create, query and delete trackers.
Example Request Deleting tracker tags in batches DELETE https://{endpoint}/v3/{project_id}/{resource_type}/{resource_id}/tags/delete { "tags" : [ { "key" : "111", "value" : "33" } ] } Example Response None.
Deleting a Resource Tag Function This API is used to delete a resource tag. API Calling For details, see Calling APIs.
Deleting a Key Event Notification Function This API is used to delete a key event notification. API Calling For details, see Calling APIs. URI DELETE /v3/{project_id}/notifications Table 1 Path parameters Parameter Mandatory Type Description project_id Yes String Project ID.
Managing Key Event Notifications After you create a key event notification, you can view its name, status, template, and SMN topic in the notification list and delete it as required. Log in to the management console.
/v3/{project_id}/{resource_type}/{resource_id}/tags/delete cts:tag:delete - √ x
DELETE: requests a server to delete specified resources, for example, objects. HEAD: same as GET except that the server must return only the response header. PATCH: requests a server to update a part of a specified resource.
If you delete the OBS bucket, CTS cannot transfer traces to OBS, and you cannot query traces of the last seven days. After you configure the transfer in CTS, the retention period of the transferred trace is subject to the configuration on the OBS/LTS console.
If you delete the OBS bucket, CTS cannot transfer traces to OBS, and you cannot query traces of the last seven days. After you configure the transfer in CTS, the retention period of the transferred trace is subject to the configuration on the OBS/LTS console.
Deleting a Tracker Scenarios You can delete the management tracker on the CTS console. Deleting it does not affect the existing operation records. This section describes how to delete the management tracker on the console.
Click Delete in the Operation column of the target configuration item. Figure 1 Deleting a tracker Click OK. Parent topic: Data Trackers
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.
Example Request DELETE https://{endpoint}/v1.0/{project_id}/tracker?tracker_name=system Example Response None.
Delete the data_bucket parameter. 400 CTS.0207 The tracker_name parameter in the message body cannot be set to system for a data tracker. The tracker_name parameter in the message body cannot be set to system for a data tracker.
If you do need to disable CTS, you can do it in the following two ways: You can delete or disable a tracker. After a tracker is deleted or disabled, traces can still be reported. Delete the CTS agency from the IAM agency list. CTS will become unavailable.
Managing Key Event Notifications After you create a key event notification, you can view its name, status, template, and SMN topic in the notification list and delete it as required. Log in to the management console.
You can enable, disable, configure, or delete a tracker on the Tracker List page. For example, if you create an image using IMS, the service will report the creation operation to CTS.
When you add, delete, or modify an ECS, the ECS service automatically records your operations and results and then sends traces in the specified format to CTS for archiving. CTS stores traces of the last seven days and displays them on the Trace List page.
Deleting a key event notification - Deleting a key event notification cts:notification:list Querying all key event notifications - Querying all key event notifications cts:tracker:delete Deleting a tracker - Deleting a created tracker cts:tracker:update Updating a tracker iam:agencies
In addition, the only action you can perform on trackers is to delete them.