» Data Source: oci_containerengine_clusters

This data source provides the list of Clusters in Oracle Cloud Infrastructure Container Engine service.

List all the cluster objects in a compartment.

» Example Usage

data "oci_containerengine_clusters" "test_clusters" {
    #Required
    compartment_id = "${var.compartment_id}"

    #Optional
    name = "${var.cluster_name}"
    state = "${var.cluster_state}"
}

» Argument Reference

The following arguments are supported:

  • compartment_id - (Required) The OCID of the compartment.
  • name - (Optional) The name to filter on.
  • state - (Optional) A cluster lifecycle state to filter on. Can have multiple parameters of this name.

» Attributes Reference

The following attributes are exported:

» Cluster Reference

The following attributes are exported: