Modifies the content of a core file monitoring rule based on the rule ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:UpdateFileProtectRule |
update |
*ClientFileProtect
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleName |
string |
Yes |
The rule name. |
test-rule-1 |
| ProcPaths |
array |
Yes |
The list of process listening paths. |
|
|
string |
No |
The list of process listening paths. |
/usr/local/* |
|
| FilePaths |
array |
Yes |
The list of monitored file paths. Wildcards are supported. |
|
|
string |
No |
The monitored file path. Wildcards are supported. |
/usr/* |
|
| FileOps |
array |
Yes |
The list of operations performed on files. |
|
|
string |
No |
The operation performed on a file. Valid values:
Valid values:
|
WRITE |
|
| RuleAction |
string |
No |
The behavior of the rule on the client. Valid values:
Valid values:
|
pass |
| AlertLevel |
integer |
No |
The alert notification level. Valid values:
Valid values:
|
0 |
| Status |
integer |
No |
The rule status. Valid values:
Valid values:
|
1 |
| Id |
integer |
No |
The rule ID. |
1062 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. It is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues. |
339227F4-C9E1-526F-8347-1099C11F65FB |
Examples
Success response
JSON format
{
"RequestId": "339227F4-C9E1-526F-8347-1099C11F65FB"
}
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.