Deletes the targets to which alert notifications are sent based on an event-triggered alert rule.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteEventRuleTargets |
The operation that you want to perform. Set the value to DeleteEventRuleTargets. |
Ids.N | RepeatList | Yes | 1 |
The ID of the target. Valid values of N: 1 to 20. |
RuleName | String | Yes | testRule |
The name of the event-triggered alert rule. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | Success |
The returned message. |
RequestId | String | 7ADD7EFB-7555-4EC1-A3D9-F9955C189CCF |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DeleteEventRuleTargets
&Ids.1=1
&RuleName=testRule
&<Common request parameters>
Sample success responses
XML
format
<DeleteEventRuleTargetsResponse>
<RequestId>7ADD7EFB-7555-4EC1-A3D9-F9955C189CCF</RequestId>
<Success>true</Success>
<Code>200</Code>
</DeleteEventRuleTargetsResponse>
JSON
format
{
"RequestId": "7ADD7EFB-7555-4EC1-A3D9-F9955C189CCF",
"Success": true,
"Code": "200"
}
Error codes
For a list of error codes, visit the API Error Center.