查詢告警列表
更新時間 2024-12-05 17:31:13
最近更新時間: 2024-12-05 17:31:13
分享文章
接口功能介紹
查詢告警列表
接口約束
傳參規范
URI
GET /vfw/v2_alarm_query
路徑參數
無
Query參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| firewallId | 是 | String | 防火墻id | c7cfe772fd3f482da630132e6548a19a | |
| startTime | 是 | String | 開始時間不為空 | 2024-10-23T08:31:25Z | |
| finishTime | 是 | String | 結束時間不為空 | 2024-10-23T08:31:25Z | |
| attackApp | 否 | Array of Longs | 攻擊應用 | [1] | |
| attackType | 否 | Array of Strings | 攻擊類型 | ["Vulnerability-CSRF"] | |
| attackLevel | 否 | Array of Strings | 攻擊等級 | ["LOW"] | |
| sourceType | 否 | Array of Strings | 判斷來源 | ["BASE"] | |
| attackDirection | 否 | Array of Strings | 方向 | ["1"] | |
| attackIp | 否 | String | 攻擊ip | 1.1.1.1 | |
| affectedIp | 否 | String | 受影響ip | 2.2.2.2 | |
| page | 否 | Integer | 頁碼 | 1 | |
| size | 否 | Integer | 頁大小 | 10 |
請求參數
請求頭header參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| urlType | 是 | String | 請求地址類型 | CTAPI | |
| regionId | 是 | String | 資源池id | 100054c0416811e9a6690242ac110002 |
請求體body參數
無
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | String | 狀態碼 | ||
| message | String | 返回信息 | 成功 | |
| error | String | 錯誤碼:CFW_0000 :成功!;CFW_0001:參數錯誤!;CFW_0002:業務錯誤! | CFW_0000 | |
| returnObj | Object | 接口返回結果 | PageInfo |
表 PageInfo
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| total | Integer | 總記錄數 | 1 | |
| list | Array of Objects | 結果集 | AlarmView | |
| pageNum | Integer | 當前頁的頁碼 | 1 | |
| pageSize | Integer | 每頁的數量 | 10 | |
| size | Integer | 當前頁的數量 | 1 | |
| startRow | Long | 當前頁面第一個元素在數據庫中的行號 | 1 | |
| endRow | Long | 當前頁面最后一個元素在數據庫中的行號 | 1 | |
| pages | Integer | 總頁數 | 1 | |
| prePage | Integer | 前一頁 | 0 | |
| nextPage | Integer | 下一頁 | 0 | |
| isFirstPage | Boolean | 是否為首頁 | true | |
| isLastPage | Boolean | 是否為末頁 | true | |
| hasPreviousPage | Boolean | 是否有前一頁 | false | |
| hasNextPage | Boolean | 是否有下一頁 | false | |
| navigatePages | Integer | 導航頁碼數 | 8 | |
| navigatepageNums | Array of Integers | 所有導航頁號 | [1] | |
| navigateFirstPage | Integer | 導航條上的第一頁 | 1 | |
| navigateLastPage | String | 導航條上的最后一頁 | 1 |
表 AlarmView
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| createTime | String | 創建時間 | 2024-10-24T01:44:12Z | |
| updateTime | String | 修改時間 | 2024-10-24T01:44:12Z | |
| alarmName | String | 告警名稱 | 100.126.9.172_192.168.10.5_POP3_Weak_Password_Login_Attempt(TCP)告警 | |
| attackType | String | 攻擊類型 | InformationDisclosure-WeakPassword | |
| attackIp | String | 攻擊ip | 100.126.9.172 | |
| affectedIp | String | 受影響ip | 192.168.10.5 | |
| attackLevel | String | 攻擊等級 | "MIDDLE" | |
| triggerCount | Integer | 觸發次數 | 1 | |
| ruleId | Long | 命中規則id | 43049 | |
| ruleName | String | 命中規則名稱 | POP3_Weak_Password_Login_Attempt(TCP) | |
| sourceType | String | 判斷來源 | BASE | |
| attackDirection | String | 方向 | 1 | |
| isHandled | Boolean | 標記處理 | false | |
| alarmId | String | 告警id | 119320 |
枚舉參數
無
請求示例
請求url
無
請求頭header
{
"regionid": "100054c0416811e9a6690242ac110002",
"urlType": "CTAPI"
}
請求體body
{}
響應示例
{
"statusCode": "200",
"error": "CFW_0000",
"message": "成功!",
"returnObj": {
"total": 12,
"list": [
{
"createTime": "2024-10-24T01:44:12Z",
"updateTime": "2024-10-24T01:44:12Z",
"alarmName": "100.126.9.172_192.168.10.5_POP3_Weak_Password_Login_Attempt(TCP)告警",
"attackType": "InformationDisclosure-WeakPassword",
"attackIp": "100.126.9.172",
"affectedIp": "192.168.10.5",
"attackLevel": "MIDDLE",
"triggerCount": 1,
"ruleId": 43049,
"ruleName": "POP3_Weak_Password_Login_Attempt(TCP)",
"sourceType": "BASE",
"attackDirection": "1",
"isHandled": false,
"alarmId": "119320"
}
],
"pageNum": 1,
"pageSize": 10,
"size": 10,
"startRow": 1,
"endRow": 10,
"pages": 2,
"prePage": 0,
"nextPage": 2,
"isFirstPage": true,
"isLastPage": false,
"hasPreviousPage": false,
"hasNextPage": true,
"navigatePages": 8,
"navigatepageNums": [
1,
2
],
"navigateFirstPage": 1,
"navigateLastPage": 2
},
"statusCode": "800"
}
狀態碼
請參考
錯誤碼
請參考