All Products
Search
Document Center

Security Center:ListOpaClusterStrategyNew

Last Updated:Feb 20, 2024

Queries at-risk image blocking rules.

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
StrategyNamearrayNo

The rule names.

stringNo

The rule name.

default
ImageNamearrayNo

The image names.

stringNo

The image name.

repo:tag
LabelarrayNo

The tags that are added to the container.

stringNo

The tag that is added to the container.

testlabel
PageSizeintegerNo

The number of entries per page.

20
CurrentPageintegerNo

The page number.

1

Response parameters

ParameterTypeDescriptionExample
object

PageResult

Listobject []

The rules.

StrategyIdlong

The rule ID.

1
StrategyNamestring

The rule name.

auto-strategy-vohuiq
Descriptionstring

The description.

Config the Event Audit policys
UnScanedImageboolean

Indicates whether the rule supports unscanned images. Valid values:

  • true
  • false
true
MaliciousImageboolean

Indicates whether the rule supports malicious Internet images. Valid values:

  • true
  • false
true
Actioninteger

The action of the rule. Valid values:

  • 1: trigger alerts
  • 2: block
  • 3: allow
1
ClusterCountinteger

The number of clusters on which the rule takes effect.

1
ClusterIdListarray

The clusters on which the rule takes effect.

string

The cluster on which the rule takes effect.

cfb41a8**8a106
ImageNamearray

The image names.

string

The image name.

centos
Labelarray

The tags that are added to the container.

string

The tag that is added to the container.

alertmanager:main
PageInfoobject

The pagination information.

CurrentPageinteger

The page number.

1
PageSizeinteger

The number of entries per page.

20
TotalCountinteger

The total number of entries returned.

45
Countinteger

The number of entries returned on the current page.

20
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The response code. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code.

200
Messagestring

The message that shows the export task result. The value is fixed as success, which indicates that the export task is successful.

success
RequestIdstring

The request ID.

7DFD947C-9172-5129-B783-DD14C55191D2
HttpStatusCodeinteger

The HTTP status code.

200

Examples

Sample success responses

JSONformat

{
  "List": [
    {
      "StrategyId": 1,
      "StrategyName": "auto-strategy-vohuiq",
      "Description": "Config the Event Audit policys",
      "UnScanedImage": true,
      "MaliciousImage": true,
      "Action": 1,
      "ClusterCount": 1,
      "ClusterIdList": [
        "cfb41a8**8a106"
      ],
      "ImageName": [
        "centos"
      ],
      "Label": [
        "alertmanager:main"
      ]
    }
  ],
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 45,
    "Count": 20
  },
  "Success": true,
  "Code": "200",
  "Message": "success",
  "RequestId": "7DFD947C-9172-5129-B783-DD14C55191D2",
  "HttpStatusCode": 200
}

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.