All Products
Search
Document Center

Security Center:OperateSwitchStatus

Last Updated:Feb 20, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RuleIdlongYes

The rule ID.

Note You can call the ListContainerDefenseRule operation to query the rule ID.
900001
StatusstringYes

The rule status for container tamper-proofing. Valid values:

  • on
  • off
on

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

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.