1. Packages
  2. Scaleway
  3. API Docs
  4. instance
  5. getServerType
Scaleway v1.35.0 published on Tuesday, Oct 21, 2025 by pulumiverse

scaleway.instance.getServerType

Get Started
scaleway logo
Scaleway v1.35.0 published on Tuesday, Oct 21, 2025 by pulumiverse

    Gets information about a server type.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const pro2_s = scaleway.instance.getServerType({
        name: "PRO2-S",
        zone: "nl-ams-1",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    pro2_s = scaleway.instance.get_server_type(name="PRO2-S",
        zone="nl-ams-1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/instance"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := instance.GetServerType(ctx, &instance.GetServerTypeArgs{
    			Name: "PRO2-S",
    			Zone: pulumi.StringRef("nl-ams-1"),
    		}, 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 pro2_s = Scaleway.Instance.GetServerType.Invoke(new()
        {
            Name = "PRO2-S",
            Zone = "nl-ams-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.instance.InstanceFunctions;
    import com.pulumi.scaleway.instance.inputs.GetServerTypeArgs;
    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 pro2-s = InstanceFunctions.getServerType(GetServerTypeArgs.builder()
                .name("PRO2-S")
                .zone("nl-ams-1")
                .build());
    
        }
    }
    
    variables:
      pro2-s:
        fn::invoke:
          function: scaleway:instance:getServerType
          arguments:
            name: PRO2-S
            zone: nl-ams-1
    

    Using getServerType

    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 getServerType(args: GetServerTypeArgs, opts?: InvokeOptions): Promise<GetServerTypeResult>
    function getServerTypeOutput(args: GetServerTypeOutputArgs, opts?: InvokeOptions): Output<GetServerTypeResult>
    def get_server_type(name: Optional[str] = None,
                        zone: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetServerTypeResult
    def get_server_type_output(name: Optional[pulumi.Input[str]] = None,
                        zone: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetServerTypeResult]
    func GetServerType(ctx *Context, args *GetServerTypeArgs, opts ...InvokeOption) (*GetServerTypeResult, error)
    func GetServerTypeOutput(ctx *Context, args *GetServerTypeOutputArgs, opts ...InvokeOption) GetServerTypeResultOutput

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

    public static class GetServerType 
    {
        public static Task<GetServerTypeResult> InvokeAsync(GetServerTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetServerTypeResult> Invoke(GetServerTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServerTypeResult> getServerType(GetServerTypeArgs args, InvokeOptions options)
    public static Output<GetServerTypeResult> getServerType(GetServerTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:instance/getServerType:getServerType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the server type. Only one of name and snapshot_id should be specified.
    Zone string
    zone) The zone of the server type (to check the availability of the server type for example).
    Name string
    The name of the server type. Only one of name and snapshot_id should be specified.
    Zone string
    zone) The zone of the server type (to check the availability of the server type for example).
    name String
    The name of the server type. Only one of name and snapshot_id should be specified.
    zone String
    zone) The zone of the server type (to check the availability of the server type for example).
    name string
    The name of the server type. Only one of name and snapshot_id should be specified.
    zone string
    zone) The zone of the server type (to check the availability of the server type for example).
    name str
    The name of the server type. Only one of name and snapshot_id should be specified.
    zone str
    zone) The zone of the server type (to check the availability of the server type for example).
    name String
    The name of the server type. Only one of name and snapshot_id should be specified.
    zone String
    zone) The zone of the server type (to check the availability of the server type for example).

    getServerType Result

    The following output properties are available:

    Arch string
    The architecture of the server type.
    Availability string
    Whether the server type is available in the zone.
    Capabilities List<Pulumiverse.Scaleway.Instance.Outputs.GetServerTypeCapability>
    The specific capabilities of the server type.
    Cpu int
    The number of CPU cores of the server type.
    EndOfService bool
    Whether the server type will soon reach End Of Service.
    Gpu int
    The number of GPUs of the server type.
    HourlyPrice double
    The hourly price of the server type (in euros).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Networks List<Pulumiverse.Scaleway.Instance.Outputs.GetServerTypeNetwork>
    The network specifications of the server type.
    Ram int
    The amount of RAM of the server type (in bytes).
    Volumes List<Pulumiverse.Scaleway.Instance.Outputs.GetServerTypeVolume>
    The specifications of volumes allowed for the server type.
    Zone string
    Arch string
    The architecture of the server type.
    Availability string
    Whether the server type is available in the zone.
    Capabilities []GetServerTypeCapability
    The specific capabilities of the server type.
    Cpu int
    The number of CPU cores of the server type.
    EndOfService bool
    Whether the server type will soon reach End Of Service.
    Gpu int
    The number of GPUs of the server type.
    HourlyPrice float64
    The hourly price of the server type (in euros).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Networks []GetServerTypeNetwork
    The network specifications of the server type.
    Ram int
    The amount of RAM of the server type (in bytes).
    Volumes []GetServerTypeVolume
    The specifications of volumes allowed for the server type.
    Zone string
    arch String
    The architecture of the server type.
    availability String
    Whether the server type is available in the zone.
    capabilities List<GetServerTypeCapability>
    The specific capabilities of the server type.
    cpu Integer
    The number of CPU cores of the server type.
    endOfService Boolean
    Whether the server type will soon reach End Of Service.
    gpu Integer
    The number of GPUs of the server type.
    hourlyPrice Double
    The hourly price of the server type (in euros).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    networks List<GetServerTypeNetwork>
    The network specifications of the server type.
    ram Integer
    The amount of RAM of the server type (in bytes).
    volumes List<GetServerTypeVolume>
    The specifications of volumes allowed for the server type.
    zone String
    arch string
    The architecture of the server type.
    availability string
    Whether the server type is available in the zone.
    capabilities GetServerTypeCapability[]
    The specific capabilities of the server type.
    cpu number
    The number of CPU cores of the server type.
    endOfService boolean
    Whether the server type will soon reach End Of Service.
    gpu number
    The number of GPUs of the server type.
    hourlyPrice number
    The hourly price of the server type (in euros).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    networks GetServerTypeNetwork[]
    The network specifications of the server type.
    ram number
    The amount of RAM of the server type (in bytes).
    volumes GetServerTypeVolume[]
    The specifications of volumes allowed for the server type.
    zone string
    arch str
    The architecture of the server type.
    availability str
    Whether the server type is available in the zone.
    capabilities Sequence[GetServerTypeCapability]
    The specific capabilities of the server type.
    cpu int
    The number of CPU cores of the server type.
    end_of_service bool
    Whether the server type will soon reach End Of Service.
    gpu int
    The number of GPUs of the server type.
    hourly_price float
    The hourly price of the server type (in euros).
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    networks Sequence[GetServerTypeNetwork]
    The network specifications of the server type.
    ram int
    The amount of RAM of the server type (in bytes).
    volumes Sequence[GetServerTypeVolume]
    The specifications of volumes allowed for the server type.
    zone str
    arch String
    The architecture of the server type.
    availability String
    Whether the server type is available in the zone.
    capabilities List<Property Map>
    The specific capabilities of the server type.
    cpu Number
    The number of CPU cores of the server type.
    endOfService Boolean
    Whether the server type will soon reach End Of Service.
    gpu Number
    The number of GPUs of the server type.
    hourlyPrice Number
    The hourly price of the server type (in euros).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    networks List<Property Map>
    The network specifications of the server type.
    ram Number
    The amount of RAM of the server type (in bytes).
    volumes List<Property Map>
    The specifications of volumes allowed for the server type.
    zone String

    Supporting Types

    GetServerTypeCapability

    BootTypes List<string>
    The boot types allowed for the server type.
    MaxFileSystems int
    The maximum number of file systems that can be attached on the server type.
    BootTypes []string
    The boot types allowed for the server type.
    MaxFileSystems int
    The maximum number of file systems that can be attached on the server type.
    bootTypes List<String>
    The boot types allowed for the server type.
    maxFileSystems Integer
    The maximum number of file systems that can be attached on the server type.
    bootTypes string[]
    The boot types allowed for the server type.
    maxFileSystems number
    The maximum number of file systems that can be attached on the server type.
    boot_types Sequence[str]
    The boot types allowed for the server type.
    max_file_systems int
    The maximum number of file systems that can be attached on the server type.
    bootTypes List<String>
    The boot types allowed for the server type.
    maxFileSystems Number
    The maximum number of file systems that can be attached on the server type.

    GetServerTypeNetwork

    BlockBandwidth int
    The block bandwidth of the server type (in bytes/second).
    InternalBandwidth int
    The internal bandwidth of the server type (in bytes/second).
    PublicBandwidth int
    The public bandwidth of the server type (in bytes/second).
    BlockBandwidth int
    The block bandwidth of the server type (in bytes/second).
    InternalBandwidth int
    The internal bandwidth of the server type (in bytes/second).
    PublicBandwidth int
    The public bandwidth of the server type (in bytes/second).
    blockBandwidth Integer
    The block bandwidth of the server type (in bytes/second).
    internalBandwidth Integer
    The internal bandwidth of the server type (in bytes/second).
    publicBandwidth Integer
    The public bandwidth of the server type (in bytes/second).
    blockBandwidth number
    The block bandwidth of the server type (in bytes/second).
    internalBandwidth number
    The internal bandwidth of the server type (in bytes/second).
    publicBandwidth number
    The public bandwidth of the server type (in bytes/second).
    block_bandwidth int
    The block bandwidth of the server type (in bytes/second).
    internal_bandwidth int
    The internal bandwidth of the server type (in bytes/second).
    public_bandwidth int
    The public bandwidth of the server type (in bytes/second).
    blockBandwidth Number
    The block bandwidth of the server type (in bytes/second).
    internalBandwidth Number
    The internal bandwidth of the server type (in bytes/second).
    publicBandwidth Number
    The public bandwidth of the server type (in bytes/second).

    GetServerTypeVolume

    BlockStorage bool
    Whether block storage is allowed on the server type.
    MaxSizePerLocalVolume int
    The maximum size in bytes per local volume allowed on the server type.
    MaxSizeTotal int
    The maximum total size in bytes of volumes allowed on the server type.
    MinSizePerLocalVolume int
    The minimum size in bytes per local volume allowed on the server type.
    MinSizeTotal int
    The minimum total size in bytes of volumes allowed on the server type.
    ScratchStorageMaxSize int
    The maximum size in bytes of the scratch volume allowed on the server type.
    BlockStorage bool
    Whether block storage is allowed on the server type.
    MaxSizePerLocalVolume int
    The maximum size in bytes per local volume allowed on the server type.
    MaxSizeTotal int
    The maximum total size in bytes of volumes allowed on the server type.
    MinSizePerLocalVolume int
    The minimum size in bytes per local volume allowed on the server type.
    MinSizeTotal int
    The minimum total size in bytes of volumes allowed on the server type.
    ScratchStorageMaxSize int
    The maximum size in bytes of the scratch volume allowed on the server type.
    blockStorage Boolean
    Whether block storage is allowed on the server type.
    maxSizePerLocalVolume Integer
    The maximum size in bytes per local volume allowed on the server type.
    maxSizeTotal Integer
    The maximum total size in bytes of volumes allowed on the server type.
    minSizePerLocalVolume Integer
    The minimum size in bytes per local volume allowed on the server type.
    minSizeTotal Integer
    The minimum total size in bytes of volumes allowed on the server type.
    scratchStorageMaxSize Integer
    The maximum size in bytes of the scratch volume allowed on the server type.
    blockStorage boolean
    Whether block storage is allowed on the server type.
    maxSizePerLocalVolume number
    The maximum size in bytes per local volume allowed on the server type.
    maxSizeTotal number
    The maximum total size in bytes of volumes allowed on the server type.
    minSizePerLocalVolume number
    The minimum size in bytes per local volume allowed on the server type.
    minSizeTotal number
    The minimum total size in bytes of volumes allowed on the server type.
    scratchStorageMaxSize number
    The maximum size in bytes of the scratch volume allowed on the server type.
    block_storage bool
    Whether block storage is allowed on the server type.
    max_size_per_local_volume int
    The maximum size in bytes per local volume allowed on the server type.
    max_size_total int
    The maximum total size in bytes of volumes allowed on the server type.
    min_size_per_local_volume int
    The minimum size in bytes per local volume allowed on the server type.
    min_size_total int
    The minimum total size in bytes of volumes allowed on the server type.
    scratch_storage_max_size int
    The maximum size in bytes of the scratch volume allowed on the server type.
    blockStorage Boolean
    Whether block storage is allowed on the server type.
    maxSizePerLocalVolume Number
    The maximum size in bytes per local volume allowed on the server type.
    maxSizeTotal Number
    The maximum total size in bytes of volumes allowed on the server type.
    minSizePerLocalVolume Number
    The minimum size in bytes per local volume allowed on the server type.
    minSizeTotal Number
    The minimum total size in bytes of volumes allowed on the server type.
    scratchStorageMaxSize Number
    The maximum size in bytes of the scratch volume allowed on the server 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
    Scaleway v1.35.0 published on Tuesday, Oct 21, 2025 by pulumiverse
      Meet Neo: Your AI Platform Teammate