You can call DescribeClusterUserKubeconfig to describe how to obtain the kubeconfig file that is used to configure access to the Kubernetes cluster. The file contains the identity information of the current user.

Request information

Request line

GET /k8s/:clusterid/user_config

Special request header

None. See Public request headers.

Response information

Response line

HTTP/1.1 200 OK

Special response header

None. See Public response headers.

Response body

    "config": "string"

Response body explanation

Name Type Description
config String Kubeconfig file used by the current user to access the cluster.


Request example

GET /k8s/c5b5e80b0b64a4bf6939d2d8fbbc5ded7/user_config HTTP/1.1
<Public request header>

Response example

HTTP/1.1 200 Ok
<Public response header>
     "config": "xxxxxxxx"