Disassociates resources from an alert rule.

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 DeleteMetricRuleResources

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

Resources String Yes [{"instanceId":"*****ixxxId1"}]

The resources to be disassociated from the alert rule. The value is a JSON array.

RuleId String Yes rr-bp18017n6iolv****

The ID of the alert rule.

Response parameters

Parameter Type Example Description
RequestId String D8A35882-90C6-4F03-BBEB-153C180398EA

The ID of the request.

Success Boolean true

Indicates whether the call was successful.

Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String success

The returned message.

Examples

Sample requests


http(s)://[Endpoint]/?Action=DeleteMetricRuleResources
&Resources=[{"instanceId":"*****ixxxId1"}]
&RuleId=rr-bp18017n6iolv****
&<Common request parameters>

Sample success responses

XML format

<RequestId>0671A721-0D7A-4F11-BB77-2416325D65AB</RequestId>
<Success>true</Success>
<Message>success</Message>
<Code>200</Code>

JSON format

{
	"Message":"success",
	"RequestId":"0671A721-0D7A-4F11-BB77-2416325D65AB",
	"Success":true,
	"Code":"200"
}

Error codes

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