All Products
Search
Document Center

CloudMonitor:DeleteSiteMonitors

Last Updated:Mar 01, 2024

Deletes one or more site monitoring tasks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TaskIdsstringYes

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

01adacc2-ece5-41b6-afa2-3143ab5d****,43bd1ead-514f-4524-813e-228ce091****
IsDeleteAlarmsbooleanNo

Specifies whether to delete the alert rules configured for the site monitoring tasks. Valid values:

  • true (default value)
  • false
true

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

Note The status code 200 indicates that the call was successful.
200
Messagestring

The returned message. If the call was successful, the value success is returned. If the call failed, an error message such as TaskId not found is returned.

successful
RequestIdstring

The ID of the request.

123BCC5D-8B63-48EA-B747-9A8995BE7AA6
Successstring

Indicates whether the call was successful. The value true indicates success. The value false indicates failure.

true
Dataobject

The information about the site monitoring tasks that were deleted.

countinteger

The number of the site monitoring tasks that were deleted.

0

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError message
206%s%s
400InvalidQueryParameter%s
401AccessDeniedExceptionYou donot have sufficient access to perform this action.
402LimitExceededThe quota for this customer had been reached.
403ForbiddenYou are not authorized to operate the specified resource.
404%sTaskId not found
406ExceedingQuotaExceeding quota limits.
500InternalErrorThe request processing has failed due to some unknown error.

For a list of error codes, visit the Service error codes.