Associates resources with an alert rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RuleId | string | No | The ID of the alert rule. | i-2ze3w55tr2rcpejpcfap_59c96b85-0339-4f35-ba66-ae4e34d3**** |
Overwrite | string | No | Specifies whether to overwrite the existing data. Valid values:
| false |
Resources | string | Yes | The resources to be associated with the alert rule. The value is a JSON array. Note
You can add up to 100 resources each time. An alert rule can be associated with up to 3,000 resources.
| [{"instanceId":"i-a2d5q7pm3f9yr29e****"}] |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Message": "success",
"RequestId": "0671A721-0D7A-4F11-BB77-2416325D65AB",
"Success": true
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | %s | %s |
500 | InternalError | The request processing has failed due to some unknown error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history