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"
}
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.