Delete the real-time monitoring alarm rule of Cloud monitoring. Users can pass in the monitoring rule ID to delete the specified monitoring rule.
파라미터 이름 | 설명 |
---|---|
*ruleIdString | Alert rule ID |
파라미터 이름 | 설명 |
---|---|
codeString | Response code |
messageString | Response message |
에러 코드(code) | 설명(message) | HTTP 상태 코드 | 설명 |
---|---|---|---|
ResourceNotFound.RuleNotExists | Rule does not exist | 400 | Rule does not exist |
ResourceNotFound.AccountNotExists | Account does not exist | 400 | Account does not exist |
#!/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" }'
{ "code": 0, "message": "success" }