Creates a core file monitoring rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RuleName | string | Yes | The name of the rule. | tetsRule |
ProcPaths | array | Yes | The paths to the processes that you want to monitor. Wildcard characters are supported. | |
string | Yes | The path to the process that you want to monitor. | /usr/local/* | |
FilePaths | array | Yes | The paths to the files that you want to monitor. Wildcard characters are supported. | |
string | Yes | The path to the file that you want to monitor. | /usr/* | |
FileOps | array | Yes | The operations that you want to perform on the files. | |
string | Yes | The operation that you want to perform on the file. Valid values:
| CHMOD | |
RuleAction | string | Yes | The handling method of the rule. Valid values:
| pass |
AlertLevel | integer | No | The severity of alerts. Valid values:
| 0 |
SwitchId | string | No | The switch ID of the rule. | FILE_PROTECT_RULE_SWITCH_TYPE_0000 |
Status | integer | No | Specifies whether to enable the rule. Valid values:
| 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "EC7C8984-D108-516F-9D36-3DF1D1228CCA",
"RuleId": 123
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.