Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Redis.getRedisCluster
Explore with Pulumi AI
This data source provides details about a specific Redis Cluster resource in Oracle Cloud Infrastructure Redis service.
Retrieves the specified 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 = oci.Redis.getRedisCluster({
    redisClusterId: testRedisClusterOciRedisRedisCluster.id,
});
import pulumi
import pulumi_oci as oci
test_redis_cluster = oci.Redis.get_redis_cluster(redis_cluster_id=test_redis_cluster_oci_redis_redis_cluster["id"])
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.GetRedisCluster(ctx, &redis.GetRedisClusterArgs{
			RedisClusterId: testRedisClusterOciRedisRedisCluster.Id,
		}, nil)
		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 = Oci.Redis.GetRedisCluster.Invoke(new()
    {
        RedisClusterId = testRedisClusterOciRedisRedisCluster.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Redis.RedisFunctions;
import com.pulumi.oci.Redis.inputs.GetRedisClusterArgs;
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) {
        final var testRedisCluster = RedisFunctions.getRedisCluster(GetRedisClusterArgs.builder()
            .redisClusterId(testRedisClusterOciRedisRedisCluster.id())
            .build());
    }
}
variables:
  testRedisCluster:
    fn::invoke:
      function: oci:Redis:getRedisCluster
      arguments:
        redisClusterId: ${testRedisClusterOciRedisRedisCluster.id}
Using getRedisCluster
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRedisCluster(args: GetRedisClusterArgs, opts?: InvokeOptions): Promise<GetRedisClusterResult>
function getRedisClusterOutput(args: GetRedisClusterOutputArgs, opts?: InvokeOptions): Output<GetRedisClusterResult>def get_redis_cluster(redis_cluster_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetRedisClusterResult
def get_redis_cluster_output(redis_cluster_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetRedisClusterResult]func GetRedisCluster(ctx *Context, args *GetRedisClusterArgs, opts ...InvokeOption) (*GetRedisClusterResult, error)
func GetRedisClusterOutput(ctx *Context, args *GetRedisClusterOutputArgs, opts ...InvokeOption) GetRedisClusterResultOutput> Note: This function is named GetRedisCluster in the Go SDK.
public static class GetRedisCluster 
{
    public static Task<GetRedisClusterResult> InvokeAsync(GetRedisClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetRedisClusterResult> Invoke(GetRedisClusterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRedisClusterResult> getRedisCluster(GetRedisClusterArgs args, InvokeOptions options)
public static Output<GetRedisClusterResult> getRedisCluster(GetRedisClusterArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Redis/getRedisCluster:getRedisCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Redis
Cluster stringId  - The OCID of the cluster.
 
- Redis
Cluster stringId  - The OCID of the cluster.
 
- redis
Cluster StringId  - The OCID of the cluster.
 
- redis
Cluster stringId  - The OCID of the cluster.
 
- redis_
cluster_ strid  - The OCID of the cluster.
 
- redis
Cluster StringId  - The OCID of the cluster.
 
getRedisCluster Result
The following output properties are available:
- Cluster
Mode string - Specifies whether the cluster is sharded or non-sharded.
 - Compartment
Id string - The OCID of the compartment that contains the cluster.
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Display
Name string - A user-friendly name of a cluster node.
 - Dictionary<string, string>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Id string
 - The OCID of the cluster.
 - Lifecycle
Details string - A message describing the current state in more detail. For example, the message might provide actionable information for a resource in 
FAILEDstate. - Node
Collections List<GetRedis Cluster Node Collection>  - The collection of cluster nodes.
 - Node
Count int - 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  - The amount of memory allocated to the cluster's nodes, in gigabytes.
 - Nsg
Ids List<string> - 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.
 - Redis
Cluster stringId  - 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.
 - int
 - The number of shards in a 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.
 - 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 - The OCID of the compartment that contains the cluster.
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - Display
Name string - A user-friendly name of a cluster node.
 - map[string]string
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - Id string
 - The OCID of the cluster.
 - Lifecycle
Details string - A message describing the current state in more detail. For example, the message might provide actionable information for a resource in 
FAILEDstate. - Node
Collections []GetRedis Cluster Node Collection  - The collection of cluster nodes.
 - Node
Count int - 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  - The amount of memory allocated to the cluster's nodes, in gigabytes.
 - Nsg
Ids []string - 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.
 - Redis
Cluster stringId  - 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.
 - int
 - The number of shards in a 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.
 - 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 - The OCID of the compartment that contains the cluster.
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display
Name String - A user-friendly name of a cluster node.
 - Map<String,String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id String
 - The OCID of the cluster.
 - lifecycle
Details String - A message describing the current state in more detail. For example, the message might provide actionable information for a resource in 
FAILEDstate. - node
Collections List<GetCluster Node Collection>  - The collection of cluster nodes.
 - node
Count Integer - 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  - The amount of memory allocated to the cluster's nodes, in gigabytes.
 - nsg
Ids List<String> - 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.
 - redis
Cluster StringId  - 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.
 - Integer
 - The number of shards in a 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.
 - 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 - The OCID of the compartment that contains the cluster.
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display
Name string - A user-friendly name of a cluster node.
 - {[key: string]: string}
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id string
 - The OCID of the cluster.
 - lifecycle
Details string - A message describing the current state in more detail. For example, the message might provide actionable information for a resource in 
FAILEDstate. - node
Collections GetRedis Cluster Node Collection[]  - The collection of cluster nodes.
 - node
Count number - 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  - The amount of memory allocated to the cluster's nodes, in gigabytes.
 - nsg
Ids string[] - 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.
 - redis
Cluster stringId  - 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.
 - number
 - The number of shards in a 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.
 - {[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 - The OCID of the compartment that contains the cluster.
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display_
name str - A user-friendly name of a cluster node.
 - Mapping[str, str]
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id str
 - The OCID of the cluster.
 - lifecycle_
details str - A message describing the current state in more detail. For example, the message might provide actionable information for a resource in 
FAILEDstate. - node_
collections Sequence[redis.Get Redis Cluster Node Collection]  - The collection of cluster nodes.
 - node_
count int - 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  - The amount of memory allocated to the cluster's nodes, in gigabytes.
 - nsg_
ids Sequence[str] - 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.
 - redis_
cluster_ strid  - 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.
 - int
 - The number of shards in a 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.
 - 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 - The OCID of the compartment that contains the cluster.
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: 
{"foo-namespace.bar-key": "value"} - display
Name String - A user-friendly name of a cluster node.
 - Map<String>
 - Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: 
{"bar-key": "value"} - id String
 - The OCID of the cluster.
 - lifecycle
Details String - A message describing the current state in more detail. For example, the message might provide actionable information for a resource in 
FAILEDstate. - node
Collections List<Property Map> - The collection of cluster nodes.
 - node
Count Number - 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  - The amount of memory allocated to the cluster's nodes, in gigabytes.
 - nsg
Ids List<String> - 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.
 - redis
Cluster StringId  - 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.
 - Number
 - The number of shards in a 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.
 - 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
GetRedisClusterNodeCollection    
- Items
List<Get
Redis Cluster Node Collection Item>  - Collection of node objects.
 
- Items
[]Get
Redis Cluster Node Collection Item  - Collection of node objects.
 
- items
List<Get
Cluster Node Collection Item>  - Collection of node objects.
 
- items
Get
Redis Cluster Node Collection Item[]  - Collection of node objects.
 
- items
Sequence[redis.
Get Redis Cluster Node Collection Item]  - Collection of node objects.
 
- items List<Property Map>
 - Collection of node objects.
 
GetRedisClusterNodeCollectionItem     
- Display
Name string - A user-friendly name of a cluster node.
 - 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 - A user-friendly name of a cluster node.
 - 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 - A user-friendly name of a cluster node.
 - 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 - A user-friendly name of a cluster node.
 - 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 - A user-friendly name of a cluster node.
 - 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 - A user-friendly name of a cluster node.
 - 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.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.