Cloud Monitor

DeleteCloudMonitorRealTimeAlarmRule

Update time: 2025-12-12 17:24:30

Delete the real-time monitoring alarm rule of Cloud monitoring. Users can pass in the monitoring rule ID to delete the specified monitoring rule.

  • Limit of request rate per user: 60/5min
  • Applicable Products: Cloud Monitor
For API authentication details, please refer to: API Authentication Overview

Request

Body Params

NameDescription
*ruleIdString

Alert rule ID

Response

Body Params

NameDescription
codeString

Response code

messageString

Response message

Error code

Error code(code)Description(message)HTTP statusSemantic
ResourceNotFound.RuleNotExists

Rule does not exist

400Rule does not exist
ResourceNotFound.AccountNotExists

Account does not exist

400Account does not exist

Example

JSON
JSON
Request example
Copy Copy success
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/api/cloudmonitor/alarm/real-time/delete" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-d '{
        "ruleId": "10d01002a7b6426f8e103ce4ec7a0b35"
    }'
Response example
Copy Copy success
{
    "code": 0,
    "message": "success"
}
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!