Changes the status of non-image program defense rules.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RuleIds | array | No | The IDs of rules. | |
long | No | The ID of the rule. Note
You can call the ListContainerDefenseRule operation to query the IDs of rules.
| 188 | |
RuleSwitch | integer | No | The status of the rule. Valid values:
| 0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": 30,
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "C8A137FB-6E18-5741-9B47-D9A0EBA3495F",
"HttpStatusCode": 200
}
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.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-11-17 | The Error code has changed | see changesets | ||||
|