Querying the Alarm Whitelist¶
Function¶
This API is used to query the alarm whitelist.
URI¶
GET /v5/{project_id}/event/white-list/alarm
Parameter | Mandatory | Type | Description |
---|---|---|---|
project_id | Yes | String | Project ID Minimum: 20 Maximum: 64 |
Parameter | Mandatory | Type | Description |
---|---|---|---|
enterprise_project_id | No | String | Enterprise project ID. The value 0 indicates the default enterprise project. To query all enterprise projects, set this parameter to all_granted_eps. Default: 0 Minimum: 0 Maximum: 64 |
hash | No | String | Hash value of the event whitelist description (SHA256 algorithm) Minimum: 64 Maximum: 64 |
event_type | No | Integer | Event type. Its value can be:
Minimum: 1000 Maximum: 30000 |
offset | No | Integer | Offset, which specifies the start position of the record to be returned. Minimum: 0 Maximum: 2000000 Default: 0 |
limit | No | Integer | Number of records displayed on each page. Minimum: 10 Maximum: 1000 Default: 10 |
Request Parameters¶
Parameter | Mandatory | Type | Description |
---|---|---|---|
X-Auth-Token | Yes | String | User token. Minimum: 1 Maximum: 32768 |
Response Parameters¶
Status code: 200
Parameter | Type | Description |
---|---|---|
total_num | Integer | Total number |
event_type_list | Array of integers | Types of events that can be filtered Minimum: 0 Maximum: 2147483647 Array Length: 0 - 30000 |
data_list | Array of AlarmWhiteListResponseInfo objects | Alarm whitelist details Array Length: 0 - 100 |
Parameter | Type | Description |
---|---|---|
enterprise_project_name | String | Enterprise project name |
hash | String | Hash value of the event whitelist description (SHA256 algorithm) |
description | String | Description |
event_type | Integer | Intrusion type. Its value can be:
|
update_time | Long | Time when the event whitelist is updated, in milliseconds. Minimum: 0 Maximum: 9223372036854775807 |
Example Requests¶
Query the first 10 alarm whitelists whose enterprise project is xxx.
GET https://{endpoint}/v5/{project_id}/event/white-list/alarm?limit=10&offset=0&enterprise_project_id=xxx
Example Responses¶
Status code: 200
Alarm whitelist
{
"data_list" : [ {
"enterprise_project_name" : "All projects",
"event_type" : 1001,
"hash" : "9ab079e5398cba3a368ccffbd478f54c5ec3edadf6284ec049a73c36419f1178",
"description" : "/opt/cloud/3rdComponent/install/jre-8u201/bin/java",
"update_time" : 1665715677307
} ],
"event_type_list" : [ 1001 ],
"total_num" : 1
}
Status Codes¶
Status Code | Description |
---|---|
200 | Alarm whitelist |
Error Codes¶
See Error Codes.