Querying the Alarm Whitelist
Function
This API is used to query the alarm whitelist.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /v5/{project_id}/event/white-list/alarm
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| enterprise_project_id | No | String | ID of the enterprise project that a server belongs. An enterprise project can be configured only after the enterprise project function is enabled. Enterprise project ID. The value 0 indicates the default enterprise project. To query servers in all enterprise projects, set this parameter to all_granted_eps. If you have only the permission on an enterprise project, you need to transfer the enterprise project ID to query the server in the enterprise project. Otherwise, an error is reported due to insufficient permission. |
| hash | No | String | Hash value of the event whitelist description (SHA256 algorithm) |
| event_type | No | Integer | Event type. Its value can be: |
| offset | No | Integer | Offset, which specifies the start position of the record to be returned. |
| limit | No | Integer | Number of records displayed on each page. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. |
| region | No | String | Region ID |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| total_num | Integer | Definition Total number. Range The value range is 0 to 2,147,483,647. |
| remain_num | Integer | Number of whitelists that can be added |
| limit_num | Integer | Maximum number of whitelists |
| event_type_list | Array of integers | Types of events that can be filtered |
| data_list | Array of AlarmWhiteListResponseInfo objects | Alarm whitelist details |
| Parameter | Type | Description |
|---|---|---|
| enterprise_project_name | String | Enterprise project name |
| hash | String | Definition Hash value of the event whitelist description (SHA256 algorithm). Constraints N/A Range The value can contain 0 to 512 characters. Default Value N/A |
| description | String | Definition Description. Constraints N/A Range You can enter 0 to 64 characters. Default Value N/A |
| event_type | Integer | Definition Event type. Range |
| white_field | String | Whitelist fields. The options are as follows: |
| field_value | String | Whitelist fields value |
| judge_type | String | Wildcard. The options are as follows: |
| update_time | Long | Time when the event whitelist is updated, in milliseconds. |
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
Request succeeded.
{
"data_list" : [ {
"enterprise_project_name" : "All projects",
"event_type" : 1001,
"hash" : "9ab079e5398cba3a368ccffbd478f54c5ec3edadf6284ec049a73c36419f1178",
"description" : "/opt/cloud/3rdComponent/install/jre-8u201/bin/java",
"update_time" : 1665715677307,
"white_field" : "process/file hash",
"judge_type" : "contain",
"field_value" : "abcd12345612311112212323"
} ],
"event_type_list" : [ 1001 ],
"total_num" : 1
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot