All Products
Search
Document Center

Security Center:ModifyContainerPluginRule

Last Updated:Feb 20, 2024

Modifies the defense rule against container escapes.

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
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
RuleIdintegerYes

The ID of the rule.

100012
ModeintegerNo

The action mode of the rule. Valid values:

  • 1: alerts
  • 2: block
1
RuleNamestringNo

The name of the rule.

test
SelectedPolicyarrayNo

The rule items.

stringNo

The rule item.

ssh_user_publickey_config
RuleTypeintegerNo

The type of the rule. Valid values:

  • 0: user-defined rule
  • 1: built-in rule
0
WhiteImagesarrayNo

The images that are added to the whitelist.

stringNo

The image that is added to the whitelist.

centos

Response parameters

ParameterTypeDescriptionExample
object
Dataobject

The defense rule against container escapes.

RuleIdlong

The ID of the rule.

600640
RuleNamestring

The name of the rule.

test555
SwitchIdstring

The switch ID.

USER-CONTAINER-RULE-SWITCH-TYPE_xxx
RequestIdstring

The request ID.

D03DD0FD-6041-5107-AC00-383E28F1****

Examples

Sample success responses

JSONformat

{
  "Data": {
    "RuleId": 600640,
    "RuleName": "test555",
    "SwitchId": "USER-CONTAINER-RULE-SWITCH-TYPE_xxx"
  },
  "RequestId": "D03DD0FD-6041-5107-AC00-383E28F1****"
}

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.