Data Source: oci_opensearch_opensearch_cluster
This data source provides details about a specific Opensearch Cluster resource in Oracle Cloud Infrastructure Opensearch service.
Gets a OpensearchCluster by identifier
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_cluster" "test_opensearch_cluster" {
#Required
opensearch_cluster_id = oci_opensearch_opensearch_cluster.test_opensearch_cluster.id
}
Argument Reference
The following arguments are supported:
opensearch_cluster_id
- (Required) unique OpensearchCluster identifier
Attributes Reference
The following attributes are exported:
availability_domains
- The availability domains to distribute the cluser nodes across.compartment_id
- The OCID of the compartment where the cluster is located.data_node_count
- The number of data nodes configured for the cluster.data_node_host_bare_metal_shape
- The bare metal shape for the cluster’s data nodes.data_node_host_memory_gb
- The amount of memory in GB, for the cluster’s data nodes.data_node_host_ocpu_count
- The number of OCPUs configured for the cluster’s data nodes.data_node_host_type
- The instance type for the cluster’s data nodes.data_node_storage_gb
- The amount of storage in GB, to configure per node for the cluster’s data nodes.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
display_name
- The name of the cluster. Avoid entering confidential information.fqdn
- The fully qualified domain name (FQDN) for the cluster’s API endpoint.freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
id
- The OCID of the cluster.lifecycle_details
- Additional information about the current lifecycle state of the cluster.master_node_count
- The number of master nodes configured for the cluster.master_node_host_bare_metal_shape
- The bare metal shape for the cluster’s master nodes.master_node_host_memory_gb
- The amount of memory in GB, for the cluster’s master nodes.master_node_host_ocpu_count
- The number of OCPUs configured for cluster’s master nodes.master_node_host_type
- The instance type for the cluster’s master nodes.opendashboard_fqdn
- The fully qualified domain name (FQDN) for the cluster’s OpenSearch Dashboard API endpoint.opendashboard_node_count
- The number of OpenSearch Dashboard nodes configured for the cluster.opendashboard_node_host_memory_gb
- The amount of memory in GB, for the cluster’s OpenSearch Dashboard nodes.opendashboard_node_host_ocpu_count
- The amount of memory in GB, for the cluster’s OpenSearch Dashboard nodes.opendashboard_private_ip
- The private IP address for the cluster’s OpenSearch Dashboard.opensearch_fqdn
- The fully qualified domain name (FQDN) for the cluster’s API endpoint.opensearch_private_ip
- The cluster’s private IP address.security_master_user_name
- The name of the master user that are used to manage security configsecurity_master_user_password_hash
- The password hash of the master user that are used to manage security configsecurity_mode
- The security mode of the cluster.software_version
- The software version the cluster is running.state
- The current state of the cluster.subnet_compartment_id
- The OCID for the compartment where the cluster’s subnet is located.subnet_id
- The OCID of the cluster’s subnet.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The amount of time in milliseconds since the cluster was created.time_deleted
- The amount of time in milliseconds since the cluster was updated.time_updated
- The amount of time in milliseconds since the cluster was updated.total_storage_gb
- The size in GB of the cluster’s total storage.vcn_compartment_id
- The OCID for the compartment where the cluster’s VCN is located.vcn_id
- The OCID of the cluster’s VCN.