You can call this operation to delete one or more event alert rules.

Debugging

You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can call APIs, dynamically generate SDK example code, and retrieve APIs.

Request parameters

Parameter Type Required Example Description
RuleNames.N RepeatList Yes rule1

The name of the alert rule. Valid values of N: 1 to 20.

Action String No DeleteEventRules

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

Response parameters

Parameter Type Example Description
Code String 200

The status code. A value of 200 indicates that the call is successful.

Message String success

The returned information.

RequestId String E5A72B5B-4F44-438C-B68A-147FD5DC53A8

The request ID for troubleshooting.

Success Boolean true

Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DeleteEventRules
&RuleNames. 1=rule1
&<Common request parameters>

Successful response examples

XML format

<DeleteEventRulesResponse>
  <RequestId>E5A72B5B-4F44-438C-B68A-147FD5DC53A8</RequestId>
  <Success>true</Success> 
  <Code>200</Code>
</DeleteEventRulesResponse>

JSON format

{
	"RequestId":"E5A72B5B-4F44-438C-B68A-147FD5DC53A8",
	"Success":true,
	"Code":"200"
}

Error codes

View error codes