Queries a core file monitoring rule by rule ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetFileProtectRule |
get |
*ClientFileProtect
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
The ID of the rule. |
245 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
C0DF9057-67C5-574D-A2D2-0CA9AC74C4D3 |
| Data |
object |
The returned data. |
|
| Action |
string |
The handling method of the rule. Valid values:
|
pass |
| RuleName |
string |
The name of the rule. |
test-000 |
| SwitchId |
string |
The switch ID of the rule. |
FILE_PROTECT_RULE_SWITCH_TYPE_0000 |
| Id |
integer |
The ID of the rule. |
44616 |
| AlertLevel |
integer |
The severity of alerts. Valid values:
|
0 |
| FileOps |
array |
The operations performed on the files. |
|
|
string |
The operation performed on the file. Valid values:
|
CHMOD |
|
| FilePaths |
array |
The paths to the monitored files. |
|
|
string |
The path to the monitored file. Wildcard characters are supported. |
/usr/* |
|
| ProcPaths |
array |
The paths to the monitored processes. |
|
|
string |
The path to the monitored process. Wildcard characters are supported. |
/usr/local/* |
|
| Status |
integer |
The status of the rule. Valid values:
|
1 |
| Platform |
string |
The type of the operating system. Valid values:
|
linux |
Examples
Success response
JSON format
{
"RequestId": "C0DF9057-67C5-574D-A2D2-0CA9AC74C4D3",
"Data": {
"Action": "pass",
"RuleName": "test-000",
"SwitchId": "FILE_PROTECT_RULE_SWITCH_TYPE_0000",
"Id": 44616,
"AlertLevel": 0,
"FileOps": [
"CHMOD"
],
"FilePaths": [
"/usr/*"
],
"ProcPaths": [
"/usr/local/*"
],
"Status": 1,
"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.