1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Redis
  5. RedisCluster
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Redis.RedisCluster

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This resource provides the Redis Cluster resource in Oracle Cloud Infrastructure Redis service.

    Creates a new Redis cluster. A Redis cluster is a memory-based storage solution. For more information, see OCI Caching Service with Redis.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRedisCluster = new oci.redis.RedisCluster("test_redis_cluster", {
        compartmentId: compartmentId,
        displayName: redisClusterDisplayName,
        nodeCount: redisClusterNodeCount,
        nodeMemoryInGbs: redisClusterNodeMemoryInGbs,
        softwareVersion: redisClusterSoftwareVersion,
        subnetId: testSubnet.id,
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        freeformTags: {
            "bar-key": "value",
        },
        nsgIds: redisClusterNsgIds,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_redis_cluster = oci.redis.RedisCluster("test_redis_cluster",
        compartment_id=compartment_id,
        display_name=redis_cluster_display_name,
        node_count=redis_cluster_node_count,
        node_memory_in_gbs=redis_cluster_node_memory_in_gbs,
        software_version=redis_cluster_software_version,
        subnet_id=test_subnet["id"],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        freeform_tags={
            "bar-key": "value",
        },
        nsg_ids=redis_cluster_nsg_ids)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Redis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Redis.NewRedisCluster(ctx, "test_redis_cluster", &Redis.RedisClusterArgs{
    			CompartmentId:   pulumi.Any(compartmentId),
    			DisplayName:     pulumi.Any(redisClusterDisplayName),
    			NodeCount:       pulumi.Any(redisClusterNodeCount),
    			NodeMemoryInGbs: pulumi.Any(redisClusterNodeMemoryInGbs),
    			SoftwareVersion: pulumi.Any(redisClusterSoftwareVersion),
    			SubnetId:        pulumi.Any(testSubnet.Id),
    			DefinedTags: pulumi.Map{
    				"foo-namespace.bar-key": pulumi.Any("value"),
    			},
    			FreeformTags: pulumi.Map{
    				"bar-key": pulumi.Any("value"),
    			},
    			NsgIds: pulumi.Any(redisClusterNsgIds),
    		})
    		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 testRedisCluster = new Oci.Redis.RedisCluster("test_redis_cluster", new()
        {
            CompartmentId = compartmentId,
            DisplayName = redisClusterDisplayName,
            NodeCount = redisClusterNodeCount,
            NodeMemoryInGbs = redisClusterNodeMemoryInGbs,
            SoftwareVersion = redisClusterSoftwareVersion,
            SubnetId = testSubnet.Id,
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            NsgIds = redisClusterNsgIds,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Redis.RedisCluster;
    import com.pulumi.oci.Redis.RedisClusterArgs;
    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 testRedisCluster = new RedisCluster("testRedisCluster", RedisClusterArgs.builder()
                .compartmentId(compartmentId)
                .displayName(redisClusterDisplayName)
                .nodeCount(redisClusterNodeCount)
                .nodeMemoryInGbs(redisClusterNodeMemoryInGbs)
                .softwareVersion(redisClusterSoftwareVersion)
                .subnetId(testSubnet.id())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .freeformTags(Map.of("bar-key", "value"))
                .nsgIds(redisClusterNsgIds)
                .build());
    
        }
    }
    
    resources:
      testRedisCluster:
        type: oci:Redis:RedisCluster
        name: test_redis_cluster
        properties:
          compartmentId: ${compartmentId}
          displayName: ${redisClusterDisplayName}
          nodeCount: ${redisClusterNodeCount}
          nodeMemoryInGbs: ${redisClusterNodeMemoryInGbs}
          softwareVersion: ${redisClusterSoftwareVersion}
          subnetId: ${testSubnet.id}
          definedTags:
            foo-namespace.bar-key: value
          freeformTags:
            bar-key: value
          nsgIds: ${redisClusterNsgIds}
    

    Create RedisCluster Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RedisCluster(name: string, args: RedisClusterArgs, opts?: CustomResourceOptions);
    @overload
    def RedisCluster(resource_name: str,
                     args: RedisClusterArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def RedisCluster(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     compartment_id: Optional[str] = None,
                     display_name: Optional[str] = None,
                     node_count: Optional[int] = None,
                     node_memory_in_gbs: Optional[float] = None,
                     software_version: Optional[str] = None,
                     subnet_id: Optional[str] = None,
                     defined_tags: Optional[Mapping[str, Any]] = None,
                     freeform_tags: Optional[Mapping[str, Any]] = None,
                     nsg_ids: Optional[Sequence[str]] = None)
    func NewRedisCluster(ctx *Context, name string, args RedisClusterArgs, opts ...ResourceOption) (*RedisCluster, error)
    public RedisCluster(string name, RedisClusterArgs args, CustomResourceOptions? opts = null)
    public RedisCluster(String name, RedisClusterArgs args)
    public RedisCluster(String name, RedisClusterArgs args, CustomResourceOptions options)
    
    type: oci:Redis:RedisCluster
    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 RedisClusterArgs
    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 RedisClusterArgs
    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 RedisClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RedisClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RedisClusterArgs
    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 redisClusterResource = new Oci.Redis.RedisCluster("redisClusterResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        NodeCount = 0,
        NodeMemoryInGbs = 0,
        SoftwareVersion = "string",
        SubnetId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        NsgIds = new[]
        {
            "string",
        },
    });
    
    example, err := Redis.NewRedisCluster(ctx, "redisClusterResource", &Redis.RedisClusterArgs{
    	CompartmentId:   pulumi.String("string"),
    	DisplayName:     pulumi.String("string"),
    	NodeCount:       pulumi.Int(0),
    	NodeMemoryInGbs: pulumi.Float64(0),
    	SoftwareVersion: pulumi.String("string"),
    	SubnetId:        pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	NsgIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var redisClusterResource = new RedisCluster("redisClusterResource", RedisClusterArgs.builder()
        .compartmentId("string")
        .displayName("string")
        .nodeCount(0)
        .nodeMemoryInGbs(0)
        .softwareVersion("string")
        .subnetId("string")
        .definedTags(Map.of("string", "any"))
        .freeformTags(Map.of("string", "any"))
        .nsgIds("string")
        .build());
    
    redis_cluster_resource = oci.redis.RedisCluster("redisClusterResource",
        compartment_id="string",
        display_name="string",
        node_count=0,
        node_memory_in_gbs=0,
        software_version="string",
        subnet_id="string",
        defined_tags={
            "string": "any",
        },
        freeform_tags={
            "string": "any",
        },
        nsg_ids=["string"])
    
    const redisClusterResource = new oci.redis.RedisCluster("redisClusterResource", {
        compartmentId: "string",
        displayName: "string",
        nodeCount: 0,
        nodeMemoryInGbs: 0,
        softwareVersion: "string",
        subnetId: "string",
        definedTags: {
            string: "any",
        },
        freeformTags: {
            string: "any",
        },
        nsgIds: ["string"],
    });
    
    type: oci:Redis:RedisCluster
    properties:
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        freeformTags:
            string: any
        nodeCount: 0
        nodeMemoryInGbs: 0
        nsgIds:
            - string
        softwareVersion: string
        subnetId: string
    

    RedisCluster 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 RedisCluster resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    NodeCount int
    (Updatable) The number of nodes in the Redis cluster.
    NodeMemoryInGbs double
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    SoftwareVersion string
    The Redis version that the cluster is running.
    SubnetId string

    The OCID of the Redis cluster's subnet.

    ** 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

    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags 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"}
    NsgIds List<string>
    (Updatable) OCIDs of the NSGs to control access in the customer network
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    NodeCount int
    (Updatable) The number of nodes in the Redis cluster.
    NodeMemoryInGbs float64
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    SoftwareVersion string
    The Redis version that the cluster is running.
    SubnetId string

    The OCID of the Redis cluster's subnet.

    ** 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

    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags 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"}
    NsgIds []string
    (Updatable) OCIDs of the NSGs to control access in the customer network
    compartmentId String
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    nodeCount Integer
    (Updatable) The number of nodes in the Redis cluster.
    nodeMemoryInGbs Double
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    softwareVersion String
    The Redis version that the cluster is running.
    subnetId String

    The OCID of the Redis cluster's subnet.

    ** 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

    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags 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"}
    nsgIds List<String>
    (Updatable) OCIDs of the NSGs to control access in the customer network
    compartmentId string
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    nodeCount number
    (Updatable) The number of nodes in the Redis cluster.
    nodeMemoryInGbs number
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    softwareVersion string
    The Redis version that the cluster is running.
    subnetId string

    The OCID of the Redis cluster's subnet.

    ** 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

    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[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"}
    nsgIds string[]
    (Updatable) OCIDs of the NSGs to control access in the customer network
    compartment_id str
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    node_count int
    (Updatable) The number of nodes in the Redis cluster.
    node_memory_in_gbs float
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    software_version str
    The Redis version that the cluster is running.
    subnet_id str

    The OCID of the Redis cluster's subnet.

    ** 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

    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeform_tags 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"}
    nsg_ids Sequence[str]
    (Updatable) OCIDs of the NSGs to control access in the customer network
    compartmentId String
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    nodeCount Number
    (Updatable) The number of nodes in the Redis cluster.
    nodeMemoryInGbs Number
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    softwareVersion String
    The Redis version that the cluster is running.
    subnetId String

    The OCID of the Redis cluster's subnet.

    ** 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

    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags 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"}
    nsgIds List<String>
    (Updatable) OCIDs of the NSGs to control access in the customer network

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RedisCluster resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    NodeCollections List<RedisClusterNodeCollection>
    The collection of Redis cluster nodes.
    PrimaryEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's primary node.
    PrimaryFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    ReplicasEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    ReplicasFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    State string
    The current state of the Redis cluster.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    NodeCollections []RedisClusterNodeCollection
    The collection of Redis cluster nodes.
    PrimaryEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's primary node.
    PrimaryFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    ReplicasEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    ReplicasFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    State string
    The current state of the Redis cluster.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    nodeCollections List<ClusterNodeCollection>
    The collection of Redis cluster nodes.
    primaryEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primaryFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicasEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicasFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    state String
    The current state of the Redis cluster.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    nodeCollections RedisClusterNodeCollection[]
    The collection of Redis cluster nodes.
    primaryEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primaryFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicasEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicasFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    state string
    The current state of the Redis cluster.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    node_collections Sequence[redis.RedisClusterNodeCollection]
    The collection of Redis cluster nodes.
    primary_endpoint_ip_address str
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primary_fqdn str
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicas_endpoint_ip_address str
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicas_fqdn str
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    state str
    The current state of the Redis cluster.
    system_tags 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 date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    time_updated str
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    nodeCollections List<Property Map>
    The collection of Redis cluster nodes.
    primaryEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primaryFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicasEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicasFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    state String
    The current state of the Redis cluster.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.

    Look up Existing RedisCluster Resource

    Get an existing RedisCluster 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?: RedisClusterState, opts?: CustomResourceOptions): RedisCluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            lifecycle_details: Optional[str] = None,
            node_collections: Optional[Sequence[_redis.RedisClusterNodeCollectionArgs]] = None,
            node_count: Optional[int] = None,
            node_memory_in_gbs: Optional[float] = None,
            nsg_ids: Optional[Sequence[str]] = None,
            primary_endpoint_ip_address: Optional[str] = None,
            primary_fqdn: Optional[str] = None,
            replicas_endpoint_ip_address: Optional[str] = None,
            replicas_fqdn: Optional[str] = None,
            software_version: Optional[str] = None,
            state: Optional[str] = None,
            subnet_id: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> RedisCluster
    func GetRedisCluster(ctx *Context, name string, id IDInput, state *RedisClusterState, opts ...ResourceOption) (*RedisCluster, error)
    public static RedisCluster Get(string name, Input<string> id, RedisClusterState? state, CustomResourceOptions? opts = null)
    public static RedisCluster get(String name, Output<String> id, RedisClusterState 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.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags 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"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    NodeCollections List<RedisClusterNodeCollection>
    The collection of Redis cluster nodes.
    NodeCount int
    (Updatable) The number of nodes in the Redis cluster.
    NodeMemoryInGbs double
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    NsgIds List<string>
    (Updatable) OCIDs of the NSGs to control access in the customer network
    PrimaryEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's primary node.
    PrimaryFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    ReplicasEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    ReplicasFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    SoftwareVersion string
    The Redis version that the cluster is running.
    State string
    The current state of the Redis cluster.
    SubnetId string

    The OCID of the Redis cluster's subnet.

    ** 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

    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    CompartmentId string
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags 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"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    NodeCollections []RedisClusterNodeCollectionArgs
    The collection of Redis cluster nodes.
    NodeCount int
    (Updatable) The number of nodes in the Redis cluster.
    NodeMemoryInGbs float64
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    NsgIds []string
    (Updatable) OCIDs of the NSGs to control access in the customer network
    PrimaryEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's primary node.
    PrimaryFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    ReplicasEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    ReplicasFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    SoftwareVersion string
    The Redis version that the cluster is running.
    State string
    The current state of the Redis cluster.
    SubnetId string

    The OCID of the Redis cluster's subnet.

    ** 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

    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags 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"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    nodeCollections List<ClusterNodeCollection>
    The collection of Redis cluster nodes.
    nodeCount Integer
    (Updatable) The number of nodes in the Redis cluster.
    nodeMemoryInGbs Double
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    nsgIds List<String>
    (Updatable) OCIDs of the NSGs to control access in the customer network
    primaryEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primaryFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicasEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicasFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    softwareVersion String
    The Redis version that the cluster is running.
    state String
    The current state of the Redis cluster.
    subnetId String

    The OCID of the Redis cluster's subnet.

    ** 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

    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    compartmentId string
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[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"}
    lifecycleDetails string
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    nodeCollections RedisClusterNodeCollection[]
    The collection of Redis cluster nodes.
    nodeCount number
    (Updatable) The number of nodes in the Redis cluster.
    nodeMemoryInGbs number
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    nsgIds string[]
    (Updatable) OCIDs of the NSGs to control access in the customer network
    primaryEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primaryFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicasEndpointIpAddress string
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicasFqdn string
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    softwareVersion string
    The Redis version that the cluster is running.
    state string
    The current state of the Redis cluster.
    subnetId string

    The OCID of the Redis cluster's subnet.

    ** 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

    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    compartment_id str
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    defined_tags 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) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags 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
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    node_collections Sequence[redis.RedisClusterNodeCollectionArgs]
    The collection of Redis cluster nodes.
    node_count int
    (Updatable) The number of nodes in the Redis cluster.
    node_memory_in_gbs float
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    nsg_ids Sequence[str]
    (Updatable) OCIDs of the NSGs to control access in the customer network
    primary_endpoint_ip_address str
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primary_fqdn str
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicas_endpoint_ip_address str
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicas_fqdn str
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    software_version str
    The Redis version that the cluster is running.
    state str
    The current state of the Redis cluster.
    subnet_id str

    The OCID of the Redis cluster's subnet.

    ** 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

    system_tags 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 date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    time_updated str
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.
    compartmentId String
    (Updatable) The OCID of the compartment that contains the Redis cluster.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags 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"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, the message might provide actionable information for a resource in FAILED state.
    nodeCollections List<Property Map>
    The collection of Redis cluster nodes.
    nodeCount Number
    (Updatable) The number of nodes in the Redis cluster.
    nodeMemoryInGbs Number
    (Updatable) The amount of memory allocated to the Redis cluster's nodes, in gigabytes.
    nsgIds List<String>
    (Updatable) OCIDs of the NSGs to control access in the customer network
    primaryEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's primary node.
    primaryFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node.
    replicasEndpointIpAddress String
    The private IP address of the API endpoint for the Redis cluster's replica nodes.
    replicasFqdn String
    The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes.
    softwareVersion String
    The Redis version that the cluster is running.
    state String
    The current state of the Redis cluster.
    subnetId String

    The OCID of the Redis cluster's subnet.

    ** 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

    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Redis cluster was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The date and time the Redis cluster was updated. An RFC3339 formatted datetime string.

    Supporting Types

    RedisClusterNodeCollection, RedisClusterNodeCollectionArgs

    Items List<RedisClusterNodeCollectionItem>
    Collection of node objects.
    Items []RedisClusterNodeCollectionItem
    Collection of node objects.
    items List<ClusterNodeCollectionItem>
    Collection of node objects.
    items RedisClusterNodeCollectionItem[]
    Collection of node objects.
    items List<Property Map>
    Collection of node objects.

    RedisClusterNodeCollectionItem, RedisClusterNodeCollectionItemArgs

    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    PrivateEndpointFqdn string
    The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
    PrivateEndpointIpAddress string
    The private IP address of the API endpoint to access a specific node.
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    PrivateEndpointFqdn string
    The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
    PrivateEndpointIpAddress string
    The private IP address of the API endpoint to access a specific node.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    privateEndpointFqdn String
    The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
    privateEndpointIpAddress String
    The private IP address of the API endpoint to access a specific node.
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    privateEndpointFqdn string
    The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
    privateEndpointIpAddress string
    The private IP address of the API endpoint to access a specific node.
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    private_endpoint_fqdn str
    The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
    private_endpoint_ip_address str
    The private IP address of the API endpoint to access a specific node.
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    privateEndpointFqdn String
    The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
    privateEndpointIpAddress String
    The private IP address of the API endpoint to access a specific node.

    Import

    RedisClusters can be imported using the id, e.g.

    $ pulumi import oci:Redis/redisCluster:RedisCluster test_redis_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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi