All Products
Search
Document Center

Container Service for Kubernetes:DescribePolicyGovernanceInCluster

Last Updated:Sep 16, 2025

Queries detailed information about the policies used by the clusters that are 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:DescribePolicyGovernanceInClusterlist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the master instance.

c09946603cd764dac96135f51d1ba****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

96C6A284-0EC3-5486-9A97-E8E9EE27E9EF
PolicyGovernancesarray<object>

The detailed information about the policies.

PolicyGovernanceobject

The detailed information about the policies.

Clusterobject

The information about the associated clusters in which the policies are deployed.

ClusterIdstring

The ID of the associated cluster.

ca5cf1b5edb5c4736a6ea0dfb4061****
Namestring

The name of the associated cluster.

ack-001
RegionIdstring

The region ID of the associated cluster.

cn-heyuan
Statestring

The status of the associated cluster.

running
ClusterTypestring

The type of the associated cluster.

ManagedKubernetes
ClusterSpecstring

The specifications of the associated cluster.

ack.pro.small
Profilestring

The identifier of the associated cluster.

Default
PolicyGovernanceobject

The detailed policy information.

OnStatearray<object>

The number of policies of each severity level enabled in the associated cluster.

Stateobject

The number of policies of each severity level enabled in the associated cluster.

EnabledCountlong

The types of policies that are enabled in the associated cluster.

2
TotalCountlong

The types of policies of each severity level.

2
Severitystring

The severity level.

low
AdmitLogobject

The audit log generated by the associated cluster.

Progressstring

The status of the query. Valid values:

  • Complete: The query is successful, and the complete result is returned.
  • Incomplete: The query is successful, but the query result is incomplete. To obtain the complete result, you must call the operation again.
Complete
Countstring

The number of log entries in the query result.

100
Logsarray<object>

The content of the audit log.

Logobject

The content of the audit log.

string

The content of the audit log.

c8155823d057948c69a****
LogProjectstring

The name of the Log Service project.

demo
LogStorestring

The name of the Logstore.

demo
Violationobject

The number of deployments that match the policies in the associated cluster, including deployments that are blocked and deployments that have triggered alerting.

TotalViolationsobject

The number of deployments that match the policies in the associated cluster, including deployments that are blocked and deployments that have triggered alerting. The deployments are classified by severity level.

Denyarray<object>

The information about the deployments that are blocked.

DenySeverityobject

The information about the deployments that are blocked.

Severitystring

The severity level.

low
Violationslong

The number of deployments that are blocked.

2
Warnarray<object>

The information about the deployments that have triggered alerting.

WarnSeverityobject

The information about the deployments that have triggered alerting.

Severitystring

The severity level.

low
Violationsstring

The number of deployments that have triggered alerting.

2
Violationsobject

The number of deployments that match the policies in the associated cluster, including deployments that are blocked and deployments that have triggered alerting. The deployments are classified by policy type.

Denyarray<object>

The information about the deployments that are blocked.

DenyViolationsobject

The information about the deployments that are blocked.

PolicyNamestring

The name of the policy.

ACKPSPCapabilities
PolicyDescriptionstring

The description of the policy.

Restricts secrets used in pod envs
Severitystring

The severity level of the policy.

low
Violationslong

The number of times that the policy blocks deployments.

2
Warnarray<object>

The information about the deployments that have triggered alerting.

WarnViolationsobject

The information about the deployments that have triggered alerting.

PolicyNamestring

The name of the policy.

ACKPSPCapabilities
PolicyDescriptionstring

The description of the policy.

Restricts secrets used in pod envs
Severitystring

The severity level of the policy.

low
Violationslong

The number of times that the policy generates alerts.

2

Examples

Sample success responses

JSONformat

{
  "RequestId": "96C6A284-0EC3-5486-9A97-E8E9EE27E9EF",
  "PolicyGovernances": [
    {
      "Cluster": {
        "ClusterId": "ca5cf1b5edb5c4736a6ea0dfb4061****",
        "Name": "ack-001",
        "RegionId": "cn-heyuan",
        "State": "running",
        "ClusterType": "ManagedKubernetes",
        "ClusterSpec": "ack.pro.small ",
        "Profile": "Default"
      },
      "PolicyGovernance": {
        "OnState": [
          {
            "EnabledCount": 2,
            "TotalCount": 2,
            "Severity": "low"
          }
        ],
        "AdmitLog": {
          "Progress": "Complete",
          "Count": 100,
          "Logs": [
            {
              "key": "c8155823d057948c69a****\n"
            }
          ],
          "LogProject": "demo",
          "LogStore": "demo"
        },
        "Violation": {
          "TotalViolations": {
            "Deny": [
              {
                "Severity": "low",
                "Violations": 2
              }
            ],
            "Warn": [
              {
                "Severity": "low",
                "Violations": 2
              }
            ]
          },
          "Violations": {
            "Deny": [
              {
                "PolicyName": "ACKPSPCapabilities",
                "PolicyDescription": "Restricts secrets used in pod envs\n",
                "Severity": "low",
                "Violations": 2
              }
            ],
            "Warn": [
              {
                "PolicyName": "ACKPSPCapabilities",
                "PolicyDescription": "Restricts secrets used in pod envs\n",
                "Severity": "low",
                "Violations": 2
              }
            ]
          }
        }
      }
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history