获取主控实例下关联集群策略治理详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClusterId | string | 是 | 主控实例 ID。 | c09946603cd764dac96135f51d1ba**** |
返回参数
示例
正常返回示例
JSON
格式
{
"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
}
]
}
}
}
}
]
}
错误码
访问错误中心查看更多错误码。