Skip to main content
func (*ClusterClient) Get(
    ctx context.Context,
    slug string,
) (*workflows.Cluster, error)
Get a cluster by its slug.

Parameters

slug
string
The slug of the cluster

Returns

A cluster object.
cluster, err := client.Clusters.Get(ctx,
    "my-cluster-tZD9Ca1qsqt3V"
)

Errors

not_found
cluster not found
The specified cluster does not exist.