Deletes one or more site monitoring tasks.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteSiteMonitors |
The operation that you want to perform. Set the value to DeleteSiteMonitors. |
TaskIds | String | Yes | 01adacc2-ece5-41b6-afa2-3143ab5d****,43bd1ead-514f-4524-813e-228ce091**** |
The IDs of the site monitoring tasks that you want to delete. Separate multiple task IDs with commas (,). |
IsDeleteAlarms | Boolean | No | true |
Specifies whether to delete the alert rules configured for the site monitoring tasks. Valid values:
|
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 | Success |
The returned message. If the call was successful, the value success is returned. If
the call failed, an error message such as |
RequestId | String | 123BCC5D-8B63-48EA-B747-9A8995BE7AA6 |
The ID of the request. |
Success | String | true |
Indicates whether the call was successful. The value true indicates success. The value false indicates failure. |
Data | Object |
The information about the site monitoring tasks that were deleted. |
|
count | Integer | 0 |
The number of the site monitoring tasks that were deleted. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteSiteMonitors
&TaskIds=01adacc2-ece5-41b6-afa2-3143ab5d****,43bd1ead-514f-4524-813e-228ce091****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteSiteMonitorsResponse>
<Data>
<count>0</count>
</Data>
<Message>Success</Message>
<RequestId>123BCC5D-8B63-48EA-B747-9A8995BE7AA6</RequestId>
<Success>true</Success>
<Code>200</Code>
<DeleteSiteMonitorsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Data" : {
"count" : 0
},
"Message" : "Success",
"RequestId" : "123BCC5D-8B63-48EA-B747-9A8995BE7AA6",
"Success" : true,
"Code" : "200"
}
Error codes
For a list of error codes, see Service error codes.