All Products
Search
Document Center

Security Center:OperateSwitchStatus

Last Updated:Oct 24, 2025

Changes the status of a rule for container tamper-proofing.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RuleIdlongYes

The ID of the rule.

Note You can call the ListContainerWebDefenseRule operation to query the IDs of rules.
900001
StatusstringYes

The status of the rule. Valid values: on and off.

on

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

8AE9D3DA-406B-51FA-AA1C-89440C1459BF

Examples

Sample success responses

JSONformat

{
  "RequestId": "8AE9D3DA-406B-51FA-AA1C-89440C1459BF"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.