Deletes alert rules.

Debugging

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 DeleteAlertRules

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

AlertIds String Yes [123, 234]

The IDs of the alert rules that you want to delete. The value is a JSON array, for example, [123, 234]. You can call the SearchAlertRules operation and view the Id parameter in the response parameters. For more information, see SearchAlertRules.

RegionId String Yes cn-hangzhou

The ID of the region. Default value: cn-hangzhou.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the alert rule was deleted.

  • true: The alert rule was deleted.
  • false: The alert rule failed to be deleted.
RequestId String C21AB7CF-B7AF-410F-BD61-82D1567F****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteAlertRules
&AlertIds=[123, 234]
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DeleteAlertRulesResponse>
      <IsSuccess>true</IsSuccess>
      <RequestId>C21AB7CF-B7AF-410F-BD61-82D1567F****</RequestId>
</DeleteAlertRulesResponse>

JSON format

{
    "IsSuccess": true,
    "RequestId": "C21AB7CF-B7AF-410F-BD61-82D1567F****"
}