Updates a file protection rule.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleName |
string |
Yes |
The name of the rule. |
text-001 |
| ProcPaths |
array |
Yes |
The list of process listening paths. Wildcards are supported. |
|
|
string |
No |
The list of process listening paths. Wildcards are supported. |
/usr/local/* |
|
| FilePaths |
array |
Yes |
The list of monitored file paths. Wildcards are supported. |
|
|
string |
No |
The list of monitored file paths. Wildcards are supported. |
/usr/* |
|
| FileOps |
array |
Yes |
The list of operations performed on the file. |
|
|
string |
No |
The list of operations performed on the file. |
WRITE |
|
| RuleAction |
string |
Yes |
The action of the rule. Valid values:
|
pass |
| AlertLevel |
integer |
No |
The alert notification level. Valid values:
|
0 |
| Status |
integer |
Yes |
The status of the rule. Valid values:
|
1 |
| Id |
integer |
Yes |
The unique ID. |
245 |
| FileTypes |
array |
No |
The list of protected file types. |
|
|
string |
No |
The list of protected file types. |
txt |
|
| ExcludeUsers |
array |
No |
The list of users excluded from file protection. |
|
|
string |
No |
The list of users excluded from file protection. |
root |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
F8B6F758-BCD4-597A-8A2C-DA5A552C**** |
Examples
Success response
JSON format
{
"RequestId": "F8B6F758-BCD4-597A-8A2C-DA5A552C****"
}
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. |
| 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.