1. Registry
  2. Packages
  3. Scaleway
  4. API Docs
  5. databases
  6. getNodeTypes
Viewing docs for Scaleway v1.60.0
published on Saturday, Oct 24, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.60.0
published on Saturday, Oct 24, 2026 by pulumiverse

    Gets information about available RDB node types.

    For further information refer to the Managed Databases for PostgreSQL and MySQL API documentation

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const all = scaleway.databases.getNodeTypes({
        region: "fr-par",
        includeDisabledTypes: false,
    });
    const selectedNodeType = all.then(all => all.nodeTypes?.[0]?.name);
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    all = scaleway.databases.get_node_types(region="fr-par",
        include_disabled_types=False)
    selected_node_type = all.node_types[0].name
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/databases"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := databases.GetNodeTypes(ctx, &databases.GetNodeTypesArgs{
    			Region:               pulumi.StringRef("fr-par"),
    			IncludeDisabledTypes: pulumi.BoolRef(false),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_ := all.NodeTypes[0].Name
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Scaleway.Databases.GetNodeTypes.Invoke(new()
        {
            Region = "fr-par",
            IncludeDisabledTypes = false,
        });
    
        var selectedNodeType = all.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.databases.DatabasesFunctions;
    import com.pulumi.scaleway.databases.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 all = DatabasesFunctions.getNodeTypes(GetNodeTypesArgs.builder()
                .region("fr-par")
                .includeDisabledTypes(false)
                .build());
    
            final var selectedNodeType = all.nodeTypes()[0].name();
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: scaleway:databases:getNodeTypes
          arguments:
            region: fr-par
            includeDisabledTypes: false
      selectedNodeType: ${all.nodeTypes[0].name}
    
    pulumi {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_databases_getnodetypes" "all" {
      region                 = "fr-par"
      include_disabled_types = false
    }
    
    locals {
      selectedNodeType = data.scaleway_databases_getnodetypes.all.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,
                       region: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetNodeTypesResult
    def get_node_types_output(include_disabled_types: pulumi.Input[Optional[bool]] = None,
                       region: 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:databases/getNodeTypes:getNodeTypes
      arguments:
        # arguments dictionary
    data "scaleway_databases_get_node_types" "name" {
        # arguments
    }

    The following arguments are supported:

    IncludeDisabledTypes bool
    Whether to include disabled node types in the list. Defaults to false.
    Region string
    region) The region in which to list node types.
    IncludeDisabledTypes bool
    Whether to include disabled node types in the list. Defaults to false.
    Region string
    region) The region in which to list node types.
    include_disabled_types bool
    Whether to include disabled node types in the list. Defaults to false.
    region string
    region) The region in which to list node types.
    includeDisabledTypes Boolean
    Whether to include disabled node types in the list. Defaults to false.
    region String
    region) The region in which to list node types.
    includeDisabledTypes boolean
    Whether to include disabled node types in the list. Defaults to false.
    region string
    region) The region in which to list node types.
    include_disabled_types bool
    Whether to include disabled node types in the list. Defaults to false.
    region str
    region) The region in which to list node types.
    includeDisabledTypes Boolean
    Whether to include disabled node types in the list. Defaults to false.
    region String
    region) The region 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.Databases.Outputs.GetNodeTypesNodeType>
    List of available RDB node types.
    Region string
    IncludeDisabledTypes bool
    Id string
    The provider-assigned unique ID for this managed resource.
    NodeTypes []GetNodeTypesNodeType
    List of available RDB node types.
    Region string
    IncludeDisabledTypes bool
    id string
    The provider-assigned unique ID for this managed resource.
    node_types list(object)
    List of available RDB node types.
    region string
    include_disabled_types bool
    id String
    The provider-assigned unique ID for this managed resource.
    nodeTypes List<GetNodeTypesNodeType>
    List of available RDB node types.
    region String
    includeDisabledTypes Boolean
    id string
    The provider-assigned unique ID for this managed resource.
    nodeTypes GetNodeTypesNodeType[]
    List of available RDB node types.
    region string
    includeDisabledTypes boolean
    id str
    The provider-assigned unique ID for this managed resource.
    node_types Sequence[GetNodeTypesNodeType]
    List of available RDB node types.
    region str
    include_disabled_types bool
    id String
    The provider-assigned unique ID for this managed resource.
    nodeTypes List<Property Map>
    List of available RDB node types.
    region String
    includeDisabledTypes Boolean

    Supporting Types

    GetNodeTypesNodeType

    AvailableVolumeTypes List<Pulumiverse.Scaleway.Databases.Inputs.GetNodeTypesNodeTypeAvailableVolumeType>
    Available storage options for the node type.
    Beta bool
    Whether the node type is currently in beta.
    Description string
    Description of the volume type.
    Disabled bool
    Whether the node type is currently disabled.
    Generation string
    Generation associated with the node type offer.
    InstanceRange string
    Instance range associated with the node type offer.
    IsHaRequired bool
    Whether the node type can only be used with high availability.
    MemorySizeInGb int
    Amount of memory available in GB.
    Name string
    Name identifier of the node type.
    StockStatus string
    Current stock status for the node type.
    Vcpus int
    Number of virtual CPUs.
    AvailableVolumeTypes []GetNodeTypesNodeTypeAvailableVolumeType
    Available storage options for the node type.
    Beta bool
    Whether the node type is currently in beta.
    Description string
    Description of the volume type.
    Disabled bool
    Whether the node type is currently disabled.
    Generation string
    Generation associated with the node type offer.
    InstanceRange string
    Instance range associated with the node type offer.
    IsHaRequired bool
    Whether the node type can only be used with high availability.
    MemorySizeInGb int
    Amount of memory available in GB.
    Name string
    Name identifier of the node type.
    StockStatus string
    Current stock status for the node type.
    Vcpus int
    Number of virtual CPUs.
    available_volume_types list(object)
    Available storage options for the node type.
    beta bool
    Whether the node type is currently in beta.
    description string
    Description of the volume type.
    disabled bool
    Whether the node type is currently disabled.
    generation string
    Generation associated with the node type offer.
    instance_range string
    Instance range associated with the node type offer.
    is_ha_required bool
    Whether the node type can only be used with high availability.
    memory_size_in_gb number
    Amount of memory available in GB.
    name string
    Name identifier of the node type.
    stock_status string
    Current stock status for the node type.
    vcpus number
    Number of virtual CPUs.
    availableVolumeTypes List<GetNodeTypesNodeTypeAvailableVolumeType>
    Available storage options for the node type.
    beta Boolean
    Whether the node type is currently in beta.
    description String
    Description of the volume type.
    disabled Boolean
    Whether the node type is currently disabled.
    generation String
    Generation associated with the node type offer.
    instanceRange String
    Instance range associated with the node type offer.
    isHaRequired Boolean
    Whether the node type can only be used with high availability.
    memorySizeInGb Integer
    Amount of memory available in GB.
    name String
    Name identifier of the node type.
    stockStatus String
    Current stock status for the node type.
    vcpus Integer
    Number of virtual CPUs.
    availableVolumeTypes GetNodeTypesNodeTypeAvailableVolumeType[]
    Available storage options for the node type.
    beta boolean
    Whether the node type is currently in beta.
    description string
    Description of the volume type.
    disabled boolean
    Whether the node type is currently disabled.
    generation string
    Generation associated with the node type offer.
    instanceRange string
    Instance range associated with the node type offer.
    isHaRequired boolean
    Whether the node type can only be used with high availability.
    memorySizeInGb number
    Amount of memory available in GB.
    name string
    Name identifier of the node type.
    stockStatus string
    Current stock status for the node type.
    vcpus number
    Number of virtual CPUs.
    available_volume_types Sequence[GetNodeTypesNodeTypeAvailableVolumeType]
    Available storage options for the node type.
    beta bool
    Whether the node type is currently in beta.
    description str
    Description of the volume type.
    disabled bool
    Whether the node type is currently disabled.
    generation str
    Generation associated with the node type offer.
    instance_range str
    Instance range associated with the node type offer.
    is_ha_required bool
    Whether the node type can only be used with high availability.
    memory_size_in_gb int
    Amount of memory available in GB.
    name str
    Name identifier of the node type.
    stock_status str
    Current stock status for the node type.
    vcpus int
    Number of virtual CPUs.
    availableVolumeTypes List<Property Map>
    Available storage options for the node type.
    beta Boolean
    Whether the node type is currently in beta.
    description String
    Description of the volume type.
    disabled Boolean
    Whether the node type is currently disabled.
    generation String
    Generation associated with the node type offer.
    instanceRange String
    Instance range associated with the node type offer.
    isHaRequired Boolean
    Whether the node type can only be used with high availability.
    memorySizeInGb Number
    Amount of memory available in GB.
    name String
    Name identifier of the node type.
    stockStatus String
    Current stock status for the node type.
    vcpus Number
    Number of virtual CPUs.

    GetNodeTypesNodeTypeAvailableVolumeType

    ChunkSizeInGb int
    Minimum increment level for a Block Storage volume size in GB.
    Class string
    Storage class of the volume.
    Description string
    Description of the volume type.
    MaxSizeInGb int
    Maximum volume size in GB.
    MinSizeInGb int
    Minimum volume size in GB.
    Type string
    Volume type.
    ChunkSizeInGb int
    Minimum increment level for a Block Storage volume size in GB.
    Class string
    Storage class of the volume.
    Description string
    Description of the volume type.
    MaxSizeInGb int
    Maximum volume size in GB.
    MinSizeInGb int
    Minimum volume size in GB.
    Type string
    Volume type.
    chunk_size_in_gb number
    Minimum increment level for a Block Storage volume size in GB.
    class string
    Storage class of the volume.
    description string
    Description of the volume type.
    max_size_in_gb number
    Maximum volume size in GB.
    min_size_in_gb number
    Minimum volume size in GB.
    type string
    Volume type.
    chunkSizeInGb Integer
    Minimum increment level for a Block Storage volume size in GB.
    class_ String
    Storage class of the volume.
    description String
    Description of the volume type.
    maxSizeInGb Integer
    Maximum volume size in GB.
    minSizeInGb Integer
    Minimum volume size in GB.
    type String
    Volume type.
    chunkSizeInGb number
    Minimum increment level for a Block Storage volume size in GB.
    class string
    Storage class of the volume.
    description string
    Description of the volume type.
    maxSizeInGb number
    Maximum volume size in GB.
    minSizeInGb number
    Minimum volume size in GB.
    type string
    Volume type.
    chunk_size_in_gb int
    Minimum increment level for a Block Storage volume size in GB.
    class_ str
    Storage class of the volume.
    description str
    Description of the volume type.
    max_size_in_gb int
    Maximum volume size in GB.
    min_size_in_gb int
    Minimum volume size in GB.
    type str
    Volume type.
    chunkSizeInGb Number
    Minimum increment level for a Block Storage volume size in GB.
    class String
    Storage class of the volume.
    description String
    Description of the volume type.
    maxSizeInGb Number
    Maximum volume size in GB.
    minSizeInGb Number
    Minimum volume size in GB.
    type String
    Volume type.

    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.60.0
    published on Saturday, Oct 24, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial