Skip to main content

clusters_users

Creates, updates, deletes, gets or lists a clusters_users resource.

Overview

Nameclusters_users
TypeResource
Iddigitalocean.kubernetes.clusters_users

Fields

NameDatatypeDescription
groupsarrayA list of in-cluster groups that the user belongs to.
usernamestringThe username for the cluster admin user.

Methods

NameAccessible byRequired ParamsDescription
kubernetes_get_cluster_userSELECTcluster_idTo 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 }}';