All Products
Search
Document Center

CloudMonitor:DeleteMetricRuleResources

Last Updated:Mar 01, 2024

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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RuleIdstringYes

The ID of the alert rule.

rr-bp18017n6iolv****
ResourcesstringYes

The resources to be disassociated from the alert rule.

[{"instanceId":"i-uf6hm9lnlzsarrc7****"}]

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

Note The status code 200 indicates that the call was successful.
200
Messagestring

The returned message.

The alert does not exist.
RequestIdstring

The ID of the request.

D8A35882-90C6-4F03-BBEB-153C180398EA
Successboolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.
true

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "The alert does not exist.",
  "RequestId": "D8A35882-90C6-4F03-BBEB-153C180398EA",
  "Success": true
}

Error codes

HTTP status codeError codeError message
400%s%s
500InternalErrorThe request processing has failed due to some unknown error.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history