Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Redis.getRedisClusterNodes
Explore with Pulumi AI
This data source provides the list of Redis Cluster Nodes in Oracle Cloud Infrastructure Redis service.
Gets the list of all nodes in a cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRedisClusterNodes = oci.Redis.getRedisClusterNodes({
    redisClusterId: testRedisCluster.id,
    displayName: redisClusterNodeDisplayName,
});
import pulumi
import pulumi_oci as oci
test_redis_cluster_nodes = oci.Redis.get_redis_cluster_nodes(redis_cluster_id=test_redis_cluster["id"],
    display_name=redis_cluster_node_display_name)
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.GetRedisClusterNodes(ctx, &redis.GetRedisClusterNodesArgs{
			RedisClusterId: testRedisCluster.Id,
			DisplayName:    pulumi.StringRef(redisClusterNodeDisplayName),
		}, 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 testRedisClusterNodes = Oci.Redis.GetRedisClusterNodes.Invoke(new()
    {
        RedisClusterId = testRedisCluster.Id,
        DisplayName = redisClusterNodeDisplayName,
    });
});
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.GetRedisClusterNodesArgs;
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 testRedisClusterNodes = RedisFunctions.getRedisClusterNodes(GetRedisClusterNodesArgs.builder()
            .redisClusterId(testRedisCluster.id())
            .displayName(redisClusterNodeDisplayName)
            .build());
    }
}
variables:
  testRedisClusterNodes:
    fn::invoke:
      function: oci:Redis:getRedisClusterNodes
      arguments:
        redisClusterId: ${testRedisCluster.id}
        displayName: ${redisClusterNodeDisplayName}
Using getRedisClusterNodes
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 getRedisClusterNodes(args: GetRedisClusterNodesArgs, opts?: InvokeOptions): Promise<GetRedisClusterNodesResult>
function getRedisClusterNodesOutput(args: GetRedisClusterNodesOutputArgs, opts?: InvokeOptions): Output<GetRedisClusterNodesResult>def get_redis_cluster_nodes(display_name: Optional[str] = None,
                            filters: Optional[Sequence[GetRedisClusterNodesFilter]] = None,
                            redis_cluster_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRedisClusterNodesResult
def get_redis_cluster_nodes_output(display_name: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRedisClusterNodesFilterArgs]]]] = None,
                            redis_cluster_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRedisClusterNodesResult]func GetRedisClusterNodes(ctx *Context, args *GetRedisClusterNodesArgs, opts ...InvokeOption) (*GetRedisClusterNodesResult, error)
func GetRedisClusterNodesOutput(ctx *Context, args *GetRedisClusterNodesOutputArgs, opts ...InvokeOption) GetRedisClusterNodesResultOutput> Note: This function is named GetRedisClusterNodes in the Go SDK.
public static class GetRedisClusterNodes 
{
    public static Task<GetRedisClusterNodesResult> InvokeAsync(GetRedisClusterNodesArgs args, InvokeOptions? opts = null)
    public static Output<GetRedisClusterNodesResult> Invoke(GetRedisClusterNodesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRedisClusterNodesResult> getRedisClusterNodes(GetRedisClusterNodesArgs args, InvokeOptions options)
public static Output<GetRedisClusterNodesResult> getRedisClusterNodes(GetRedisClusterNodesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Redis/getRedisClusterNodes:getRedisClusterNodes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RedisCluster stringId 
- The OCID of the cluster.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetRedis Cluster Nodes Filter> 
- RedisCluster stringId 
- The OCID of the cluster.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetRedis Cluster Nodes Filter 
- redisCluster StringId 
- The OCID of the cluster.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetCluster Nodes Filter> 
- redisCluster stringId 
- The OCID of the cluster.
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetRedis Cluster Nodes Filter[] 
- redis_cluster_ strid 
- The OCID of the cluster.
- display_name str
- A filter to return only resources that match the entire display name given.
- filters
Sequence[GetRedis Cluster Nodes Filter] 
- redisCluster StringId 
- The OCID of the cluster.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters List<Property Map>
getRedisClusterNodes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- RedisCluster stringId 
- The OCID of the cluster
- RedisNode List<GetCollections Redis Cluster Nodes Redis Node Collection> 
- The list of redis_node_collection.
- DisplayName string
- A user-friendly name of a cluster node.
- Filters
List<GetRedis Cluster Nodes Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- RedisCluster stringId 
- The OCID of the cluster
- RedisNode []GetCollections Redis Cluster Nodes Redis Node Collection 
- The list of redis_node_collection.
- DisplayName string
- A user-friendly name of a cluster node.
- Filters
[]GetRedis Cluster Nodes Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- redisCluster StringId 
- The OCID of the cluster
- redisNode List<GetCollections Cluster Nodes Node Collection> 
- The list of redis_node_collection.
- displayName String
- A user-friendly name of a cluster node.
- filters
List<GetCluster Nodes Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- redisCluster stringId 
- The OCID of the cluster
- redisNode GetCollections Redis Cluster Nodes Redis Node Collection[] 
- The list of redis_node_collection.
- displayName string
- A user-friendly name of a cluster node.
- filters
GetRedis Cluster Nodes Filter[] 
- id str
- The provider-assigned unique ID for this managed resource.
- redis_cluster_ strid 
- The OCID of the cluster
- redis_node_ Sequence[Getcollections Redis Cluster Nodes Redis Node Collection] 
- The list of redis_node_collection.
- display_name str
- A user-friendly name of a cluster node.
- filters
Sequence[GetRedis Cluster Nodes Filter] 
- id String
- The provider-assigned unique ID for this managed resource.
- redisCluster StringId 
- The OCID of the cluster
- redisNode List<Property Map>Collections 
- The list of redis_node_collection.
- displayName String
- A user-friendly name of a cluster node.
- filters List<Property Map>
Supporting Types
GetRedisClusterNodesFilter    
GetRedisClusterNodesRedisNodeCollection      
- Items
List<GetRedis Cluster Nodes Redis Node Collection Item> 
- The list of nodes in a cluster.
- Items
[]GetRedis Cluster Nodes Redis Node Collection Item 
- The list of nodes in a cluster.
- items
List<GetCluster Nodes Node Collection Item> 
- The list of nodes in a cluster.
- items
GetRedis Cluster Nodes Redis Node Collection Item[] 
- The list of nodes in a cluster.
- items
Sequence[GetRedis Cluster Nodes Redis Node Collection Item] 
- The list of nodes in a cluster.
- items List<Property Map>
- The list of nodes in a cluster.
GetRedisClusterNodesRedisNodeCollectionItem       
- DisplayName string
- A filter to return only resources that match the entire display name given.
- PrivateEndpoint stringFqdn 
- The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- PrivateEndpoint stringIp Address 
- The private IP address of the API endpoint to access a specific node.
- RedisCluster stringId 
- The OCID of the cluster.
- int
- The shard number to which the node belongs to.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- PrivateEndpoint stringFqdn 
- The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- PrivateEndpoint stringIp Address 
- The private IP address of the API endpoint to access a specific node.
- RedisCluster stringId 
- The OCID of the cluster.
- int
- The shard number to which the node belongs to.
- displayName String
- A filter to return only resources that match the entire display name given.
- privateEndpoint StringFqdn 
- The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- privateEndpoint StringIp Address 
- The private IP address of the API endpoint to access a specific node.
- redisCluster StringId 
- The OCID of the cluster.
- Integer
- The shard number to which the node belongs to.
- displayName string
- A filter to return only resources that match the entire display name given.
- privateEndpoint stringFqdn 
- The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- privateEndpoint stringIp Address 
- The private IP address of the API endpoint to access a specific node.
- redisCluster stringId 
- The OCID of the cluster.
- number
- The shard number to which the node belongs to.
- display_name str
- A filter to return only resources that match the entire display name given.
- 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.
- redis_cluster_ strid 
- The OCID of the cluster.
- int
- The shard number to which the node belongs to.
- displayName String
- A filter to return only resources that match the entire display name given.
- privateEndpoint StringFqdn 
- The fully qualified domain name (FQDN) of the API endpoint to access a specific node.
- privateEndpoint StringIp Address 
- The private IP address of the API endpoint to access a specific node.
- redisCluster StringId 
- The OCID of the cluster.
- Number
- The shard number to which the node belongs to.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.