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.
Path parameters
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"
]
}
}Changes
Changed in 4 of the 8 revisions of this API.14
- ○
api tag
DigitalOcean-public.v2-new_Kubernetesaddedapi-tag-added
- ○
api tag
Kubernetesremovedapi-tag-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 436 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○