Delete the push channels of an alert rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DeleteMetricRuleTargets |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleId |
string |
Yes |
The ID of the alert rule. |
ruleId-xxxxxx |
| TargetIds |
array |
Yes |
The resource IDs. |
12345 |
|
string |
No |
The resource ID. Valid values of N: 1 to 5. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The HTTP status code. ** Description The status code 200 indicates that the request was successful. |
200 |
| Message |
string |
The error message. |
The Request is not authorization. |
| RequestId |
string |
The request ID. |
786E92D2-AC66-4250-B76F-F1E2FCDDBA1C |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| FailIds |
object |
The IDs of the resources that failed to be deleted. |
|
| TargetIds |
object |
||
| TargetId |
array |
The IDs of the resources that failed to be deleted. |
|
|
string |
The ID of the resource that failed to be deleted. |
1 |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "786E92D2-AC66-4250-B76F-F1E2FCDDBA1C",
"Success": true,
"FailIds": {
"TargetIds": {
"TargetId": [
"1"
]
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | %s | %s | |
| 500 | InternalError | The request processing has failed because of an unknown error, exception or failure. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.