Modifies 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 |
---|---|---|---|---|
RuleId | long | Yes | The ID of the rule. | 200634 |
RuleName | string | No | The name of the rule. | wwwwwww |
PathConfDTOList | object [] | No | The paths that are protected. | |
DefensePath | string | Yes | The path that is protected. | /test/home/ |
BackupPath | string | No | The backup paths. | /tmp/test |
ExcludeFilePath | string | No | The paths to the files that are excluded. | /test/home/qq |
ExcludeFileType | string | No | The types of the files that are excluded. | php |
ExcludeFile | string | No | The files that are excluded. | /usr/test |
GuardType | integer | Yes | The protection mode. Valid values:
| 0 |
IncludeFileType | string | No | The type of the files that are included. | jsp |
IncludeFile | string | No | The files that are included. | /home/admin/test |
DefenseMode | string | Yes | The prevention mode. Valid values:
| audit |
ProcessPathList | array | No | The processes that are added to the whitelist. | |
string | No | The process that is added to the whitelist. | /bin/bash | |
PathConfId | long | No | The path ID. | 12345678 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A447E4E3-42A3-58B7-A7D4-2287745BEFDC"
}
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.