All Products
Search
Document Center

CloudMonitor:DeleteSiteMonitors

Last Updated:Jul 26, 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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cms:DeleteSiteMonitorsdelete
  • All Resources
    *
    none
none

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 messageDescription
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.No permission, please use RAM to authorize
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.