Skip to main content

clusters_associated_resources

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

Overview

Nameclusters_associated_resources
TypeResource
Iddigitalocean.kubernetes.clusters_associated_resources

Fields

NameDatatypeDescription
load_balancersarrayA list of names and IDs for associated load balancers that can be destroyed along with the cluster.
volume_snapshotsarrayA list of names and IDs for associated volume snapshots that can be destroyed along with the cluster.
volumesarrayA list of names and IDs for associated volumes that can be destroyed along with the cluster.

Methods

NameAccessible byRequired ParamsDescription
kubernetes_list_associated_resourcesSELECTcluster_idTo list the associated billable resources that can be destroyed along with a cluster, send a GET request to the /v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources endpoint.

SELECT examples

To list the associated billable resources that can be destroyed along with a cluster, send a GET request to the /v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources endpoint.

SELECT
load_balancers,
volume_snapshots,
volumes
FROM digitalocean.kubernetes.clusters_associated_resources
WHERE cluster_id = '{{ cluster_id }}';