Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getRedisCluster
Explore with Pulumi AI
Gets information about a Redis cluster. For further information check our api documentation
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myCluster = scaleway.getRedisCluster({
    clusterId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
my_cluster = scaleway.get_redis_cluster(cluster_id="11111111-1111-1111-1111-111111111111")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.LookupRedisCluster(ctx, &scaleway.LookupRedisClusterArgs{
			ClusterId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() => 
{
    var myCluster = Scaleway.GetRedisCluster.Invoke(new()
    {
        ClusterId = "11111111-1111-1111-1111-111111111111",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.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 myCluster = ScalewayFunctions.getRedisCluster(GetRedisClusterArgs.builder()
            .clusterId("11111111-1111-1111-1111-111111111111")
            .build());
    }
}
variables:
  myCluster:
    fn::invoke:
      Function: scaleway:getRedisCluster
      Arguments:
        clusterId: 11111111-1111-1111-1111-111111111111
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(cluster_id: Optional[str] = None,
                      name: Optional[str] = None,
                      project_id: Optional[str] = None,
                      zone: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetRedisClusterResult
def get_redis_cluster_output(cluster_id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      project_id: Optional[pulumi.Input[str]] = None,
                      zone: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetRedisClusterResult]func LookupRedisCluster(ctx *Context, args *LookupRedisClusterArgs, opts ...InvokeOption) (*LookupRedisClusterResult, error)
func LookupRedisClusterOutput(ctx *Context, args *LookupRedisClusterOutputArgs, opts ...InvokeOption) LookupRedisClusterResultOutput> Note: This function is named LookupRedisCluster 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: scaleway:index/getRedisCluster:getRedisCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Cluster
Id string - The Redis cluster ID.
Only one of the 
nameandcluster_idshould be specified. - Name string
 - The name of the Redis cluster.
Only one of the 
nameandcluster_idshould be specified. - Project
Id string - The ID of the project the Redis cluster is associated with.
 - Zone string
 region) The zone in which the server exists.
- Cluster
Id string - The Redis cluster ID.
Only one of the 
nameandcluster_idshould be specified. - Name string
 - The name of the Redis cluster.
Only one of the 
nameandcluster_idshould be specified. - Project
Id string - The ID of the project the Redis cluster is associated with.
 - Zone string
 region) The zone in which the server exists.
- cluster
Id String - The Redis cluster ID.
Only one of the 
nameandcluster_idshould be specified. - name String
 - The name of the Redis cluster.
Only one of the 
nameandcluster_idshould be specified. - project
Id String - The ID of the project the Redis cluster is associated with.
 - zone String
 region) The zone in which the server exists.
- cluster
Id string - The Redis cluster ID.
Only one of the 
nameandcluster_idshould be specified. - name string
 - The name of the Redis cluster.
Only one of the 
nameandcluster_idshould be specified. - project
Id string - The ID of the project the Redis cluster is associated with.
 - zone string
 region) The zone in which the server exists.
- cluster_
id str - The Redis cluster ID.
Only one of the 
nameandcluster_idshould be specified. - name str
 - The name of the Redis cluster.
Only one of the 
nameandcluster_idshould be specified. - project_
id str - The ID of the project the Redis cluster is associated with.
 - zone str
 region) The zone in which the server exists.
- cluster
Id String - The Redis cluster ID.
Only one of the 
nameandcluster_idshould be specified. - name String
 - The name of the Redis cluster.
Only one of the 
nameandcluster_idshould be specified. - project
Id String - The ID of the project the Redis cluster is associated with.
 - zone String
 region) The zone in which the server exists.
getRedisCluster Result
The following output properties are available:
- Acls
List<Pulumiverse.
Scaleway. Outputs. Get Redis Cluster Acl>  - Certificate string
 - Cluster
Size int - Created
At string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Node
Type string - Password string
 - Private
Networks List<Pulumiverse.Scaleway. Outputs. Get Redis Cluster Private Network>  - Public
Networks List<Pulumiverse.Scaleway. Outputs. Get Redis Cluster Public Network>  - Settings Dictionary<string, string>
 - List<string>
 - Tls
Enabled bool - Updated
At string - User
Name string - Version string
 - Cluster
Id string - Name string
 - Project
Id string - Zone string
 
- Acls
[]Get
Redis Cluster Acl  - Certificate string
 - Cluster
Size int - Created
At string - Id string
 - The provider-assigned unique ID for this managed resource.
 - Node
Type string - Password string
 - Private
Networks []GetRedis Cluster Private Network  - Public
Networks []GetRedis Cluster Public Network  - Settings map[string]string
 - []string
 - Tls
Enabled bool - Updated
At string - User
Name string - Version string
 - Cluster
Id string - Name string
 - Project
Id string - Zone string
 
- acls
List<Get
Redis Cluster Acl>  - certificate String
 - cluster
Size Integer - created
At String - id String
 - The provider-assigned unique ID for this managed resource.
 - node
Type String - password String
 - private
Networks List<GetRedis Cluster Private Network>  - public
Networks List<GetRedis Cluster Public Network>  - settings Map<String,String>
 - List<String>
 - tls
Enabled Boolean - updated
At String - user
Name String - version String
 - cluster
Id String - name String
 - project
Id String - zone String
 
- acls
Get
Redis Cluster Acl[]  - certificate string
 - cluster
Size number - created
At string - id string
 - The provider-assigned unique ID for this managed resource.
 - node
Type string - password string
 - private
Networks GetRedis Cluster Private Network[]  - public
Networks GetRedis Cluster Public Network[]  - settings {[key: string]: string}
 - string[]
 - tls
Enabled boolean - updated
At string - user
Name string - version string
 - cluster
Id string - name string
 - project
Id string - zone string
 
- acls
Sequence[Get
Redis Cluster Acl]  - certificate str
 - cluster_
size int - created_
at str - id str
 - The provider-assigned unique ID for this managed resource.
 - node_
type str - password str
 - private_
networks Sequence[GetRedis Cluster Private Network]  - public_
networks Sequence[GetRedis Cluster Public Network]  - settings Mapping[str, str]
 - Sequence[str]
 - tls_
enabled bool - updated_
at str - user_
name str - version str
 - cluster_
id str - name str
 - project_
id str - zone str
 
- acls List<Property Map>
 - certificate String
 - cluster
Size Number - created
At String - id String
 - The provider-assigned unique ID for this managed resource.
 - node
Type String - password String
 - private
Networks List<Property Map> - public
Networks List<Property Map> - settings Map<String>
 - List<String>
 - tls
Enabled Boolean - updated
At String - user
Name String - version String
 - cluster
Id String - name String
 - project
Id String - zone String
 
Supporting Types
GetRedisClusterAcl   
- Description string
 - Description of the rule.
 - Id string
 - The ID of the Redis cluster.
 - Ip string
 - IPv4 network address of the rule (IP network in a CIDR format).
 
- Description string
 - Description of the rule.
 - Id string
 - The ID of the Redis cluster.
 - Ip string
 - IPv4 network address of the rule (IP network in a CIDR format).
 
- description String
 - Description of the rule.
 - id String
 - The ID of the Redis cluster.
 - ip String
 - IPv4 network address of the rule (IP network in a CIDR format).
 
- description string
 - Description of the rule.
 - id string
 - The ID of the Redis cluster.
 - ip string
 - IPv4 network address of the rule (IP network in a CIDR format).
 
- description str
 - Description of the rule.
 - id str
 - The ID of the Redis cluster.
 - ip str
 - IPv4 network address of the rule (IP network in a CIDR format).
 
- description String
 - Description of the rule.
 - id String
 - The ID of the Redis cluster.
 - ip String
 - IPv4 network address of the rule (IP network in a CIDR format).
 
GetRedisClusterPrivateNetwork    
- Endpoint
Id string - UUID of the endpoint to be connected to the cluster
 - Id string
 - The ID of the Redis cluster.
 - Service
Ips List<string> - List of IPv4 addresses of the private network with a CIDR notation
 - Zone string
 region) The zone in which the server exists.
- Endpoint
Id string - UUID of the endpoint to be connected to the cluster
 - Id string
 - The ID of the Redis cluster.
 - Service
Ips []string - List of IPv4 addresses of the private network with a CIDR notation
 - Zone string
 region) The zone in which the server exists.
- endpoint
Id String - UUID of the endpoint to be connected to the cluster
 - id String
 - The ID of the Redis cluster.
 - service
Ips List<String> - List of IPv4 addresses of the private network with a CIDR notation
 - zone String
 region) The zone in which the server exists.
- endpoint
Id string - UUID of the endpoint to be connected to the cluster
 - id string
 - The ID of the Redis cluster.
 - service
Ips string[] - List of IPv4 addresses of the private network with a CIDR notation
 - zone string
 region) The zone in which the server exists.
- endpoint_
id str - UUID of the endpoint to be connected to the cluster
 - id str
 - The ID of the Redis cluster.
 - service_
ips Sequence[str] - List of IPv4 addresses of the private network with a CIDR notation
 - zone str
 region) The zone in which the server exists.
- endpoint
Id String - UUID of the endpoint to be connected to the cluster
 - id String
 - The ID of the Redis cluster.
 - service
Ips List<String> - List of IPv4 addresses of the private network with a CIDR notation
 - zone String
 region) The zone in which the server exists.
GetRedisClusterPublicNetwork    
Package Details
- Repository
 - scaleway pulumiverse/pulumi-scaleway
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
scalewayTerraform Provider.