Configures the defense status of the container firewall.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:SetClusterInterceptionConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterIds |
string |
Yes |
The cluster ID. Separate multiple IDs with commas (,). Note
You can call the ListClusterInterceptionConfig operation to query cluster IDs. |
c60b77fe62093480db6164a3c2fa**** |
| SwitchType |
integer |
Yes |
The switch type. Valid values:
|
0 |
| SwitchOn |
integer |
Yes |
Specifies whether to enable the switch. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Result |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
74AB990C-539B-579B-9239-B8A2036B7337 |
Examples
Success response
JSON format
{
"Result": true,
"RequestId": "74AB990C-539B-579B-9239-B8A2036B7337"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.