DeleteCloudMonitorRealTimeAlarmRule

更新時間: 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.

  • 単一ユーザーの使用頻度: 60/5min
  • 使用できるプロダクト: Cloud Monitor

リクエストパラメータ

Body パラメータ

パラメータ名説明
*ruleIdString
Alert rule ID

レスポンスパラメータ

Body パラメータ

パラメータ名説明
codeString
Response code
messageString
Response message

エラーコード

エラーコード(code)説明(message)HTTPステータスコード意味
ResourceNotFound.RuleNotExistsRule does not exist400Rule does not exist
ResourceNotFound.AccountNotExistsAccount does not exist400Account does not exist

入力例

JSON
JSON
リクエスト例
コピー コピー完了
#!/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"
}