Modifies a container escape prevention rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyContainerPluginRule |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language type for requests and responses. Default value: zh. Valid values:
|
zh |
| RuleId |
integer |
Yes |
The rule ID. Note
You can call the ListSasContainerWebDefenseRule operation to obtain this parameter. |
100012 |
| Mode |
integer |
No |
The action mode of the rule. Valid values:
|
1 |
| RuleName |
string |
No |
The rule name. |
test |
| SelectedPolicy |
array |
No |
The list of rule items. |
|
|
string |
No |
The rule item. |
ssh_user_publickey_config |
|
| RuleType |
integer |
No |
The rule type. Valid values:
|
0 |
| WhiteImages |
array |
No |
The list of whitelisted images. |
|
|
string |
No |
The whitelisted image. |
centos |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
object |
The list of container escape prevention rules. |
|
| RuleId |
integer |
The rule ID. |
600640 |
| RuleName |
string |
The rule name. |
test555 |
| SwitchId |
string |
The corresponding switch ID. |
USER-CONTAINER-RULE-SWITCH-TYPE_xxx |
| RequestId |
string |
The request ID. |
D03DD0FD-6041-5107-AC00-383E28F1**** |
Examples
Success response
JSON format
{
"Data": {
"RuleId": 600640,
"RuleName": "test555",
"SwitchId": "USER-CONTAINER-RULE-SWITCH-TYPE_xxx"
},
"RequestId": "D03DD0FD-6041-5107-AC00-383E28F1****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.