Data Source: oci_opensearch_opensearch_clusters

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

Returns a list of OpensearchClusters.

Prerequisites

The below policies must be created in compartment before creating OpensearchCluster

{Compartment-Name} - Name of your compartment
Allow service opensearch to manage vnics in compartment {Compartment-Name}
Allow service opensearch to use subnets in compartment {Compartment-Name}
Allow service opensearch to use network-security-groups in compartment {Compartment-Name}
Allow service opensearch to manage vcns in compartment {Compartment-Name}

For latest documentation on OpenSearch use please refer to https://docs.oracle.com/en-us/iaas/Content/search-opensearch/home.htm
Required permissions: https://docs.oracle.com/en-us/iaas/Content/search-opensearch/Concepts/ocisearchpermissions.htm

Example Usage

data "oci_opensearch_opensearch_clusters" "test_opensearch_clusters" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	display_name = var.opensearch_cluster_display_name
	id = var.opensearch_cluster_id
	state = var.opensearch_cluster_state
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

OpensearchCluster Reference

The following attributes are exported: