Retrieves the list of rules for the core file protection feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListFileProtectRule |
list |
*ClientFileProtect
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
The maximum number of entries per page in a paging query. |
10 |
| CurrentPage |
integer |
No |
The page number of the current page in a paging query. |
1 |
| RuleName |
string |
No |
The name of the rule. |
test-rule-1 |
| AlertLevel |
integer |
No |
The alert notification level. Valid values:
Valid values:
|
0 |
| RuleAction |
string |
No |
The action of the rule on the client. Valid values:
|
pass |
| Platform |
string |
No |
The operating system type. Valid values:
|
linux |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
FBBEB173-1F43-505F-A876-C03ECDF6CE4C |
| PageInfo |
object |
The paging information for the query. |
|
| CurrentPage |
integer |
The page number of the current page in a paging query. |
1 |
| PageSize |
integer |
The maximum number of entries per page in a paging query. |
20 |
| TotalCount |
integer |
The total number of entries returned. |
253 |
| FileProtectList |
array<object> |
The list of returned data. |
|
|
object |
The list of returned data. |
||
| Status |
integer |
The status of the rule. Valid values:
|
1 |
| AlertLevel |
string |
The alert notification level. Valid values:
|
0 |
| SwitchId |
string |
The switch ID of the rule. |
FILE_PROTECT_RULE_SWITCH_TYPE_1693474122927 |
| Id |
integer |
The rule ID. |
1412511 |
| FileOps |
array |
The list of operations performed on files. |
|
|
string |
The operation performed on a file. Valid values:
|
READ |
|
| Action |
string |
The action of the rule on the client. Valid values:
|
pass |
| FilePaths |
array |
The list of monitored file paths. Wildcards are supported. |
|
|
string |
The monitored file path. |
/usr/* |
|
| ProcPaths |
array |
The list of monitored process paths. Wildcards are supported. |
|
|
string |
The monitored process path. |
/usr/local/* |
|
| RuleName |
string |
The rule name. |
test11 |
| GmtCreate |
integer |
The creation time. |
1682304179000 |
| GmtModified |
integer |
The most recent modification time. |
1682304179000 |
| EffectInstanceCount |
integer |
The total number of affected assets. |
12 |
| Platform |
string |
The operating system type. Valid values:
|
linux |
Examples
Success response
JSON format
{
"RequestId": "FBBEB173-1F43-505F-A876-C03ECDF6CE4C",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 253
},
"FileProtectList": [
{
"Status": 1,
"AlertLevel": "0",
"SwitchId": "FILE_PROTECT_RULE_SWITCH_TYPE_1693474122927",
"Id": 1412511,
"FileOps": [
"READ"
],
"Action": "pass",
"FilePaths": [
"/usr/*"
],
"ProcPaths": [
"/usr/local/*"
],
"RuleName": "test11",
"GmtCreate": 1682304179000,
"GmtModified": 1682304179000,
"EffectInstanceCount": 12,
"Platform": "linux"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.