告警配置查詢
更新時間 2025-01-16 10:31:55
最近更新時間: 2025-01-16 10:31:55
分享文章
接口功能介紹
查詢用戶各類告警的告警配置,如當告警發生時,是否發送郵件。
接口約束
此功能為免費功能。
URI
GET /v1/setFocus/queryList
路徑參數
無
Query參數
無
請求參數
請求頭header參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| regionid | 是 | String | 資源池id | 100054c0416811e9a6690242ac110002 | |
| urlType | 是 | String | 請求地址類型。CTAPI | CTAPI | |
| Content-Type | 是 | String | Content-Type | application/json |
請求體body參數
無
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | String | 狀態碼 200-成功 | ||
| error | String | 返回碼 CTCSSCN_000000 :成功; CTCSSCN_000001:失敗; CTCSSCN_000003:用戶未簽署協議,安全衛士系統無法正常使用; CTCSSCN_000004:鑒權錯誤; CTCSSCN_000005:用戶沒有付費版配額,功能不可用 |
CTCSSCN_000000 | |
| message | String | 返回信息 | 成功 | |
| returnObj | Object | 返回對象 | Data |
表 Data
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| totalStatus | Integer | 告警總開關0-關閉 1-打開 | 1 | |
| updateAlerts | Array of Objects | 告警配置 | AlertInfo |
表 AlertInfo
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| alertType | Integer | 告警類型 1-網頁放篡改 2-異常登錄 3-暴力破解 4-Linux漏洞 5-基線檢測 6-弱口令檢測 7-病毒查殺 8-可疑操作 9-后門檢測 10-win漏洞 11-反彈shell |
1 | |
| status | Integer | 告警開關 0-關閉 1-打開 |
0 | |
| noticeType | Integer | 告警通知方式 0-短信 1-郵件 2-站內信 3-mdr |
1 | |
| alertEvent | Integer | 告警事件等級列表 | 1 |
枚舉參數
無
請求示例
請求url
無
請求頭header
{"regionid": "100054c0416811e9a6690242ac110002","Content-Type":"application/json","urlType": "CTAPI"}
請求體body
無
響應示例
{"statusCode": "200","error": "CTCSSCN_000000","message": "查詢成功!","returnObj": {"totalStatus": 1,"updateAlerts": [{"alertType": 1,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [1],"extInfo": null},{"alertType": 10,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [0,8,1],"extInfo": null},{"alertType": 11,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [0,8,1,2,3],"extInfo": null},{"alertType": 2,"status": 0,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [4],"extInfo": null},{"alertType": 3,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [5],"extInfo": null},{"alertType": 4,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [0,8,1],"extInfo": null},{"alertType": 5,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [6],"extInfo": null},{"alertType": 6,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [7],"extInfo": null},{"alertType": 7,"status": 1,"totalStatus": 1,"noticeType": [2,1],"alertEvent": [1],"extInfo": null},{"alertType": 8,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [1,2],"extInfo": null},{"alertType": 9,"status": 1,"totalStatus": 1,"noticeType": [1,2],"alertEvent": [1,3,2],"extInfo": null}]}}
狀態碼
請參考
錯誤碼
請參考