oci.Opensearch.Cluster
Explore with Pulumi AI
This resource provides the Opensearch Cluster resource in Oracle Cloud Infrastructure Opensearch service.
Creates a new OpensearchCluster.
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOpensearchCluster = new oci.opensearch.Cluster("test_opensearch_cluster", {
compartmentId: compartmentId,
dataNodeCount: opensearchClusterDataNodeCount,
dataNodeHostMemoryGb: opensearchClusterDataNodeHostMemoryGb,
dataNodeHostOcpuCount: opensearchClusterDataNodeHostOcpuCount,
dataNodeHostType: opensearchClusterDataNodeHostType,
dataNodeStorageGb: opensearchClusterDataNodeStorageGb,
displayName: opensearchClusterDisplayName,
masterNodeCount: opensearchClusterMasterNodeCount,
masterNodeHostMemoryGb: opensearchClusterMasterNodeHostMemoryGb,
masterNodeHostOcpuCount: opensearchClusterMasterNodeHostOcpuCount,
masterNodeHostType: opensearchClusterMasterNodeHostType,
opendashboardNodeCount: opensearchClusterOpendashboardNodeCount,
opendashboardNodeHostMemoryGb: opensearchClusterOpendashboardNodeHostMemoryGb,
opendashboardNodeHostOcpuCount: opensearchClusterOpendashboardNodeHostOcpuCount,
softwareVersion: opensearchClusterSoftwareVersion,
subnetCompartmentId: testCompartment.id,
subnetId: testSubnet.id,
vcnCompartmentId: testCompartment.id,
vcnId: testVcn.id,
dataNodeHostBareMetalShape: opensearchClusterDataNodeHostBareMetalShape,
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
masterNodeHostBareMetalShape: opensearchClusterMasterNodeHostBareMetalShape,
securityMasterUserName: testUser.name,
securityMasterUserPasswordHash: opensearchClusterSecurityMasterUserPasswordHash,
securityMode: opensearchClusterSecurityMode,
systemTags: opensearchClusterSystemTags,
});
import pulumi
import pulumi_oci as oci
test_opensearch_cluster = oci.opensearch.Cluster("test_opensearch_cluster",
compartment_id=compartment_id,
data_node_count=opensearch_cluster_data_node_count,
data_node_host_memory_gb=opensearch_cluster_data_node_host_memory_gb,
data_node_host_ocpu_count=opensearch_cluster_data_node_host_ocpu_count,
data_node_host_type=opensearch_cluster_data_node_host_type,
data_node_storage_gb=opensearch_cluster_data_node_storage_gb,
display_name=opensearch_cluster_display_name,
master_node_count=opensearch_cluster_master_node_count,
master_node_host_memory_gb=opensearch_cluster_master_node_host_memory_gb,
master_node_host_ocpu_count=opensearch_cluster_master_node_host_ocpu_count,
master_node_host_type=opensearch_cluster_master_node_host_type,
opendashboard_node_count=opensearch_cluster_opendashboard_node_count,
opendashboard_node_host_memory_gb=opensearch_cluster_opendashboard_node_host_memory_gb,
opendashboard_node_host_ocpu_count=opensearch_cluster_opendashboard_node_host_ocpu_count,
software_version=opensearch_cluster_software_version,
subnet_compartment_id=test_compartment["id"],
subnet_id=test_subnet["id"],
vcn_compartment_id=test_compartment["id"],
vcn_id=test_vcn["id"],
data_node_host_bare_metal_shape=opensearch_cluster_data_node_host_bare_metal_shape,
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
},
master_node_host_bare_metal_shape=opensearch_cluster_master_node_host_bare_metal_shape,
security_master_user_name=test_user["name"],
security_master_user_password_hash=opensearch_cluster_security_master_user_password_hash,
security_mode=opensearch_cluster_security_mode,
system_tags=opensearch_cluster_system_tags)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Opensearch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Opensearch.NewCluster(ctx, "test_opensearch_cluster", &Opensearch.ClusterArgs{
CompartmentId: pulumi.Any(compartmentId),
DataNodeCount: pulumi.Any(opensearchClusterDataNodeCount),
DataNodeHostMemoryGb: pulumi.Any(opensearchClusterDataNodeHostMemoryGb),
DataNodeHostOcpuCount: pulumi.Any(opensearchClusterDataNodeHostOcpuCount),
DataNodeHostType: pulumi.Any(opensearchClusterDataNodeHostType),
DataNodeStorageGb: pulumi.Any(opensearchClusterDataNodeStorageGb),
DisplayName: pulumi.Any(opensearchClusterDisplayName),
MasterNodeCount: pulumi.Any(opensearchClusterMasterNodeCount),
MasterNodeHostMemoryGb: pulumi.Any(opensearchClusterMasterNodeHostMemoryGb),
MasterNodeHostOcpuCount: pulumi.Any(opensearchClusterMasterNodeHostOcpuCount),
MasterNodeHostType: pulumi.Any(opensearchClusterMasterNodeHostType),
OpendashboardNodeCount: pulumi.Any(opensearchClusterOpendashboardNodeCount),
OpendashboardNodeHostMemoryGb: pulumi.Any(opensearchClusterOpendashboardNodeHostMemoryGb),
OpendashboardNodeHostOcpuCount: pulumi.Any(opensearchClusterOpendashboardNodeHostOcpuCount),
SoftwareVersion: pulumi.Any(opensearchClusterSoftwareVersion),
SubnetCompartmentId: pulumi.Any(testCompartment.Id),
SubnetId: pulumi.Any(testSubnet.Id),
VcnCompartmentId: pulumi.Any(testCompartment.Id),
VcnId: pulumi.Any(testVcn.Id),
DataNodeHostBareMetalShape: pulumi.Any(opensearchClusterDataNodeHostBareMetalShape),
DefinedTags: pulumi.Map{
"foo-namespace.bar-key": pulumi.Any("value"),
},
FreeformTags: pulumi.Map{
"bar-key": pulumi.Any("value"),
},
MasterNodeHostBareMetalShape: pulumi.Any(opensearchClusterMasterNodeHostBareMetalShape),
SecurityMasterUserName: pulumi.Any(testUser.Name),
SecurityMasterUserPasswordHash: pulumi.Any(opensearchClusterSecurityMasterUserPasswordHash),
SecurityMode: pulumi.Any(opensearchClusterSecurityMode),
SystemTags: pulumi.Any(opensearchClusterSystemTags),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testOpensearchCluster = new Oci.Opensearch.Cluster("test_opensearch_cluster", new()
{
CompartmentId = compartmentId,
DataNodeCount = opensearchClusterDataNodeCount,
DataNodeHostMemoryGb = opensearchClusterDataNodeHostMemoryGb,
DataNodeHostOcpuCount = opensearchClusterDataNodeHostOcpuCount,
DataNodeHostType = opensearchClusterDataNodeHostType,
DataNodeStorageGb = opensearchClusterDataNodeStorageGb,
DisplayName = opensearchClusterDisplayName,
MasterNodeCount = opensearchClusterMasterNodeCount,
MasterNodeHostMemoryGb = opensearchClusterMasterNodeHostMemoryGb,
MasterNodeHostOcpuCount = opensearchClusterMasterNodeHostOcpuCount,
MasterNodeHostType = opensearchClusterMasterNodeHostType,
OpendashboardNodeCount = opensearchClusterOpendashboardNodeCount,
OpendashboardNodeHostMemoryGb = opensearchClusterOpendashboardNodeHostMemoryGb,
OpendashboardNodeHostOcpuCount = opensearchClusterOpendashboardNodeHostOcpuCount,
SoftwareVersion = opensearchClusterSoftwareVersion,
SubnetCompartmentId = testCompartment.Id,
SubnetId = testSubnet.Id,
VcnCompartmentId = testCompartment.Id,
VcnId = testVcn.Id,
DataNodeHostBareMetalShape = opensearchClusterDataNodeHostBareMetalShape,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
MasterNodeHostBareMetalShape = opensearchClusterMasterNodeHostBareMetalShape,
SecurityMasterUserName = testUser.Name,
SecurityMasterUserPasswordHash = opensearchClusterSecurityMasterUserPasswordHash,
SecurityMode = opensearchClusterSecurityMode,
SystemTags = opensearchClusterSystemTags,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opensearch.Cluster;
import com.pulumi.oci.Opensearch.ClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testOpensearchCluster = new Cluster("testOpensearchCluster", ClusterArgs.builder()
.compartmentId(compartmentId)
.dataNodeCount(opensearchClusterDataNodeCount)
.dataNodeHostMemoryGb(opensearchClusterDataNodeHostMemoryGb)
.dataNodeHostOcpuCount(opensearchClusterDataNodeHostOcpuCount)
.dataNodeHostType(opensearchClusterDataNodeHostType)
.dataNodeStorageGb(opensearchClusterDataNodeStorageGb)
.displayName(opensearchClusterDisplayName)
.masterNodeCount(opensearchClusterMasterNodeCount)
.masterNodeHostMemoryGb(opensearchClusterMasterNodeHostMemoryGb)
.masterNodeHostOcpuCount(opensearchClusterMasterNodeHostOcpuCount)
.masterNodeHostType(opensearchClusterMasterNodeHostType)
.opendashboardNodeCount(opensearchClusterOpendashboardNodeCount)
.opendashboardNodeHostMemoryGb(opensearchClusterOpendashboardNodeHostMemoryGb)
.opendashboardNodeHostOcpuCount(opensearchClusterOpendashboardNodeHostOcpuCount)
.softwareVersion(opensearchClusterSoftwareVersion)
.subnetCompartmentId(testCompartment.id())
.subnetId(testSubnet.id())
.vcnCompartmentId(testCompartment.id())
.vcnId(testVcn.id())
.dataNodeHostBareMetalShape(opensearchClusterDataNodeHostBareMetalShape)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.masterNodeHostBareMetalShape(opensearchClusterMasterNodeHostBareMetalShape)
.securityMasterUserName(testUser.name())
.securityMasterUserPasswordHash(opensearchClusterSecurityMasterUserPasswordHash)
.securityMode(opensearchClusterSecurityMode)
.systemTags(opensearchClusterSystemTags)
.build());
}
}
resources:
testOpensearchCluster:
type: oci:Opensearch:Cluster
name: test_opensearch_cluster
properties:
compartmentId: ${compartmentId}
dataNodeCount: ${opensearchClusterDataNodeCount}
dataNodeHostMemoryGb: ${opensearchClusterDataNodeHostMemoryGb}
dataNodeHostOcpuCount: ${opensearchClusterDataNodeHostOcpuCount}
dataNodeHostType: ${opensearchClusterDataNodeHostType}
dataNodeStorageGb: ${opensearchClusterDataNodeStorageGb}
displayName: ${opensearchClusterDisplayName}
masterNodeCount: ${opensearchClusterMasterNodeCount}
masterNodeHostMemoryGb: ${opensearchClusterMasterNodeHostMemoryGb}
masterNodeHostOcpuCount: ${opensearchClusterMasterNodeHostOcpuCount}
masterNodeHostType: ${opensearchClusterMasterNodeHostType}
opendashboardNodeCount: ${opensearchClusterOpendashboardNodeCount}
opendashboardNodeHostMemoryGb: ${opensearchClusterOpendashboardNodeHostMemoryGb}
opendashboardNodeHostOcpuCount: ${opensearchClusterOpendashboardNodeHostOcpuCount}
softwareVersion: ${opensearchClusterSoftwareVersion}
subnetCompartmentId: ${testCompartment.id}
subnetId: ${testSubnet.id}
vcnCompartmentId: ${testCompartment.id}
vcnId: ${testVcn.id}
dataNodeHostBareMetalShape: ${opensearchClusterDataNodeHostBareMetalShape}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
masterNodeHostBareMetalShape: ${opensearchClusterMasterNodeHostBareMetalShape}
securityMasterUserName: ${testUser.name}
securityMasterUserPasswordHash: ${opensearchClusterSecurityMasterUserPasswordHash}
securityMode: ${opensearchClusterSecurityMode}
systemTags: ${opensearchClusterSystemTags}
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
master_node_host_memory_gb: Optional[int] = None,
master_node_host_ocpu_count: Optional[int] = None,
compartment_id: Optional[str] = None,
data_node_host_memory_gb: Optional[int] = None,
data_node_host_ocpu_count: Optional[int] = None,
data_node_host_type: Optional[str] = None,
data_node_storage_gb: Optional[int] = None,
data_node_count: Optional[int] = None,
display_name: Optional[str] = None,
master_node_host_type: Optional[str] = None,
master_node_count: Optional[int] = None,
vcn_compartment_id: Optional[str] = None,
subnet_id: Optional[str] = None,
vcn_id: Optional[str] = None,
software_version: Optional[str] = None,
opendashboard_node_count: Optional[int] = None,
opendashboard_node_host_memory_gb: Optional[int] = None,
opendashboard_node_host_ocpu_count: Optional[int] = None,
subnet_compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
security_mode: Optional[str] = None,
security_master_user_password_hash: Optional[str] = None,
security_master_user_name: Optional[str] = None,
data_node_host_bare_metal_shape: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
master_node_host_bare_metal_shape: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: oci:Opensearch:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterResourceResourceFromOpensearchcluster = new Oci.Opensearch.Cluster("exampleclusterResourceResourceFromOpensearchcluster", new()
{
MasterNodeHostMemoryGb = 0,
MasterNodeHostOcpuCount = 0,
CompartmentId = "string",
DataNodeHostMemoryGb = 0,
DataNodeHostOcpuCount = 0,
DataNodeHostType = "string",
DataNodeStorageGb = 0,
DataNodeCount = 0,
DisplayName = "string",
MasterNodeHostType = "string",
MasterNodeCount = 0,
VcnCompartmentId = "string",
SubnetId = "string",
VcnId = "string",
SoftwareVersion = "string",
OpendashboardNodeCount = 0,
OpendashboardNodeHostMemoryGb = 0,
OpendashboardNodeHostOcpuCount = 0,
SubnetCompartmentId = "string",
DefinedTags =
{
{ "string", "any" },
},
SecurityMode = "string",
SecurityMasterUserPasswordHash = "string",
SecurityMasterUserName = "string",
DataNodeHostBareMetalShape = "string",
SystemTags =
{
{ "string", "any" },
},
MasterNodeHostBareMetalShape = "string",
FreeformTags =
{
{ "string", "any" },
},
});
example, err := Opensearch.NewCluster(ctx, "exampleclusterResourceResourceFromOpensearchcluster", &Opensearch.ClusterArgs{
MasterNodeHostMemoryGb: pulumi.Int(0),
MasterNodeHostOcpuCount: pulumi.Int(0),
CompartmentId: pulumi.String("string"),
DataNodeHostMemoryGb: pulumi.Int(0),
DataNodeHostOcpuCount: pulumi.Int(0),
DataNodeHostType: pulumi.String("string"),
DataNodeStorageGb: pulumi.Int(0),
DataNodeCount: pulumi.Int(0),
DisplayName: pulumi.String("string"),
MasterNodeHostType: pulumi.String("string"),
MasterNodeCount: pulumi.Int(0),
VcnCompartmentId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
VcnId: pulumi.String("string"),
SoftwareVersion: pulumi.String("string"),
OpendashboardNodeCount: pulumi.Int(0),
OpendashboardNodeHostMemoryGb: pulumi.Int(0),
OpendashboardNodeHostOcpuCount: pulumi.Int(0),
SubnetCompartmentId: pulumi.String("string"),
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
SecurityMode: pulumi.String("string"),
SecurityMasterUserPasswordHash: pulumi.String("string"),
SecurityMasterUserName: pulumi.String("string"),
DataNodeHostBareMetalShape: pulumi.String("string"),
SystemTags: pulumi.Map{
"string": pulumi.Any("any"),
},
MasterNodeHostBareMetalShape: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
})
var exampleclusterResourceResourceFromOpensearchcluster = new Cluster("exampleclusterResourceResourceFromOpensearchcluster", ClusterArgs.builder()
.masterNodeHostMemoryGb(0)
.masterNodeHostOcpuCount(0)
.compartmentId("string")
.dataNodeHostMemoryGb(0)
.dataNodeHostOcpuCount(0)
.dataNodeHostType("string")
.dataNodeStorageGb(0)
.dataNodeCount(0)
.displayName("string")
.masterNodeHostType("string")
.masterNodeCount(0)
.vcnCompartmentId("string")
.subnetId("string")
.vcnId("string")
.softwareVersion("string")
.opendashboardNodeCount(0)
.opendashboardNodeHostMemoryGb(0)
.opendashboardNodeHostOcpuCount(0)
.subnetCompartmentId("string")
.definedTags(Map.of("string", "any"))
.securityMode("string")
.securityMasterUserPasswordHash("string")
.securityMasterUserName("string")
.dataNodeHostBareMetalShape("string")
.systemTags(Map.of("string", "any"))
.masterNodeHostBareMetalShape("string")
.freeformTags(Map.of("string", "any"))
.build());
examplecluster_resource_resource_from_opensearchcluster = oci.opensearch.Cluster("exampleclusterResourceResourceFromOpensearchcluster",
master_node_host_memory_gb=0,
master_node_host_ocpu_count=0,
compartment_id="string",
data_node_host_memory_gb=0,
data_node_host_ocpu_count=0,
data_node_host_type="string",
data_node_storage_gb=0,
data_node_count=0,
display_name="string",
master_node_host_type="string",
master_node_count=0,
vcn_compartment_id="string",
subnet_id="string",
vcn_id="string",
software_version="string",
opendashboard_node_count=0,
opendashboard_node_host_memory_gb=0,
opendashboard_node_host_ocpu_count=0,
subnet_compartment_id="string",
defined_tags={
"string": "any",
},
security_mode="string",
security_master_user_password_hash="string",
security_master_user_name="string",
data_node_host_bare_metal_shape="string",
system_tags={
"string": "any",
},
master_node_host_bare_metal_shape="string",
freeform_tags={
"string": "any",
})
const exampleclusterResourceResourceFromOpensearchcluster = new oci.opensearch.Cluster("exampleclusterResourceResourceFromOpensearchcluster", {
masterNodeHostMemoryGb: 0,
masterNodeHostOcpuCount: 0,
compartmentId: "string",
dataNodeHostMemoryGb: 0,
dataNodeHostOcpuCount: 0,
dataNodeHostType: "string",
dataNodeStorageGb: 0,
dataNodeCount: 0,
displayName: "string",
masterNodeHostType: "string",
masterNodeCount: 0,
vcnCompartmentId: "string",
subnetId: "string",
vcnId: "string",
softwareVersion: "string",
opendashboardNodeCount: 0,
opendashboardNodeHostMemoryGb: 0,
opendashboardNodeHostOcpuCount: 0,
subnetCompartmentId: "string",
definedTags: {
string: "any",
},
securityMode: "string",
securityMasterUserPasswordHash: "string",
securityMasterUserName: "string",
dataNodeHostBareMetalShape: "string",
systemTags: {
string: "any",
},
masterNodeHostBareMetalShape: "string",
freeformTags: {
string: "any",
},
});
type: oci:Opensearch:Cluster
properties:
compartmentId: string
dataNodeCount: 0
dataNodeHostBareMetalShape: string
dataNodeHostMemoryGb: 0
dataNodeHostOcpuCount: 0
dataNodeHostType: string
dataNodeStorageGb: 0
definedTags:
string: any
displayName: string
freeformTags:
string: any
masterNodeCount: 0
masterNodeHostBareMetalShape: string
masterNodeHostMemoryGb: 0
masterNodeHostOcpuCount: 0
masterNodeHostType: string
opendashboardNodeCount: 0
opendashboardNodeHostMemoryGb: 0
opendashboardNodeHostOcpuCount: 0
securityMasterUserName: string
securityMasterUserPasswordHash: string
securityMode: string
softwareVersion: string
subnetCompartmentId: string
subnetId: string
systemTags:
string: any
vcnCompartmentId: string
vcnId: string
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Cluster resource accepts the following input properties:
- Compartment
Id string - The OCID of the compartment to create the cluster in.
- Data
Node intCount - (Updatable) The number of data nodes to configure for the cluster.
- Data
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- Data
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- Data
Node stringHost Type - TThe instance type for the cluster's data nodes.
- Data
Node intStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- Display
Name string - (Updatable) The name of the cluster. Avoid entering confidential information.
- Master
Node intCount - (Updatable) The number of master nodes to configure for the cluster.
- Master
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- Master
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- Master
Node stringHost Type - The instance type for the cluster's master nodes.
- Opendashboard
Node intCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- Opendashboard
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- Opendashboard
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- Software
Version string - (Updatable) The version of the software the cluster is running.
- Subnet
Compartment stringId - The OCID for the compartment where the cluster's subnet is located.
- Subnet
Id string - The OCID of the cluster's subnet.
- Vcn
Compartment stringId - The OCID for the compartment where the cluster's VCN is located.
- Vcn
Id string The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Data
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Master
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- Security
Master stringUser Name - (Updatable) The name of the master user that are used to manage security config
- Security
Master stringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- Security
Mode string - (Updatable) The security mode of the cluster.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Compartment
Id string - The OCID of the compartment to create the cluster in.
- Data
Node intCount - (Updatable) The number of data nodes to configure for the cluster.
- Data
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- Data
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- Data
Node stringHost Type - TThe instance type for the cluster's data nodes.
- Data
Node intStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- Display
Name string - (Updatable) The name of the cluster. Avoid entering confidential information.
- Master
Node intCount - (Updatable) The number of master nodes to configure for the cluster.
- Master
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- Master
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- Master
Node stringHost Type - The instance type for the cluster's master nodes.
- Opendashboard
Node intCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- Opendashboard
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- Opendashboard
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- Software
Version string - (Updatable) The version of the software the cluster is running.
- Subnet
Compartment stringId - The OCID for the compartment where the cluster's subnet is located.
- Subnet
Id string - The OCID of the cluster's subnet.
- Vcn
Compartment stringId - The OCID for the compartment where the cluster's VCN is located.
- Vcn
Id string The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Data
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]interface{}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Master
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- Security
Master stringUser Name - (Updatable) The name of the master user that are used to manage security config
- Security
Master stringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- Security
Mode string - (Updatable) The security mode of the cluster.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- compartment
Id String - The OCID of the compartment to create the cluster in.
- data
Node IntegerCount - (Updatable) The number of data nodes to configure for the cluster.
- data
Node IntegerHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data
Node IntegerHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data
Node StringHost Type - TThe instance type for the cluster's data nodes.
- data
Node IntegerStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- display
Name String - (Updatable) The name of the cluster. Avoid entering confidential information.
- master
Node IntegerCount - (Updatable) The number of master nodes to configure for the cluster.
- master
Node IntegerHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master
Node IntegerHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master
Node StringHost Type - The instance type for the cluster's master nodes.
- opendashboard
Node IntegerCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard
Node IntegerHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Node IntegerHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- software
Version String - (Updatable) The version of the software the cluster is running.
- subnet
Compartment StringId - The OCID for the compartment where the cluster's subnet is located.
- subnet
Id String - The OCID of the cluster's subnet.
- vcn
Compartment StringId - The OCID for the compartment where the cluster's VCN is located.
- vcn
Id String The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- data
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,Object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- master
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- security
Master StringUser Name - (Updatable) The name of the master user that are used to manage security config
- security
Master StringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- security
Mode String - (Updatable) The security mode of the cluster.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- compartment
Id string - The OCID of the compartment to create the cluster in.
- data
Node numberCount - (Updatable) The number of data nodes to configure for the cluster.
- data
Node numberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data
Node numberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data
Node stringHost Type - TThe instance type for the cluster's data nodes.
- data
Node numberStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- display
Name string - (Updatable) The name of the cluster. Avoid entering confidential information.
- master
Node numberCount - (Updatable) The number of master nodes to configure for the cluster.
- master
Node numberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master
Node numberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master
Node stringHost Type - The instance type for the cluster's master nodes.
- opendashboard
Node numberCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard
Node numberHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Node numberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- software
Version string - (Updatable) The version of the software the cluster is running.
- subnet
Compartment stringId - The OCID for the compartment where the cluster's subnet is located.
- subnet
Id string - The OCID of the cluster's subnet.
- vcn
Compartment stringId - The OCID for the compartment where the cluster's VCN is located.
- vcn
Id string The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- data
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: any}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- master
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- security
Master stringUser Name - (Updatable) The name of the master user that are used to manage security config
- security
Master stringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- security
Mode string - (Updatable) The security mode of the cluster.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- compartment_
id str - The OCID of the compartment to create the cluster in.
- data_
node_ intcount - (Updatable) The number of data nodes to configure for the cluster.
- data_
node_ inthost_ memory_ gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data_
node_ inthost_ ocpu_ count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data_
node_ strhost_ type - TThe instance type for the cluster's data nodes.
- data_
node_ intstorage_ gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- display_
name str - (Updatable) The name of the cluster. Avoid entering confidential information.
- master_
node_ intcount - (Updatable) The number of master nodes to configure for the cluster.
- master_
node_ inthost_ memory_ gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master_
node_ inthost_ ocpu_ count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master_
node_ strhost_ type - The instance type for the cluster's master nodes.
- opendashboard_
node_ intcount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard_
node_ inthost_ memory_ gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard_
node_ inthost_ ocpu_ count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- software_
version str - (Updatable) The version of the software the cluster is running.
- subnet_
compartment_ strid - The OCID for the compartment where the cluster's subnet is located.
- subnet_
id str - The OCID of the cluster's subnet.
- vcn_
compartment_ strid - The OCID for the compartment where the cluster's VCN is located.
- vcn_
id str The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- data_
node_ strhost_ bare_ metal_ shape - The bare metal shape for the cluster's data nodes.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, Any]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- master_
node_ strhost_ bare_ metal_ shape - The bare metal shape for the cluster's master nodes.
- security_
master_ struser_ name - (Updatable) The name of the master user that are used to manage security config
- security_
master_ struser_ password_ hash - (Updatable) The password hash of the master user that are used to manage security config
- security_
mode str - (Updatable) The security mode of the cluster.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- compartment
Id String - The OCID of the compartment to create the cluster in.
- data
Node NumberCount - (Updatable) The number of data nodes to configure for the cluster.
- data
Node NumberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data
Node NumberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data
Node StringHost Type - TThe instance type for the cluster's data nodes.
- data
Node NumberStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- display
Name String - (Updatable) The name of the cluster. Avoid entering confidential information.
- master
Node NumberCount - (Updatable) The number of master nodes to configure for the cluster.
- master
Node NumberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master
Node NumberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master
Node StringHost Type - The instance type for the cluster's master nodes.
- opendashboard
Node NumberCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard
Node NumberHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Node NumberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- software
Version String - (Updatable) The version of the software the cluster is running.
- subnet
Compartment StringId - The OCID for the compartment where the cluster's subnet is located.
- subnet
Id String - The OCID of the cluster's subnet.
- vcn
Compartment StringId - The OCID for the compartment where the cluster's VCN is located.
- vcn
Id String The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- data
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<Any>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- master
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- security
Master StringUser Name - (Updatable) The name of the master user that are used to manage security config
- security
Master StringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- security
Mode String - (Updatable) The security mode of the cluster.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Availability
Domains List<string> - The availability domains to distribute the cluser nodes across.
- Fqdn string
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Additional information about the current lifecycle state of the cluster.
- Opendashboard
Fqdn string - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- Opendashboard
Private stringIp - The private IP address for the cluster's OpenSearch Dashboard.
- Opensearch
Fqdn string - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Opensearch
Private stringIp - The cluster's private IP address.
- State string
- The current state of the cluster.
- Time
Created string - The amount of time in milliseconds since the cluster was created.
- Time
Deleted string - The amount of time in milliseconds since the cluster was updated.
- Time
Updated string - The amount of time in milliseconds since the cluster was updated.
- Total
Storage intGb - The size in GB of the cluster's total storage.
- Availability
Domains []string - The availability domains to distribute the cluser nodes across.
- Fqdn string
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Additional information about the current lifecycle state of the cluster.
- Opendashboard
Fqdn string - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- Opendashboard
Private stringIp - The private IP address for the cluster's OpenSearch Dashboard.
- Opensearch
Fqdn string - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Opensearch
Private stringIp - The cluster's private IP address.
- State string
- The current state of the cluster.
- Time
Created string - The amount of time in milliseconds since the cluster was created.
- Time
Deleted string - The amount of time in milliseconds since the cluster was updated.
- Time
Updated string - The amount of time in milliseconds since the cluster was updated.
- Total
Storage intGb - The size in GB of the cluster's total storage.
- availability
Domains List<String> - The availability domains to distribute the cluser nodes across.
- fqdn String
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Additional information about the current lifecycle state of the cluster.
- opendashboard
Fqdn String - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard
Private StringIp - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch
Fqdn String - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch
Private StringIp - The cluster's private IP address.
- state String
- The current state of the cluster.
- time
Created String - The amount of time in milliseconds since the cluster was created.
- time
Deleted String - The amount of time in milliseconds since the cluster was updated.
- time
Updated String - The amount of time in milliseconds since the cluster was updated.
- total
Storage IntegerGb - The size in GB of the cluster's total storage.
- availability
Domains string[] - The availability domains to distribute the cluser nodes across.
- fqdn string
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Additional information about the current lifecycle state of the cluster.
- opendashboard
Fqdn string - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard
Private stringIp - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch
Fqdn string - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch
Private stringIp - The cluster's private IP address.
- state string
- The current state of the cluster.
- time
Created string - The amount of time in milliseconds since the cluster was created.
- time
Deleted string - The amount of time in milliseconds since the cluster was updated.
- time
Updated string - The amount of time in milliseconds since the cluster was updated.
- total
Storage numberGb - The size in GB of the cluster's total storage.
- availability_
domains Sequence[str] - The availability domains to distribute the cluser nodes across.
- fqdn str
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Additional information about the current lifecycle state of the cluster.
- opendashboard_
fqdn str - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard_
private_ strip - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch_
fqdn str - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch_
private_ strip - The cluster's private IP address.
- state str
- The current state of the cluster.
- time_
created str - The amount of time in milliseconds since the cluster was created.
- time_
deleted str - The amount of time in milliseconds since the cluster was updated.
- time_
updated str - The amount of time in milliseconds since the cluster was updated.
- total_
storage_ intgb - The size in GB of the cluster's total storage.
- availability
Domains List<String> - The availability domains to distribute the cluser nodes across.
- fqdn String
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Additional information about the current lifecycle state of the cluster.
- opendashboard
Fqdn String - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard
Private StringIp - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch
Fqdn String - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch
Private StringIp - The cluster's private IP address.
- state String
- The current state of the cluster.
- time
Created String - The amount of time in milliseconds since the cluster was created.
- time
Deleted String - The amount of time in milliseconds since the cluster was updated.
- time
Updated String - The amount of time in milliseconds since the cluster was updated.
- total
Storage NumberGb - The size in GB of the cluster's total storage.
Look up Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_domains: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
data_node_count: Optional[int] = None,
data_node_host_bare_metal_shape: Optional[str] = None,
data_node_host_memory_gb: Optional[int] = None,
data_node_host_ocpu_count: Optional[int] = None,
data_node_host_type: Optional[str] = None,
data_node_storage_gb: Optional[int] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
fqdn: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
lifecycle_details: Optional[str] = None,
master_node_count: Optional[int] = None,
master_node_host_bare_metal_shape: Optional[str] = None,
master_node_host_memory_gb: Optional[int] = None,
master_node_host_ocpu_count: Optional[int] = None,
master_node_host_type: Optional[str] = None,
opendashboard_fqdn: Optional[str] = None,
opendashboard_node_count: Optional[int] = None,
opendashboard_node_host_memory_gb: Optional[int] = None,
opendashboard_node_host_ocpu_count: Optional[int] = None,
opendashboard_private_ip: Optional[str] = None,
opensearch_fqdn: Optional[str] = None,
opensearch_private_ip: Optional[str] = None,
security_master_user_name: Optional[str] = None,
security_master_user_password_hash: Optional[str] = None,
security_mode: Optional[str] = None,
software_version: Optional[str] = None,
state: Optional[str] = None,
subnet_compartment_id: Optional[str] = None,
subnet_id: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_deleted: Optional[str] = None,
time_updated: Optional[str] = None,
total_storage_gb: Optional[int] = None,
vcn_compartment_id: Optional[str] = None,
vcn_id: Optional[str] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Domains List<string> - The availability domains to distribute the cluser nodes across.
- Compartment
Id string - The OCID of the compartment to create the cluster in.
- Data
Node intCount - (Updatable) The number of data nodes to configure for the cluster.
- Data
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- Data
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- Data
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- Data
Node stringHost Type - TThe instance type for the cluster's data nodes.
- Data
Node intStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) The name of the cluster. Avoid entering confidential information.
- Fqdn string
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Dictionary<string, object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Lifecycle
Details string - Additional information about the current lifecycle state of the cluster.
- Master
Node intCount - (Updatable) The number of master nodes to configure for the cluster.
- Master
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- Master
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- Master
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- Master
Node stringHost Type - The instance type for the cluster's master nodes.
- Opendashboard
Fqdn string - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- Opendashboard
Node intCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- Opendashboard
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- Opendashboard
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- Opendashboard
Private stringIp - The private IP address for the cluster's OpenSearch Dashboard.
- Opensearch
Fqdn string - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Opensearch
Private stringIp - The cluster's private IP address.
- Security
Master stringUser Name - (Updatable) The name of the master user that are used to manage security config
- Security
Master stringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- Security
Mode string - (Updatable) The security mode of the cluster.
- Software
Version string - (Updatable) The version of the software the cluster is running.
- State string
- The current state of the cluster.
- Subnet
Compartment stringId - The OCID for the compartment where the cluster's subnet is located.
- Subnet
Id string - The OCID of the cluster's subnet.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The amount of time in milliseconds since the cluster was created.
- Time
Deleted string - The amount of time in milliseconds since the cluster was updated.
- Time
Updated string - The amount of time in milliseconds since the cluster was updated.
- Total
Storage intGb - The size in GB of the cluster's total storage.
- Vcn
Compartment stringId - The OCID for the compartment where the cluster's VCN is located.
- Vcn
Id string The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Availability
Domains []string - The availability domains to distribute the cluser nodes across.
- Compartment
Id string - The OCID of the compartment to create the cluster in.
- Data
Node intCount - (Updatable) The number of data nodes to configure for the cluster.
- Data
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- Data
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- Data
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- Data
Node stringHost Type - TThe instance type for the cluster's data nodes.
- Data
Node intStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - (Updatable) The name of the cluster. Avoid entering confidential information.
- Fqdn string
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- map[string]interface{}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Lifecycle
Details string - Additional information about the current lifecycle state of the cluster.
- Master
Node intCount - (Updatable) The number of master nodes to configure for the cluster.
- Master
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- Master
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- Master
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- Master
Node stringHost Type - The instance type for the cluster's master nodes.
- Opendashboard
Fqdn string - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- Opendashboard
Node intCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- Opendashboard
Node intHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- Opendashboard
Node intHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- Opendashboard
Private stringIp - The private IP address for the cluster's OpenSearch Dashboard.
- Opensearch
Fqdn string - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Opensearch
Private stringIp - The cluster's private IP address.
- Security
Master stringUser Name - (Updatable) The name of the master user that are used to manage security config
- Security
Master stringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- Security
Mode string - (Updatable) The security mode of the cluster.
- Software
Version string - (Updatable) The version of the software the cluster is running.
- State string
- The current state of the cluster.
- Subnet
Compartment stringId - The OCID for the compartment where the cluster's subnet is located.
- Subnet
Id string - The OCID of the cluster's subnet.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The amount of time in milliseconds since the cluster was created.
- Time
Deleted string - The amount of time in milliseconds since the cluster was updated.
- Time
Updated string - The amount of time in milliseconds since the cluster was updated.
- Total
Storage intGb - The size in GB of the cluster's total storage.
- Vcn
Compartment stringId - The OCID for the compartment where the cluster's VCN is located.
- Vcn
Id string The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domains List<String> - The availability domains to distribute the cluser nodes across.
- compartment
Id String - The OCID of the compartment to create the cluster in.
- data
Node IntegerCount - (Updatable) The number of data nodes to configure for the cluster.
- data
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- data
Node IntegerHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data
Node IntegerHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data
Node StringHost Type - TThe instance type for the cluster's data nodes.
- data
Node IntegerStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) The name of the cluster. Avoid entering confidential information.
- fqdn String
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Map<String,Object>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle
Details String - Additional information about the current lifecycle state of the cluster.
- master
Node IntegerCount - (Updatable) The number of master nodes to configure for the cluster.
- master
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- master
Node IntegerHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master
Node IntegerHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master
Node StringHost Type - The instance type for the cluster's master nodes.
- opendashboard
Fqdn String - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard
Node IntegerCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard
Node IntegerHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Node IntegerHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Private StringIp - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch
Fqdn String - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch
Private StringIp - The cluster's private IP address.
- security
Master StringUser Name - (Updatable) The name of the master user that are used to manage security config
- security
Master StringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- security
Mode String - (Updatable) The security mode of the cluster.
- software
Version String - (Updatable) The version of the software the cluster is running.
- state String
- The current state of the cluster.
- subnet
Compartment StringId - The OCID for the compartment where the cluster's subnet is located.
- subnet
Id String - The OCID of the cluster's subnet.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The amount of time in milliseconds since the cluster was created.
- time
Deleted String - The amount of time in milliseconds since the cluster was updated.
- time
Updated String - The amount of time in milliseconds since the cluster was updated.
- total
Storage IntegerGb - The size in GB of the cluster's total storage.
- vcn
Compartment StringId - The OCID for the compartment where the cluster's VCN is located.
- vcn
Id String The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domains string[] - The availability domains to distribute the cluser nodes across.
- compartment
Id string - The OCID of the compartment to create the cluster in.
- data
Node numberCount - (Updatable) The number of data nodes to configure for the cluster.
- data
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- data
Node numberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data
Node numberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data
Node stringHost Type - TThe instance type for the cluster's data nodes.
- data
Node numberStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - (Updatable) The name of the cluster. Avoid entering confidential information.
- fqdn string
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- {[key: string]: any}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle
Details string - Additional information about the current lifecycle state of the cluster.
- master
Node numberCount - (Updatable) The number of master nodes to configure for the cluster.
- master
Node stringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- master
Node numberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master
Node numberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master
Node stringHost Type - The instance type for the cluster's master nodes.
- opendashboard
Fqdn string - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard
Node numberCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard
Node numberHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Node numberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Private stringIp - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch
Fqdn string - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch
Private stringIp - The cluster's private IP address.
- security
Master stringUser Name - (Updatable) The name of the master user that are used to manage security config
- security
Master stringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- security
Mode string - (Updatable) The security mode of the cluster.
- software
Version string - (Updatable) The version of the software the cluster is running.
- state string
- The current state of the cluster.
- subnet
Compartment stringId - The OCID for the compartment where the cluster's subnet is located.
- subnet
Id string - The OCID of the cluster's subnet.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The amount of time in milliseconds since the cluster was created.
- time
Deleted string - The amount of time in milliseconds since the cluster was updated.
- time
Updated string - The amount of time in milliseconds since the cluster was updated.
- total
Storage numberGb - The size in GB of the cluster's total storage.
- vcn
Compartment stringId - The OCID for the compartment where the cluster's VCN is located.
- vcn
Id string The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability_
domains Sequence[str] - The availability domains to distribute the cluser nodes across.
- compartment_
id str - The OCID of the compartment to create the cluster in.
- data_
node_ intcount - (Updatable) The number of data nodes to configure for the cluster.
- data_
node_ strhost_ bare_ metal_ shape - The bare metal shape for the cluster's data nodes.
- data_
node_ inthost_ memory_ gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data_
node_ inthost_ ocpu_ count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data_
node_ strhost_ type - TThe instance type for the cluster's data nodes.
- data_
node_ intstorage_ gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - (Updatable) The name of the cluster. Avoid entering confidential information.
- fqdn str
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Mapping[str, Any]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle_
details str - Additional information about the current lifecycle state of the cluster.
- master_
node_ intcount - (Updatable) The number of master nodes to configure for the cluster.
- master_
node_ strhost_ bare_ metal_ shape - The bare metal shape for the cluster's master nodes.
- master_
node_ inthost_ memory_ gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master_
node_ inthost_ ocpu_ count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master_
node_ strhost_ type - The instance type for the cluster's master nodes.
- opendashboard_
fqdn str - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard_
node_ intcount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard_
node_ inthost_ memory_ gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard_
node_ inthost_ ocpu_ count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard_
private_ strip - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch_
fqdn str - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch_
private_ strip - The cluster's private IP address.
- security_
master_ struser_ name - (Updatable) The name of the master user that are used to manage security config
- security_
master_ struser_ password_ hash - (Updatable) The password hash of the master user that are used to manage security config
- security_
mode str - (Updatable) The security mode of the cluster.
- software_
version str - (Updatable) The version of the software the cluster is running.
- state str
- The current state of the cluster.
- subnet_
compartment_ strid - The OCID for the compartment where the cluster's subnet is located.
- subnet_
id str - The OCID of the cluster's subnet.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The amount of time in milliseconds since the cluster was created.
- time_
deleted str - The amount of time in milliseconds since the cluster was updated.
- time_
updated str - The amount of time in milliseconds since the cluster was updated.
- total_
storage_ intgb - The size in GB of the cluster's total storage.
- vcn_
compartment_ strid - The OCID for the compartment where the cluster's VCN is located.
- vcn_
id str The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domains List<String> - The availability domains to distribute the cluser nodes across.
- compartment
Id String - The OCID of the compartment to create the cluster in.
- data
Node NumberCount - (Updatable) The number of data nodes to configure for the cluster.
- data
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's data nodes.
- data
Node NumberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's data nodes.
- data
Node NumberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's data nodes.
- data
Node StringHost Type - TThe instance type for the cluster's data nodes.
- data
Node NumberStorage Gb - (Updatable) The amount of storage in GB, to configure per node for the cluster's data nodes.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - (Updatable) The name of the cluster. Avoid entering confidential information.
- fqdn String
- The fully qualified domain name (FQDN) for the cluster's API endpoint.
- Map<Any>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle
Details String - Additional information about the current lifecycle state of the cluster.
- master
Node NumberCount - (Updatable) The number of master nodes to configure for the cluster.
- master
Node StringHost Bare Metal Shape - The bare metal shape for the cluster's master nodes.
- master
Node NumberHost Memory Gb - (Updatable) The amount of memory in GB, to configure per node for the cluster's master nodes.
- master
Node NumberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluser's master nodes.
- master
Node StringHost Type - The instance type for the cluster's master nodes.
- opendashboard
Fqdn String - The fully qualified domain name (FQDN) for the cluster's OpenSearch Dashboard API endpoint.
- opendashboard
Node NumberCount - (Updatable) The number of OpenSearch Dashboard nodes to configure for the cluster.
- opendashboard
Node NumberHost Memory Gb - (Updatable) The amount of memory in GB, to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Node NumberHost Ocpu Count - (Updatable) The number of OCPUs to configure for the cluster's OpenSearch Dashboard nodes.
- opendashboard
Private StringIp - The private IP address for the cluster's OpenSearch Dashboard.
- opensearch
Fqdn String - The fully qualified domain name (FQDN) for the cluster's API endpoint.
- opensearch
Private StringIp - The cluster's private IP address.
- security
Master StringUser Name - (Updatable) The name of the master user that are used to manage security config
- security
Master StringUser Password Hash - (Updatable) The password hash of the master user that are used to manage security config
- security
Mode String - (Updatable) The security mode of the cluster.
- software
Version String - (Updatable) The version of the software the cluster is running.
- state String
- The current state of the cluster.
- subnet
Compartment StringId - The OCID for the compartment where the cluster's subnet is located.
- subnet
Id String - The OCID of the cluster's subnet.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The amount of time in milliseconds since the cluster was created.
- time
Deleted String - The amount of time in milliseconds since the cluster was updated.
- time
Updated String - The amount of time in milliseconds since the cluster was updated.
- total
Storage NumberGb - The size in GB of the cluster's total storage.
- vcn
Compartment StringId - The OCID for the compartment where the cluster's VCN is located.
- vcn
Id String The OCID of the cluster's VCN.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
OpensearchClusters can be imported using the id
, e.g.
$ pulumi import oci:Opensearch/cluster:Cluster test_opensearch_cluster "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.