Queries the information about the self-managed Kubernetes clusters that are added to Security Center.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|
The current API does not require request parameters
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "52870893-48A7-5A9E-9E05-6253E5B6****",
"PrivateK8sInfos": [
{
"VpcId": "vpc-2zet5l358k6z0gnz*****",
"ApiServerIp": "192.168.XX.XX",
"K8sVersion": 1.18,
"NetType": 1,
"ClusterName": "xxx",
"KubeConfig": "xxx",
"AliUid": 12345,
"Id": 1,
"RegionId": "cn-hangzhou"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.