Queries the certificate of a Container Service for Kubernetes (ACK) edge cluster.
Operation description
-
The maximum number of times that each user can call this operation per second is 100.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeClusterKubeConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
The cluster ID. |
c8f0377146d104687ac562eef9403**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The information about the cluster. |
||
| RequestId |
string |
The ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| ClusterId |
string |
The cluster ID. |
c8f0377146d104687ac562eef9403**** |
| Kubeconfig |
string |
The cluster certificate. |
apiVersion: v1 clusters: - cluster: certificate-authority-data:*** server: https://****:6443 name: kubernetes contexts: - context: cluster: kubernetes user: "2580306074811*****" name: 258******* kind: Config users: - name: "2580306074811*****" user: client-certificate-data:*** client-key-data: *** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"ClusterId": "c8f0377146d104687ac562eef9403****",
"Kubeconfig": "apiVersion: v1\nclusters:\n- cluster:\n certificate-authority-data:***\n server: https://****:6443\n name: kubernetes\ncontexts:\n- context:\n cluster: kubernetes\n user: \"2580306074811*****\"\n name: 258*******\nkind: Config\nusers:\n- name: \"2580306074811*****\"\n user:\n client-certificate-data:***\n client-key-data: ***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | BadRequest | Invalid request parameters | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 500 | InternalServerError | Internal service error | |
| 404 | StatusNotFound | Certificate does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.