Deletes a metric import task for Alibaba Cloud services or a metric for the logs that are imported from Log Service.

This topic provides an example on how to delete the data monitoring task whose ID is 36****. The returned result indicates that the data monitoring task is deleted.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteHybridMonitorTask

The operation that you want to perform. Set the value to DeleteHybridMonitorTask.

TaskId String No 36****

The ID of the data monitoring task.

For information about how to obtain the ID of a data monitoring task, see DescribeHybridMonitorTaskList.

Namespace String No aliyun

The name of the namespace.

The name can contain letters, digits, and hyphens (-).

TargetUserId String No 120886317861****

The ID of the Alibaba Cloud account that corresponds to a member in a resource directory.

Note This parameter is required only if you call this operation to delete a metric import task that belongs to a member in a resource directory.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String null

The error message.

RequestId String D6B8103F-7BAD-5FEB-945F-71D991AB8834

The ID of the request.

Success String true

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "D6B8103F-7BAD-5FEB-945F-71D991AB8834",
  "Code" : 200,
  "Success" : true

Error codes

For a list of error codes, visit the API Error Center.