DigitalOcean-public.v2-new_Kubernetes
Retrieve User Information for a Kubernetes Cluster
To show information the user associated with a Kubernetes cluster, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/user.
get/v2/kubernetes/clusters/{cluster_id}/user
Path parameters
cluster_idstring uuid required
A unique ID that can be used to reference a Kubernetes cluster.
Response
The response will be a JSON object with a key called kubernetes_cluster_user containing the username and in-cluster groups that it belongs to.
Example response
{
"kubernetes_cluster_user": {
"username": "sammy@digitalocean.com",
"groups": [
"k8saas:authenticated"
]
}
}