All Products
Search
Document Center

Container Service for Kubernetes:DescribePolicyInstancesStatus

Last Updated:Sep 16, 2025

Queries detailed information about policy instances that are deployed in the clusters associated with a master instance.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adcp:DescribePolicyInstancesStatuslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the master instance.

c676decda7b8148d69a9aba751877****

Response parameters

ParameterTypeDescriptionExample
object

The response object.

RequestIdstring

The request ID.

5D89C59A-A7EB-5BF8-B094-6479175346CA
Policiesobject

The number of policy instances of each policy type.

PolicyInstancesarray<object>

The number of policy instances of each policy type.

PolicyInstanceobject

The number of policy instances of each policy type.

PolicyNamestring

The policy name.

ACKRestrictRoleBindings
PolicyCategorystring

The type of the policy.

compliance
PolicyDescriptionstring

The description of the policy.

Restricts use of the cluster-admin role.
PolicySeveritystring

The severity level of the policy.

low
PolicyInstancesCountlong

The number of policy instances that are deployed. If this parameter is left empty, no policy instance is deployed.

2
PolicyClustersarray<object>

The associated clusters in which the policy instances are deployed.

PolicyClusterobject

The associated cluster in which the policy instances are deployed.

ClusterIdstring

The cluster ID.

c639e5310e73e4a29ab18d6330a633****
Statusstring

The status of the policy deployment.

Success
SeverityInfoarray<object>

The number of policy instances that are deployed in the cluster.

SeverityInfoobject

The number of policy instances of each severity level.

SeverityTypestring

The severity level of the policy.

low
SeverityCountstring

The number of policy instances.

2

Examples

Sample success responses

JSONformat

{
  "RequestId": "5D89C59A-A7EB-5BF8-B094-6479175346CA",
  "Policies": {
    "PolicyInstances": [
      {
        "PolicyName": "ACKRestrictRoleBindings",
        "PolicyCategory": "compliance\n",
        "PolicyDescription": "Restricts use of the cluster-admin role.\n",
        "PolicySeverity": "low",
        "PolicyInstancesCount": 2,
        "PolicyClusters": [
          {
            "ClusterId": "c639e5310e73e4a29ab18d6330a633****",
            "Status": "Success"
          }
        ]
      }
    ],
    "SeverityInfo": [
      {
        "SeverityType": "low",
        "SeverityCount": 2
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history