DeleteCloudMonitorRealTimeAlarmRule

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

  • 単一ユーザーの使用頻度: 60/5min
  • 使用できるプロダクト: Cloud Monitor
API認証の詳細については、以下を参照してください:API認証の概要

リクエストパラメータ

Body パラメータ

パラメータ名説明
*ruleIdString

Alert rule ID

レスポンスパラメータ

Body パラメータ

パラメータ名説明
codeString

Response code

messageString

Response message

エラーコード

エラーコード(code)説明(message)HTTPステータスコード意味
ResourceNotFound.RuleNotExists

Rule does not exist

400Rule does not exist
ResourceNotFound.AccountNotExists

Account does not exist

400Account 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"
}