站點監控任務:禁用
更新時間 2023-07-19 11:41:06
最近更新時(shi)間: 2023-07-19 11:41:06
分享(xiang)文章
接口功能介紹
調用此接(jie)口可(ke)禁(jin)用站點監(jian)控任務。
接口約束
資源(yuan)池ID,站(zhan)點(dian)監控任務(wu)ID列(lie)表不能為空,且(qie)站(zhan)點(dian)監控任務(wu)ID列(lie)表里面的任務(wu)ID在(zai)查詢時(shi)status為true。
URI
POST /v4/monitor/disable-site-monitor
請求參數
請求體body參數
| 參數 | 參數類型 | 是否必填 | 示例 | 說明 | 下級對象 |
|---|---|---|---|---|---|
| regonID | String | 是 | 81f7728662dd11ec810800155d307d5b | 資源池ID | |
| siteIDList | Array of String | 是 | ["64ea1664-4347-558e-9bc6-651341c2fa15"] | 站點監控任務ID列表 |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗),默認值:800 | 800 | |
| errorCode | String | 失敗時的錯誤代碼,參見公共錯誤碼說明 | ||
| message | String | 失敗時的錯誤描述,一般為英文描述 | Success | |
| msgDesc | String | 失敗時的錯誤描述,一般為中文描述 | 成功 | |
| returnObj | Object | 返回參數,參考returnObj對象結構 | returnObj |
表returnObj
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| success | Boolean | 刪除成功標識 | true |
請求示例
POST /v4/monitor/disable-site-monitor
請求體body
{
"regionID":"81f7728662dd11ec810800155d307d5b",
"siteID":["64ea1664-4347-558e-9bc6-651341c2fa15"]
}
響應示例
{
"statusCode":800,
"returnObj":{
"success":true
},
"errorCode":"",
"message":"Success",
"msgDesc":"成功"
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 請求成功 |
錯誤碼
| errorCode | 描述 |
|---|---|
| Monitor.SiteMonitor.SitemMonitorIDNotFound | 站點ID不存在 |
| 其他 | 參見公共錯誤碼說明 |