Cloud Monitor
Alert Rules Management
DeleteCloudMonitorRealTimeAlarmRule
QueryCloudMonitorRealTimeAlarmRule
EditCloudMonitorRealTimeAlarmRule
CreateCloudMonitorRealTimeAlarmRule

DeleteCloudMonitorRealTimeAlarmRule

Update time: 2025-02-07 14:44:26

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

  • Single user trigger frequency: 60/5min
  • Applicable Products: Cloud Monitor

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.RuleNotExistsRule does not exist400Rule does not exist
ResourceNotFound.AccountNotExistsAccount does not exist400Account does not exist

Example

JSON
JSON
Request example
Copy
#!/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
{
    "code": 0,
    "message": "success"
}

Directory

  • Request
  • Response
  • Error code
  • Example
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!