Modifies a rule for container tamper-proofing.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ModifySasContainerWebDefenseRule | update | *All Resources * |
| none |
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 | array<object> | No | The paths that are protected. | |
object | No | |||
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.