Modifies the switch status of container proactive defense interception policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyInterceptionRuleSwitch |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
The ID of the cluster that you want to modify. Note
You can call the DescribeGroupedContainerInstances operation to obtain this parameter. |
ce5c29aba99694ade9ba85dc620b4**** |
| RuleSwitch |
integer |
No |
The switch status of the rule. Valid values:
|
1 |
| RuleIds |
string |
No |
The list of rule IDs to operate on. Separate multiple IDs with commas (,). Note
You can call the ListInterceptionRulePage operation to obtain this parameter. |
403287 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique identifier for each API request. You can use this ID to troubleshoot issues. |
DE725A60-95F2-50E8-8F5D-81055215E7DA |
Examples
Success response
JSON format
{
"RequestId": "DE725A60-95F2-50E8-8F5D-81055215E7DA"
}
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.