oci.Redis.RedisCluster
Explore with Pulumi AI
This resource provides the Redis Cluster resource in Oracle Cloud Infrastructure Redis service.
Creates a new Oracle Cloud Infrastructure Cache cluster. A cluster is a memory-based storage solution. For more information, see OCI Cache.
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,
clusterMode: redisClusterClusterMode,
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
nsgIds: redisClusterNsgIds,
shardCount: redisClusterShardCount,
});
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"],
cluster_mode=redis_cluster_cluster_mode,
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
},
nsg_ids=redis_cluster_nsg_ids,
shard_count=redis_cluster_shard_count)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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),
ClusterMode: pulumi.Any(redisClusterClusterMode),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
NsgIds: pulumi.Any(redisClusterNsgIds),
ShardCount: pulumi.Any(redisClusterShardCount),
})
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,
ClusterMode = redisClusterClusterMode,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
NsgIds = redisClusterNsgIds,
ShardCount = redisClusterShardCount,
});
});
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())
.clusterMode(redisClusterClusterMode)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.nsgIds(redisClusterNsgIds)
.shardCount(redisClusterShardCount)
.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}
clusterMode: ${redisClusterClusterMode}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
nsgIds: ${redisClusterNsgIds}
shardCount: ${redisClusterShardCount}
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,
cluster_mode: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
nsg_ids: Optional[Sequence[str]] = None,
shard_count: Optional[int] = 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",
ClusterMode = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
NsgIds = new[]
{
"string",
},
ShardCount = 0,
});
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"),
ClusterMode: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
NsgIds: pulumi.StringArray{
pulumi.String("string"),
},
ShardCount: pulumi.Int(0),
})
var redisClusterResource = new RedisCluster("redisClusterResource", RedisClusterArgs.builder()
.compartmentId("string")
.displayName("string")
.nodeCount(0)
.nodeMemoryInGbs(0)
.softwareVersion("string")
.subnetId("string")
.clusterMode("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.nsgIds("string")
.shardCount(0)
.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",
cluster_mode="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
nsg_ids=["string"],
shard_count=0)
const redisClusterResource = new oci.redis.RedisCluster("redisClusterResource", {
compartmentId: "string",
displayName: "string",
nodeCount: 0,
nodeMemoryInGbs: 0,
softwareVersion: "string",
subnetId: "string",
clusterMode: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
nsgIds: ["string"],
shardCount: 0,
});
type: oci:Redis:RedisCluster
properties:
clusterMode: string
compartmentId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
nodeCount: 0
nodeMemoryInGbs: 0
nsgIds:
- string
shardCount: 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RedisCluster resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the cluster.
- Display
Name string - (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 per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- Node
Memory doubleIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- Software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- Subnet
Id string The OCID of the 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
- Cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- (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 List<string> - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- int
- (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the cluster.
- Display
Name string - (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 per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- Node
Memory float64In Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- Software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- Subnet
Id string The OCID of the 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
- Cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- (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 []string - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- int
- (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the cluster.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- node
Count Integer - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node
Memory DoubleIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- software
Version String - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- subnet
Id String The OCID of the 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
- cluster
Mode String - Specifies whether the cluster is sharded or non-sharded.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- (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 List<String> - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- Integer
- (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- compartment
Id string - (Updatable) The OCID of the compartment that contains the cluster.
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- node
Count number - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node
Memory numberIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- subnet
Id string The OCID of the 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
- cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- (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 string[] - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- number
- (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- compartment_
id str - (Updatable) The OCID of the compartment that contains the 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 per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node_
memory_ floatin_ gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- software_
version str - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- subnet_
id str The OCID of the 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
- cluster_
mode str - Specifies whether the cluster is sharded or non-sharded.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (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) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- int
- (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the cluster.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- node
Count Number - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node
Memory NumberIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- software
Version String - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- subnet
Id String The OCID of the 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
- cluster
Mode String - Specifies whether the cluster is sharded or non-sharded.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- (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 List<String> - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- Number
- (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
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.
- Lifecycle
Details string - 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 List<RedisCluster Node Collection> - The collection of cluster nodes.
- Primary
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- Primary
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- Replicas
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- Replicas
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- State string
- The current state of the cluster.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the cluster was created. An RFC3339 formatted datetime string.
- Time
Updated string - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - 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 []RedisCluster Node Collection - The collection of cluster nodes.
- Primary
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- Primary
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- Replicas
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- Replicas
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- State string
- The current state of the cluster.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the cluster was created. An RFC3339 formatted datetime string.
- Time
Updated string - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - 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 List<ClusterNode Collection> - The collection of cluster nodes.
- primary
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- primary
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- state String
- The current state of the cluster.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the cluster was created. An RFC3339 formatted datetime string.
- time
Updated String - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - 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 RedisCluster Node Collection[] - The collection of cluster nodes.
- primary
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- primary
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- state string
- The current state of the cluster.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the cluster was created. An RFC3339 formatted datetime string.
- time
Updated string - The date and time the 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.Redis Cluster Node Collection] - The collection of cluster nodes.
- primary_
endpoint_ strip_ address - The private IP address of the API endpoint for the cluster's primary node.
- primary_
fqdn str - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas_
endpoint_ strip_ address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas_
fqdn str - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- state str
- The current state of the cluster.
- Mapping[str, str]
- 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 cluster was created. An RFC3339 formatted datetime string.
- time_
updated str - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - 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 List<Property Map> - The collection of cluster nodes.
- primary
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- primary
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- state String
- The current state of the cluster.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the cluster was created. An RFC3339 formatted datetime string.
- time
Updated String - The date and time the 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,
cluster_mode: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = 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,
shard_count: Optional[int] = None,
software_version: Optional[str] = None,
state: Optional[str] = None,
subnet_id: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = 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.
- Cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the cluster.
- Dictionary<string, string>
- (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) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (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 - 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 List<RedisCluster Node Collection> - The collection of cluster nodes.
- Node
Count int - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- Node
Memory doubleIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- Nsg
Ids List<string> - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- Primary
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- Primary
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- Replicas
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- Replicas
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- Shard
Count int - (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- Software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- State string
- The current state of the cluster.
- Subnet
Id string The OCID of the 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
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the cluster was created. An RFC3339 formatted datetime string.
- Time
Updated string - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- Cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the cluster.
- map[string]string
- (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) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (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 - 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 []RedisCluster Node Collection Args - The collection of cluster nodes.
- Node
Count int - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- Node
Memory float64In Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- Nsg
Ids []string - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- Primary
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- Primary
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- Replicas
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- Replicas
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- Shard
Count int - (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- Software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- State string
- The current state of the cluster.
- Subnet
Id string The OCID of the 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
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the cluster was created. An RFC3339 formatted datetime string.
- Time
Updated string - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- cluster
Mode String - Specifies whether the cluster is sharded or non-sharded.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the cluster.
- Map<String,String>
- (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) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (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 - 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 List<ClusterNode Collection> - The collection of cluster nodes.
- node
Count Integer - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node
Memory DoubleIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- nsg
Ids List<String> - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- primary
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- primary
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- shard
Count Integer - (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- software
Version String - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- state String
- The current state of the cluster.
- subnet
Id String The OCID of the 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
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the cluster was created. An RFC3339 formatted datetime string.
- time
Updated String - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
- compartment
Id string - (Updatable) The OCID of the compartment that contains the cluster.
- {[key: string]: string}
- (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) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (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 - 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 RedisCluster Node Collection[] - The collection of cluster nodes.
- node
Count number - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node
Memory numberIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- nsg
Ids string[] - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- primary
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- primary
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas
Endpoint stringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas
Fqdn string - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- shard
Count number - (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- software
Version string - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- state string
- The current state of the cluster.
- subnet
Id string The OCID of the 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
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the cluster was created. An RFC3339 formatted datetime string.
- time
Updated string - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- cluster_
mode str - Specifies whether the cluster is sharded or non-sharded.
- compartment_
id str - (Updatable) The OCID of the compartment that contains the cluster.
- Mapping[str, str]
- (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.
- Mapping[str, str]
- (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.Redis Cluster Node Collection Args] - The collection of cluster nodes.
- node_
count int - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node_
memory_ floatin_ gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- nsg_
ids Sequence[str] - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- primary_
endpoint_ strip_ address - The private IP address of the API endpoint for the cluster's primary node.
- primary_
fqdn str - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas_
endpoint_ strip_ address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas_
fqdn str - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- shard_
count int - (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- software_
version str - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- state str
- The current state of the cluster.
- subnet_
id str The OCID of the 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
- Mapping[str, str]
- 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 cluster was created. An RFC3339 formatted datetime string.
- time_
updated str - The date and time the cluster was updated. An RFC3339 formatted datetime string.
- cluster
Mode String - Specifies whether the cluster is sharded or non-sharded.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the cluster.
- Map<String>
- (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) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (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 - 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 List<Property Map> - The collection of cluster nodes.
- node
Count Number - (Updatable) The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED.
- node
Memory NumberIn Gbs - (Updatable) The amount of memory allocated to the cluster's nodes, in gigabytes.
- nsg
Ids List<String> - (Updatable) A list of Network Security Group (NSG) OCIDs associated with this cluster. For more information, see Using an NSG for Clusters.
- primary
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's primary node.
- primary
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node.
- replicas
Endpoint StringIp Address - The private IP address of the API endpoint for the cluster's replica nodes.
- replicas
Fqdn String - The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes.
- shard
Count Number - (Updatable) The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED.
- software
Version String - The Oracle Cloud Infrastructure Cache engine version that the cluster is running.
- state String
- The current state of the cluster.
- subnet
Id String The OCID of the 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
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the cluster was created. An RFC3339 formatted datetime string.
- time
Updated String - The date and time the cluster was updated. An RFC3339 formatted datetime string.
Supporting Types
RedisClusterNodeCollection, RedisClusterNodeCollectionArgs
- Items
List<Redis
Cluster Node Collection Item> - Collection of node objects.
- Items
[]Redis
Cluster Node Collection Item - Collection of node objects.
- items
List<Cluster
Node Collection Item> - Collection of node objects.
- items
Redis
Cluster Node Collection Item[] - Collection of node objects.
- items
Sequence[redis.
Redis Cluster Node Collection Item] - Collection of node objects.
- items List<Property Map>
- Collection of node objects.
RedisClusterNodeCollectionItem, RedisClusterNodeCollectionItemArgs
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Private
Endpoint stringFqdn - The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- Private
Endpoint stringIp Address - The private IP address of the API endpoint to access a specific node.
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Private
Endpoint stringFqdn - The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- Private
Endpoint stringIp Address - The private IP address of the API endpoint to access a specific node.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- private
Endpoint StringFqdn - The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- private
Endpoint StringIp Address - The private IP address of the API endpoint to access a specific node.
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- private
Endpoint stringFqdn - The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- private
Endpoint stringIp Address - 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_ strfqdn - The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- private_
endpoint_ strip_ address - The private IP address of the API endpoint to access a specific node.
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- private
Endpoint StringFqdn - The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- private
Endpoint StringIp Address - 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.