1. Registry
  2. Packages
  3. Scaleway
  4. API Docs
  5. redis
  6. getNodeTypes
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse

    Gets information about available Redis™ node types.

    For further information refer to the Managed Database for Redis™ API documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const available = scaleway.redis.getNodeTypes({
        zone: "fr-par-1",
        includeDisabledTypes: false,
    });
    const selectedNodeType = available.then(available => available.nodeTypes?.[0]?.name);
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    available = scaleway.redis.get_node_types(zone="fr-par-1",
        include_disabled_types=False)
    selected_node_type = available.node_types[0].name
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/redis"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		available, err := redis.GetNodeTypes(ctx, &redis.GetNodeTypesArgs{
    			Zone:                 pulumi.StringRef("fr-par-1"),
    			IncludeDisabledTypes: pulumi.BoolRef(false),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_ := available.NodeTypes[0].Name
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var available = Scaleway.Redis.GetNodeTypes.Invoke(new()
        {
            Zone = "fr-par-1",
            IncludeDisabledTypes = false,
        });
    
        var selectedNodeType = available.Apply(getNodeTypesResult => getNodeTypesResult.NodeTypes[0]?.Name);
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.redis.RedisFunctions;
    import com.pulumi.scaleway.redis.inputs.GetNodeTypesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 available = RedisFunctions.getNodeTypes(GetNodeTypesArgs.builder()
                .zone("fr-par-1")
                .includeDisabledTypes(false)
                .build());
    
            final var selectedNodeType = available.nodeTypes()[0].name();
    
        }
    }
    
    variables:
      available:
        fn::invoke:
          function: scaleway:redis:getNodeTypes
          arguments:
            zone: fr-par-1
            includeDisabledTypes: false
      selectedNodeType: ${available.nodeTypes[0].name}
    
    terraform {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_redis_node_types" "available" {
      zone                   = "fr-par-1"
      include_disabled_types = false
    }
    
    locals {
      selectedNodeType = data.scaleway_redis_node_types.available.node_types[0].name
    }
    

    Using getNodeTypes

    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 getNodeTypes(args: GetNodeTypesArgs, opts?: InvokeOptions): Promise<GetNodeTypesResult>
    function getNodeTypesOutput(args: GetNodeTypesOutputArgs, opts?: InvokeOutputOptions): Output<GetNodeTypesResult>
    def get_node_types(include_disabled_types: Optional[bool] = None,
                       zone: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetNodeTypesResult
    def get_node_types_output(include_disabled_types: pulumi.Input[Optional[bool]] = None,
                       zone: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetNodeTypesResult]
    func GetNodeTypes(ctx *Context, args *GetNodeTypesArgs, opts ...InvokeOption) (*GetNodeTypesResult, error)
    func GetNodeTypesOutput(ctx *Context, args *GetNodeTypesOutputArgs, opts ...InvokeOption) GetNodeTypesResultOutput

    > Note: This function is named GetNodeTypes in the Go SDK.

    public static class GetNodeTypes 
    {
        public static Task<GetNodeTypesResult> InvokeAsync(GetNodeTypesArgs args, InvokeOptions? opts = null)
        public static Output<GetNodeTypesResult> Invoke(GetNodeTypesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetNodeTypesResult> Invoke(GetNodeTypesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetNodeTypesResult> getNodeTypes(GetNodeTypesArgs args, InvokeOptions options)
    public static Output<GetNodeTypesResult> getNodeTypes(GetNodeTypesArgs args, InvokeOptions options)
    public static Output<GetNodeTypesResult> getNodeTypes(GetNodeTypesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: scaleway:redis/getNodeTypes:getNodeTypes
      arguments:
        # arguments dictionary
    data "scaleway_redis_get_node_types" "name" {
        # arguments
    }

    The following arguments are supported:

    IncludeDisabledTypes bool
    Whether to include disabled node types in the list. Defaults to false.
    Zone string
    zone) The zone in which to list node types.
    IncludeDisabledTypes bool
    Whether to include disabled node types in the list. Defaults to false.
    Zone string
    zone) The zone in which to list node types.
    include_disabled_types bool
    Whether to include disabled node types in the list. Defaults to false.
    zone string
    zone) The zone in which to list node types.
    includeDisabledTypes Boolean
    Whether to include disabled node types in the list. Defaults to false.
    zone String
    zone) The zone in which to list node types.
    includeDisabledTypes boolean
    Whether to include disabled node types in the list. Defaults to false.
    zone string
    zone) The zone in which to list node types.
    include_disabled_types bool
    Whether to include disabled node types in the list. Defaults to false.
    zone str
    zone) The zone in which to list node types.
    includeDisabledTypes Boolean
    Whether to include disabled node types in the list. Defaults to false.
    zone String
    zone) The zone in which to list node types.

    getNodeTypes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NodeTypes List<Pulumiverse.Scaleway.Redis.Outputs.GetNodeTypesNodeType>
    List of available Redis™ node types.
    Zone string
    IncludeDisabledTypes bool
    Id string
    The provider-assigned unique ID for this managed resource.
    NodeTypes []GetNodeTypesNodeType
    List of available Redis™ node types.
    Zone string
    IncludeDisabledTypes bool
    id string
    The provider-assigned unique ID for this managed resource.
    node_types list(object)
    List of available Redis™ node types.
    zone string
    include_disabled_types bool
    id String
    The provider-assigned unique ID for this managed resource.
    nodeTypes List<GetNodeTypesNodeType>
    List of available Redis™ node types.
    zone String
    includeDisabledTypes Boolean
    id string
    The provider-assigned unique ID for this managed resource.
    nodeTypes GetNodeTypesNodeType[]
    List of available Redis™ node types.
    zone string
    includeDisabledTypes boolean
    id str
    The provider-assigned unique ID for this managed resource.
    node_types Sequence[GetNodeTypesNodeType]
    List of available Redis™ node types.
    zone str
    include_disabled_types bool
    id String
    The provider-assigned unique ID for this managed resource.
    nodeTypes List<Property Map>
    List of available Redis™ node types.
    zone String
    includeDisabledTypes Boolean

    Supporting Types

    GetNodeTypesNodeType

    Beta bool
    Whether the node type is currently in beta.
    Description string
    Current specifications of the offer.
    Disabled bool
    Whether the node type is currently disabled.
    MemorySizeInGb int
    Amount of memory available in GB.
    Name string
    Name of the node type.
    StockStatus string
    Current stock status of the node type.
    Vcpus int
    Number of virtual CPUs.
    Beta bool
    Whether the node type is currently in beta.
    Description string
    Current specifications of the offer.
    Disabled bool
    Whether the node type is currently disabled.
    MemorySizeInGb int
    Amount of memory available in GB.
    Name string
    Name of the node type.
    StockStatus string
    Current stock status of the node type.
    Vcpus int
    Number of virtual CPUs.
    beta bool
    Whether the node type is currently in beta.
    description string
    Current specifications of the offer.
    disabled bool
    Whether the node type is currently disabled.
    memory_size_in_gb number
    Amount of memory available in GB.
    name string
    Name of the node type.
    stock_status string
    Current stock status of the node type.
    vcpus number
    Number of virtual CPUs.
    beta Boolean
    Whether the node type is currently in beta.
    description String
    Current specifications of the offer.
    disabled Boolean
    Whether the node type is currently disabled.
    memorySizeInGb Integer
    Amount of memory available in GB.
    name String
    Name of the node type.
    stockStatus String
    Current stock status of the node type.
    vcpus Integer
    Number of virtual CPUs.
    beta boolean
    Whether the node type is currently in beta.
    description string
    Current specifications of the offer.
    disabled boolean
    Whether the node type is currently disabled.
    memorySizeInGb number
    Amount of memory available in GB.
    name string
    Name of the node type.
    stockStatus string
    Current stock status of the node type.
    vcpus number
    Number of virtual CPUs.
    beta bool
    Whether the node type is currently in beta.
    description str
    Current specifications of the offer.
    disabled bool
    Whether the node type is currently disabled.
    memory_size_in_gb int
    Amount of memory available in GB.
    name str
    Name of the node type.
    stock_status str
    Current stock status of the node type.
    vcpus int
    Number of virtual CPUs.
    beta Boolean
    Whether the node type is currently in beta.
    description String
    Current specifications of the offer.
    disabled Boolean
    Whether the node type is currently disabled.
    memorySizeInGb Number
    Amount of memory available in GB.
    name String
    Name of the node type.
    stockStatus String
    Current stock status of the node type.
    vcpus Number
    Number of virtual CPUs.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.62.1
    published on Friday, Nov 13, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial