Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_redis.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[_redis.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Redis/getRedisClusterNodes:getRedisClusterNodes
arguments:
# arguments dictionary
The following arguments are supported:
- Redis
Cluster stringId - The OCID of the cluster.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Redis Cluster Nodes Filter>
- Redis
Cluster stringId - The OCID of the cluster.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Redis Cluster Nodes Filter
- redis
Cluster StringId - The OCID of the cluster.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Cluster Nodes Filter>
- redis
Cluster stringId - The OCID of the cluster.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Redis 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[redis.
Get Redis Cluster Nodes Filter]
- redis
Cluster StringId - The OCID of the cluster.
- display
Name 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.
- Redis
Cluster stringId - The OCID of the cluster
- Redis
Node List<GetCollections Redis Cluster Nodes Redis Node Collection> - The list of redis_node_collection.
- Display
Name string - A user-friendly name of a cluster node.
- Filters
List<Get
Redis Cluster Nodes Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Redis
Cluster stringId - The OCID of the cluster
- Redis
Node []GetCollections Redis Cluster Nodes Redis Node Collection - The list of redis_node_collection.
- Display
Name string - A user-friendly name of a cluster node.
- Filters
[]Get
Redis Cluster Nodes Filter
- id String
- The provider-assigned unique ID for this managed resource.
- redis
Cluster StringId - The OCID of the cluster
- redis
Node List<GetCollections Cluster Nodes Node Collection> - The list of redis_node_collection.
- display
Name String - A user-friendly name of a cluster node.
- filters
List<Get
Cluster Nodes Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- redis
Cluster stringId - The OCID of the cluster
- redis
Node GetCollections Redis Cluster Nodes Redis Node Collection[] - The list of redis_node_collection.
- display
Name string - A user-friendly name of a cluster node.
- filters
Get
Redis 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[redis.collections Get 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[redis.
Get Redis Cluster Nodes Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- redis
Cluster StringId - The OCID of the cluster
- redis
Node List<Property Map>Collections - The list of redis_node_collection.
- display
Name String - A user-friendly name of a cluster node.
- filters List<Property Map>
Supporting Types
GetRedisClusterNodesFilter
GetRedisClusterNodesRedisNodeCollection
- Items
List<Get
Redis Cluster Nodes Redis Node Collection Item> - The list of nodes in a cluster.
- Items
[]Get
Redis Cluster Nodes Redis Node Collection Item - The list of nodes in a cluster.
- items
List<Get
Cluster Nodes Node Collection Item> - The list of nodes in a cluster.
- items
Get
Redis Cluster Nodes Redis Node Collection Item[] - The list of nodes in a cluster.
- items
Sequence[redis.
Get Redis 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
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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.
- Redis
Cluster stringId - The OCID of the cluster.
- int
- The shard number to which the node belongs to.
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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.
- Redis
Cluster stringId - The OCID of the cluster.
- int
- The shard number to which the node belongs to.
- display
Name String - A filter to return only resources that match the entire display name given.
- 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.
- redis
Cluster StringId - The OCID of the cluster.
- Integer
- The shard number to which the node belongs to.
- display
Name string - A filter to return only resources that match the entire display name given.
- 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.
- redis
Cluster 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.
- display
Name String - A filter to return only resources that match the entire display name given.
- 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.
- redis
Cluster 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
oci
Terraform Provider.