Filters and retrieves a list of rules that match the specified conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListFileProtectEvent |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleName |
string |
No |
The rule name. |
test-rule-1 |
| Status |
string |
No |
The event status. Valid values:
|
2 |
| AlertLevels |
array |
No |
The list of alert notification levels. |
|
|
integer |
No |
The alert notification level. Valid values:
|
1 |
|
| CurrentPage |
integer |
No |
The page number of the current page in a paging query. |
1 |
| PageSize |
string |
No |
The maximum number of entries to return on each page in a paging query. |
20 |
| InstanceId |
string |
No |
The ID of the asset instance. |
i-bp1g6wxdwps7s9dz**** |
| Uuid |
string |
No |
The UUID of the server to query. Note
You can call the DescribeCloudCenterInstances operation to obtain this parameter. |
4fe8e1cd-3c37-4851-b9de-124da32c**** |
| InstanceName |
string |
No |
The name of the server to query. |
ca_cpm_**** |
| InternetIp |
string |
No |
The public IP address of the asset to query. |
120.27.XX.XX |
| IntranetIp |
string |
No |
The private IP address of the asset to query. |
172.26.XX.XX |
| StartTime |
integer |
No |
The timestamp of the start time. |
1656038740435 |
| EndTime |
integer |
No |
The timestamp of the end time. |
1683257937775 |
| Operation |
string |
No |
The type of operation performed on the file. Valid values:
|
READ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. Alibaba Cloud generates a unique identifier for each request. You can use the request ID to troubleshoot issues. |
23AD0BD2-8771-5647-819E-6BA51E212F80 |
| EventList |
array<object> |
The list of events. |
|
|
object |
The file monitoring event. |
||
| AlertLevel |
integer |
The alert notification level. Valid values:
|
1 |
| Uuid |
string |
The UUID of the server associated with the process. |
94b44720-d982-4d20-a4e1-80a1a57b**** |
| RuleName |
string |
The rule name. |
test-rule-1 |
| LatestTime |
integer |
The most recent time when the event occurred. |
1694576692000 |
| Status |
integer |
The event status. Valid values:
|
1 |
| Id |
integer |
The event ID. |
161757 |
| InstanceName |
string |
The name of the server instance. |
kyy-admin-01 |
| InternetIp |
string |
The public IP address of the server. |
121.40.XX.XX |
| IntranetIp |
string |
The private IP address of the asset. |
172.22.XX.XX |
| FilePath |
string |
The file path on which the process operates. |
/etc/pam.d/su |
| Operation |
string |
The operation performed by the process on the file. |
DELETE |
| Remark |
string |
The remarks. |
test |
| ProcPermission |
string |
The process permission. |
rwxr-xr-x |
| CmdLine |
string |
The command line of the event. |
["touch","/test/aaaa"] |
| ProcPath |
string |
The process path. |
/usr/bin/sshpass |
| HandleTime |
integer |
The time when the event was handled. |
1694576692000 |
| ProcessId |
string |
The process ID of the event. |
52636 |
| Platform |
string |
The operating system type. Valid values:
|
linux |
| PageInfo |
object |
The pagination information of the query result. |
|
| CurrentPage |
integer |
The page number of the current page in a paging query. |
1 |
| PageSize |
integer |
The maximum number of entries returned per page in a paging query. |
20 |
| TotalCount |
integer |
The total number of entries. |
149 |
Examples
Success response
JSON format
{
"RequestId": "23AD0BD2-8771-5647-819E-6BA51E212F80",
"EventList": [
{
"AlertLevel": 1,
"Uuid": "94b44720-d982-4d20-a4e1-80a1a57b****",
"RuleName": "test-rule-1\n",
"LatestTime": 1694576692000,
"Status": 1,
"Id": 161757,
"InstanceName": "kyy-admin-01",
"InternetIp": "121.40.XX.XX\n",
"IntranetIp": "172.22.XX.XX",
"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. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.