外部告警:刷新告警聯系人組token
更新時間 2024-09-25 16:21:00
最近更新時間: 2024-09-25 16:21:00
分享文章
外部告警
外部告警:刷新告警聯系人組token
接口功能介紹
調用此接口可刷新告警聯系人組token。
接口約束
無。
URI
GET /v4/monitor/refresh-token
路徑參數
無
Query參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| contactGroupID | 是 | String | 告警聯系人組ID | cf21ea17-e31d-5f47-bf10-6c489a86f67d |
請求參數
請求頭header參數
無
請求體body參數
無
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗),默認值:800 | 800 | |
| errorCode | String | 失敗時的錯誤代碼,參見公共錯誤碼說明 | ||
| message | String | 失敗時的錯誤描述,一般為英文描述 | Success | |
| msgDesc | String | 失敗時的錯誤描述,一般為中文描述 | 成功 | |
| error | String | 錯誤碼,請求成功時,不返回該字段 | Openapi.Parameter.Error | |
| returnObj | Object | 返回參數 | returnObj |
表 returnObj
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| token | String | token | 1411668ec8c13f57472576d5d1603226 |
請求示例
請求url
/v4/monitor/refresh-token?contactGroupID=cf21ea17-e31d-5f47-bf10-6c489a86f67d
請求頭header
無
請求體body
無
響應示例
{
"statusCode":800,
"returnObj":{
"token":"1411668ec8c13f57472576d5d1603226"
},
"errorCode":"",
"message":"Success",
"msgDesc":"成功"
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 請求成功 |
錯誤碼
| errorCode | 描述 |
|---|---|
| Monitor.ContactGroup.ContactGroupNotExist | 告警聯系組不存在 |
| 其他 | 參見公共錯誤碼說明 |