1. Registry
  2. Packages
  3. Linode Provider
  4. API Docs
  5. getInstanceType
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi
linode logo linode logo
Viewing docs for Linode v6.6.0
published on Tuesday, Sep 15, 2026 by Pulumi

    Provides information about a Linode instance type For more information, see the Linode APIv4 docs.

    Example Usage

    The following example shows how one might use this data source to access information about a Linode Instance type.

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const _default = linode.getInstanceType({
        id: "g6-standard-2",
    });
    
    import pulumi
    import pulumi_linode as linode
    
    default = linode.get_instance_type(id="g6-standard-2")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v6/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := linode.GetInstanceType(ctx, &linode.GetInstanceTypeArgs{
    			Id: "g6-standard-2",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Linode.GetInstanceType.Invoke(new()
        {
            Id = "g6-standard-2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.LinodeFunctions;
    import com.pulumi.linode.inputs.GetInstanceTypeArgs;
    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 default = LinodeFunctions.getInstanceType(GetInstanceTypeArgs.builder()
                .id("g6-standard-2")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: linode:getInstanceType
          arguments:
            id: g6-standard-2
    
    pulumi {
      required_providers {
        linode = {
          source = "pulumi/linode"
        }
      }
    }
    
    data "linode_getinstancetype" "default" {
      id = "g6-standard-2"
    }
    

    Using getInstanceType

    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 getInstanceType(args: GetInstanceTypeArgs, opts?: InvokeOptions): Promise<GetInstanceTypeResult>
    function getInstanceTypeOutput(args: GetInstanceTypeOutputArgs, opts?: InvokeOutputOptions): Output<GetInstanceTypeResult>
    def get_instance_type(id: Optional[str] = None,
                          label: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetInstanceTypeResult
    def get_instance_type_output(id: pulumi.Input[Optional[str]] = None,
                          label: pulumi.Input[Optional[str]] = None,
                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetInstanceTypeResult]
    func GetInstanceType(ctx *Context, args *GetInstanceTypeArgs, opts ...InvokeOption) (*GetInstanceTypeResult, error)
    func GetInstanceTypeOutput(ctx *Context, args *GetInstanceTypeOutputArgs, opts ...InvokeOption) GetInstanceTypeResultOutput

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

    public static class GetInstanceType 
    {
        public static Task<GetInstanceTypeResult> InvokeAsync(GetInstanceTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceTypeResult> Invoke(GetInstanceTypeInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceTypeResult> Invoke(GetInstanceTypeInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInstanceTypeResult> getInstanceType(GetInstanceTypeArgs args, InvokeOptions options)
    public static Output<GetInstanceTypeResult> getInstanceType(GetInstanceTypeArgs args, InvokeOptions options)
    public static Output<GetInstanceTypeResult> getInstanceType(GetInstanceTypeArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: linode:index/getInstanceType:getInstanceType
      arguments:
        # arguments dictionary
    data "linode_get_instance_type" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Label used to identify instance type
    Label string
    The Linode Type's label is for display purposes only
    Id string
    Label used to identify instance type
    Label string
    The Linode Type's label is for display purposes only
    id string
    Label used to identify instance type
    label string
    The Linode Type's label is for display purposes only
    id String
    Label used to identify instance type
    label String
    The Linode Type's label is for display purposes only
    id string
    Label used to identify instance type
    label string
    The Linode Type's label is for display purposes only
    id str
    Label used to identify instance type
    label str
    The Linode Type's label is for display purposes only
    id String
    Label used to identify instance type
    label String
    The Linode Type's label is for display purposes only

    getInstanceType Result

    The following output properties are available:

    AcceleratedDevices int
    The number of VPUs this Linode Type offers.
    Addons List<GetInstanceTypeAddon>
    (Read-Only Object List) Add-ons available for this Linode Type. Referenced with an index (e.g. addons.0.backups).
    Class string
    The class of the Linode Type. See all classes here.
    Disk int
    The Disk size, in MB, of the Linode Type
    Id string
    The ID representing the Linode Type
    Label string
    The Linode Type's label is for display purposes only
    Memory int
    The amount of RAM included in this Linode Type.
    NetworkOut int
    The Mbits outbound bandwidth allocation.
    Prices List<GetInstanceTypePrice>
    (Read-Only Object List) Pricing information for this Linode Type. Referenced with an index (e.g. price.0.hourly).
    RegionPrices List<GetInstanceTypeRegionPrice>
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    Transfer int
    The monthly outbound transfer amount, in MB.
    Vcpus int
    The number of VCPU cores this Linode Type offers.
    AcceleratedDevices int
    The number of VPUs this Linode Type offers.
    Addons []GetInstanceTypeAddon
    (Read-Only Object List) Add-ons available for this Linode Type. Referenced with an index (e.g. addons.0.backups).
    Class string
    The class of the Linode Type. See all classes here.
    Disk int
    The Disk size, in MB, of the Linode Type
    Id string
    The ID representing the Linode Type
    Label string
    The Linode Type's label is for display purposes only
    Memory int
    The amount of RAM included in this Linode Type.
    NetworkOut int
    The Mbits outbound bandwidth allocation.
    Prices []GetInstanceTypePrice
    (Read-Only Object List) Pricing information for this Linode Type. Referenced with an index (e.g. price.0.hourly).
    RegionPrices []GetInstanceTypeRegionPrice
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    Transfer int
    The monthly outbound transfer amount, in MB.
    Vcpus int
    The number of VCPU cores this Linode Type offers.
    accelerated_devices number
    The number of VPUs this Linode Type offers.
    addons list(object)
    (Read-Only Object List) Add-ons available for this Linode Type. Referenced with an index (e.g. addons.0.backups).
    class string
    The class of the Linode Type. See all classes here.
    disk number
    The Disk size, in MB, of the Linode Type
    id string
    The ID representing the Linode Type
    label string
    The Linode Type's label is for display purposes only
    memory number
    The amount of RAM included in this Linode Type.
    network_out number
    The Mbits outbound bandwidth allocation.
    prices list(object)
    (Read-Only Object List) Pricing information for this Linode Type. Referenced with an index (e.g. price.0.hourly).
    region_prices list(object)
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    transfer number
    The monthly outbound transfer amount, in MB.
    vcpus number
    The number of VCPU cores this Linode Type offers.
    acceleratedDevices Integer
    The number of VPUs this Linode Type offers.
    addons List<GetInstanceTypeAddon>
    (Read-Only Object List) Add-ons available for this Linode Type. Referenced with an index (e.g. addons.0.backups).
    class_ String
    The class of the Linode Type. See all classes here.
    disk Integer
    The Disk size, in MB, of the Linode Type
    id String
    The ID representing the Linode Type
    label String
    The Linode Type's label is for display purposes only
    memory Integer
    The amount of RAM included in this Linode Type.
    networkOut Integer
    The Mbits outbound bandwidth allocation.
    prices List<GetInstanceTypePrice>
    (Read-Only Object List) Pricing information for this Linode Type. Referenced with an index (e.g. price.0.hourly).
    regionPrices List<GetInstanceTypeRegionPrice>
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    transfer Integer
    The monthly outbound transfer amount, in MB.
    vcpus Integer
    The number of VCPU cores this Linode Type offers.
    acceleratedDevices number
    The number of VPUs this Linode Type offers.
    addons GetInstanceTypeAddon[]
    (Read-Only Object List) Add-ons available for this Linode Type. Referenced with an index (e.g. addons.0.backups).
    class string
    The class of the Linode Type. See all classes here.
    disk number
    The Disk size, in MB, of the Linode Type
    id string
    The ID representing the Linode Type
    label string
    The Linode Type's label is for display purposes only
    memory number
    The amount of RAM included in this Linode Type.
    networkOut number
    The Mbits outbound bandwidth allocation.
    prices GetInstanceTypePrice[]
    (Read-Only Object List) Pricing information for this Linode Type. Referenced with an index (e.g. price.0.hourly).
    regionPrices GetInstanceTypeRegionPrice[]
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    transfer number
    The monthly outbound transfer amount, in MB.
    vcpus number
    The number of VCPU cores this Linode Type offers.
    accelerated_devices int
    The number of VPUs this Linode Type offers.
    addons Sequence[GetInstanceTypeAddon]
    (Read-Only Object List) Add-ons available for this Linode Type. Referenced with an index (e.g. addons.0.backups).
    class_ str
    The class of the Linode Type. See all classes here.
    disk int
    The Disk size, in MB, of the Linode Type
    id str
    The ID representing the Linode Type
    label str
    The Linode Type's label is for display purposes only
    memory int
    The amount of RAM included in this Linode Type.
    network_out int
    The Mbits outbound bandwidth allocation.
    prices Sequence[GetInstanceTypePrice]
    (Read-Only Object List) Pricing information for this Linode Type. Referenced with an index (e.g. price.0.hourly).
    region_prices Sequence[GetInstanceTypeRegionPrice]
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    transfer int
    The monthly outbound transfer amount, in MB.
    vcpus int
    The number of VCPU cores this Linode Type offers.
    acceleratedDevices Number
    The number of VPUs this Linode Type offers.
    addons List<Property Map>
    (Read-Only Object List) Add-ons available for this Linode Type. Referenced with an index (e.g. addons.0.backups).
    class String
    The class of the Linode Type. See all classes here.
    disk Number
    The Disk size, in MB, of the Linode Type
    id String
    The ID representing the Linode Type
    label String
    The Linode Type's label is for display purposes only
    memory Number
    The amount of RAM included in this Linode Type.
    networkOut Number
    The Mbits outbound bandwidth allocation.
    prices List<Property Map>
    (Read-Only Object List) Pricing information for this Linode Type. Referenced with an index (e.g. price.0.hourly).
    regionPrices List<Property Map>
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    transfer Number
    The monthly outbound transfer amount, in MB.
    vcpus Number
    The number of VCPU cores this Linode Type offers.

    Supporting Types

    GetInstanceTypeAddon

    Backups List<GetInstanceTypeAddonBackup>
    (Read-Only Object List) Backups add-on pricing information. Referenced with an index (e.g. addons.0.backups.0.price).
    Backups []GetInstanceTypeAddonBackup
    (Read-Only Object List) Backups add-on pricing information. Referenced with an index (e.g. addons.0.backups.0.price).
    backups list(object)
    (Read-Only Object List) Backups add-on pricing information. Referenced with an index (e.g. addons.0.backups.0.price).
    backups List<GetInstanceTypeAddonBackup>
    (Read-Only Object List) Backups add-on pricing information. Referenced with an index (e.g. addons.0.backups.0.price).
    backups GetInstanceTypeAddonBackup[]
    (Read-Only Object List) Backups add-on pricing information. Referenced with an index (e.g. addons.0.backups.0.price).
    backups Sequence[GetInstanceTypeAddonBackup]
    (Read-Only Object List) Backups add-on pricing information. Referenced with an index (e.g. addons.0.backups.0.price).
    backups List<Property Map>
    (Read-Only Object List) Backups add-on pricing information. Referenced with an index (e.g. addons.0.backups.0.price).

    GetInstanceTypeAddonBackup

    Prices List<GetInstanceTypeAddonBackupPrice>
    (Read-Only Object List) The price to add Backups service. Referenced with an index (e.g. addons.0.backups.0.price.0.hourly).
    RegionPrices List<GetInstanceTypeAddonBackupRegionPrice>
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    Prices []GetInstanceTypeAddonBackupPrice
    (Read-Only Object List) The price to add Backups service. Referenced with an index (e.g. addons.0.backups.0.price.0.hourly).
    RegionPrices []GetInstanceTypeAddonBackupRegionPrice
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    prices list(object)
    (Read-Only Object List) The price to add Backups service. Referenced with an index (e.g. addons.0.backups.0.price.0.hourly).
    region_prices list(object)
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    prices List<GetInstanceTypeAddonBackupPrice>
    (Read-Only Object List) The price to add Backups service. Referenced with an index (e.g. addons.0.backups.0.price.0.hourly).
    regionPrices List<GetInstanceTypeAddonBackupRegionPrice>
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    prices GetInstanceTypeAddonBackupPrice[]
    (Read-Only Object List) The price to add Backups service. Referenced with an index (e.g. addons.0.backups.0.price.0.hourly).
    regionPrices GetInstanceTypeAddonBackupRegionPrice[]
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    prices Sequence[GetInstanceTypeAddonBackupPrice]
    (Read-Only Object List) The price to add Backups service. Referenced with an index (e.g. addons.0.backups.0.price.0.hourly).
    region_prices Sequence[GetInstanceTypeAddonBackupRegionPrice]
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).
    prices List<Property Map>
    (Read-Only Object List) The price to add Backups service. Referenced with an index (e.g. addons.0.backups.0.price.0.hourly).
    regionPrices List<Property Map>
    (Read-Only Object List) Region-specific pricing information for this Linode Type. Referenced with an index (e.g. region_prices.0.id).

    GetInstanceTypeAddonBackupPrice

    Hourly double
    The cost (in US dollars) per hour to add Backups service.
    Monthly double
    The cost (in US dollars) per month to add Backups service.
    Hourly float64
    The cost (in US dollars) per hour to add Backups service.
    Monthly float64
    The cost (in US dollars) per month to add Backups service.
    hourly number
    The cost (in US dollars) per hour to add Backups service.
    monthly number
    The cost (in US dollars) per month to add Backups service.
    hourly Double
    The cost (in US dollars) per hour to add Backups service.
    monthly Double
    The cost (in US dollars) per month to add Backups service.
    hourly number
    The cost (in US dollars) per hour to add Backups service.
    monthly number
    The cost (in US dollars) per month to add Backups service.
    hourly float
    The cost (in US dollars) per hour to add Backups service.
    monthly float
    The cost (in US dollars) per month to add Backups service.
    hourly Number
    The cost (in US dollars) per hour to add Backups service.
    monthly Number
    The cost (in US dollars) per month to add Backups service.

    GetInstanceTypeAddonBackupRegionPrice

    Hourly double
    Id string
    Label used to identify instance type
    Monthly double
    Hourly float64
    Id string
    Label used to identify instance type
    Monthly float64
    hourly number
    id string
    Label used to identify instance type
    monthly number
    hourly Double
    id String
    Label used to identify instance type
    monthly Double
    hourly number
    id string
    Label used to identify instance type
    monthly number
    hourly float
    id str
    Label used to identify instance type
    monthly float
    hourly Number
    id String
    Label used to identify instance type
    monthly Number

    GetInstanceTypePrice

    Hourly double
    Cost (in US dollars) per hour.
    Monthly double
    Cost (in US dollars) per month.
    Hourly float64
    Cost (in US dollars) per hour.
    Monthly float64
    Cost (in US dollars) per month.
    hourly number
    Cost (in US dollars) per hour.
    monthly number
    Cost (in US dollars) per month.
    hourly Double
    Cost (in US dollars) per hour.
    monthly Double
    Cost (in US dollars) per month.
    hourly number
    Cost (in US dollars) per hour.
    monthly number
    Cost (in US dollars) per month.
    hourly float
    Cost (in US dollars) per hour.
    monthly float
    Cost (in US dollars) per month.
    hourly Number
    Cost (in US dollars) per hour.
    monthly Number
    Cost (in US dollars) per month.

    GetInstanceTypeRegionPrice

    Hourly double
    Id string
    Label used to identify instance type
    Monthly double
    Hourly float64
    Id string
    Label used to identify instance type
    Monthly float64
    hourly number
    id string
    Label used to identify instance type
    monthly number
    hourly Double
    id String
    Label used to identify instance type
    monthly Double
    hourly number
    id string
    Label used to identify instance type
    monthly number
    hourly float
    id str
    Label used to identify instance type
    monthly float
    hourly Number
    id String
    Label used to identify instance type
    monthly Number

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo linode logo
    Viewing docs for Linode v6.6.0
    published on Tuesday, Sep 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial