Creates a rule for container tamper-proofing.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RuleName | string | No | The name of the rule. | test-2020 |
PathConfDTOList | object [] | No | The paths that you want to protect. | |
DefensePath | string | Yes | The path that you want to protect. | /usr/test/ |
BackupPath | string | No | The backup path. | /tmp/test |
ExcludeFilePath | string | No | The path to the file that you want to exclude. | /usr/test/tt |
ExcludeFileType | string | No | The type of the file that you want to exclude. | jsp |
ExcludeFile | string | No | The file that you want to exclude. | /usr/test/aa |
GuardType | integer | Yes | The protecion mode. Valid values:
| 0 |
IncludeFileType | string | No | The type of the file that you want to include. | *.jsp |
IncludeFile | string | No | The file that you want to include. | /usr/test/t1 |
DefenseMode | string | No | The prevention mode. Valid values:
| audit |
ProcessPathList | array | Yes | The processes that you want to add to the whitelist. | |
string | No | The process that you want to add to the whitelist. | /bin/cp |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "8B4B6E6D-B0B0-5F05-A14E-82917D9648EE",
"Data": 200634
}
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.