All Products
Search
Document Center

CloudMonitor:DeleteMetricRuleTargets

Last Updated:Mar 18, 2024

Delete the push channels of 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.

ruleId-xxxxxx
TargetIdsarrayYes

The resource IDs.

stringYes

The resource ID. Valid values of N: 1 to 5.

The HTTP status code. > The status code 200 indicates that the call was successful.

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code.

**

Description The status code 200 indicates that the request was successful.

200
Messagestring

The error message.

The Request is not authorization.
RequestIdstring

The request ID.

786E92D2-AC66-4250-B76F-F1E2FCDDBA1C
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
FailIdsobject

The IDs of the resources that failed to be deleted.

TargetIdsarray

The IDs of the resources that failed to be deleted.

string

The ID of the resource that failed to be deleted.

1

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "The Request is not authorization.",
  "RequestId": "786E92D2-AC66-4250-B76F-F1E2FCDDBA1C",
  "Success": true,
  "FailIds": {
    "TargetIds": {
      "TargetId": [
        "1"
      ]
    }
  }
}

Error codes

HTTP status codeError codeError message
400%s%s
500InternalErrorThe request processing has failed because of an unknown error, exception or failure.
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