Queries core file monitoring rules that meet the specified filter condition.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ListFileProtectEvent | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RuleName | string | No | The name of the rule. | test-rule-1 |
Status | string | No | The status of the event. Valid values:
| 2 |
AlertLevels | array | No | The severities of alerts. | |
integer | No | The severity of the alert. Valid values:
| 1 | |
CurrentPage | integer | No | The page number. | 1 |
PageSize | string | No | The number of entries per page. | 20 |
InstanceId | string | No | The instance ID of the asset. | i-bp1fu4aqltf1huhc**** |
Uuid | string | No | The UUID of the server. Note
You can call the DescribeCloudCenterInstances operation to query the UUID of the server.
| inet-ecs-4e876cb0-09f7-43b8-82ef-4bc7a937*** |
InstanceName | string | No | The name of the server. | ca_cpm_**** |
InternetIp | string | No | The public IP address of the server. | 120.27.XX.XX |
IntranetIp | string | No | The private IP address of the server. | 172.26.XX.XX |
StartTime | long | No | The start timestamp of the query. | 1683080489594 |
EndTime | long | No | The end timestamp of the query. | 1683195595204 |
Operation | string | No | Type of operation on a file. eg:
| READ |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "23AD0BD2-8771-5647-819E-6BA51E212F80",
"EventList": [
{
"AlertLevel": 1,
"Uuid": "94b44720-d982-4d20-a4e1-80a1a57b5a8e",
"RuleName": "test-rule-1\n",
"LatestTime": 1694576692000,
"Status": 1,
"Id": 161757,
"InstanceName": "kyy-admin-01",
"InternetIp": "121.40.211.194",
"IntranetIp": "172.22.5.36",
"FilePath": "/etc/pam.d/su",
"Operation": "DELETE",
"Remark": "test",
"ProcPermission": "rwxr-xr-x",
"CmdLine": "[\"touch\",\"/test/aaaa\"]",
"ProcPath": " /usr/bin/sshpass",
"HandleTime": 1694576692000,
"ProcessId": "52636",
"Platform": "linux"
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 149
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParameter | Illegal parameter, please check the param. | Parameter error, please check the input parameters. |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-02 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-07-25 | The Error code has changed | View Change Details |
2024-06-21 | The request parameters of the API has changed | View Change Details |
2024-04-29 | The request parameters of the API has changed | View Change Details |
2023-10-09 | The internal configuration of the API is changed, but the call is not affected | View Change Details |