You can call this operation to delete one or more site monitoring tasks.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteSiteMonitors

The operation that you want to perform. Set this parameter to DeleteSiteMonitors.

TaskIds String Yes 01adacc2-ece5-41b6-afa2-3143ab5da7a0,43bd1ead-514f-4524-813e-228ce091****

The IDs of the site monitoring tasks to delete. Separate multiple IDs with commas (,).

IsDeleteAlarms Boolean No true

Specifies whether to delete the alert rules associated with the site monitoring tasks. Default value: true.

Response parameters

Parameter Type Example Description
Code String 200

The status code. A value of 200 indicates that the call was successful.

Data String { "count": 0 }

The number of site monitoring tasks that were deleted.

Message String successful

The error message.

RequestId String 123BCC5D-8B63-48EA-B747-9A8995BE7AA6

The ID of the request.

Success String true

Indicates whether the call was successful.

Examples

Sample request


http(s)://[Endpoint]/? Action=DeleteSiteMonitors
&TaskIds=01adacc2-ece5-41b6-afa2-3143ab5da7a0,43bd1ead-514f-4524-813e-228ce091****
&<Common request parameters>

Sample success response

XML format

<DeleteSiteMonitorsResponse>
  <RequestId>6661EC50-8625-4161-B349-E0DD59002AB7</RequestId>
  <Success>true</Success>
  <Code>200</Code>
  <Message>successful</Message>
</DeleteSiteMonitorsResponse>

JSON format

{
	"Data":{
		"count":0
	},
	"Message":"successful",
	"RequestId":"123BCC5D-8B63-48EA-B747-9A8995BE7AA6",
	"Success":true,
	"Code":"200"
}

Error codes

View error codes.