Deletes one or more 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 DeleteMetricRules

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

Id.N RepeatList Yes ab05733c97b7ce239fb1b53393dc1697c7e12****

The ID of the alert rule. Valid values of N: 1 to 100.

Response parameters

Parameter Type Example Description
Code String 200

The status code.

Note The status code 200 indicates a success.
Message String The specified resource is not found.

The returned message.

RequestId String E5599964-8D0D-40DC-8E90-27A619384B81

The ID of the request.

Success Boolean true

Indicates whether the operation was successful. Valid values:

  • true: successful.
  • false: failed.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteMetricRules
&Id.1=ab05733c97b7ce239fb1b53393dc1697c7e12****
&<Common request parameters>

Sample success responses

XML format

<DeleteMetricRulesResponse>
      <RequestId>AE2ACE17-BD92-4FB0-83DB-AC969C677CE7</RequestId>
      <Code>200</Code>
      <Success>true</Success>
</DeleteMetricRulesResponse>

JSON format

{
	"RequestId": "AE2ACE17-BD92-4FB0-83DB-AC969C677CE7",
	"Code": "200",
	"Success": true
}

Error codes

For a list of error codes, visit the API Error Center.