clusters_users
Creates, updates, deletes, gets or lists a clusters_users
resource.
Overview
Name | clusters_users |
Type | Resource |
Id | digitalocean.kubernetes.clusters_users |
Fields
Name | Datatype | Description |
---|---|---|
groups | array | A list of in-cluster groups that the user belongs to. |
username | string | The username for the cluster admin user. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
kubernetes_get_cluster_user | SELECT | cluster_id | To show information the user associated with a Kubernetes cluster, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/user . |
SELECT
examples
To show information the user associated with a Kubernetes cluster, send a GET request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/user
.
SELECT
groups,
username
FROM digitalocean.kubernetes.clusters_users
WHERE cluster_id = '{{ cluster_id }}';