1. Packages
  2. Linode
  3. API Docs
  4. getInstanceType
Linode v4.17.0 published on Wednesday, Mar 27, 2024 by Pulumi

linode.getInstanceType

Explore with Pulumi AI

linode logo
Linode v4.17.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Provides information about a Linode instance type

    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/v4/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.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 default = LinodeFunctions.getInstanceType(GetInstanceTypeArgs.builder()
                .id("g6-standard-2")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: linode:getInstanceType
          Arguments:
            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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
                          label: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = 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 CompletableFuture<GetInstanceTypeResult> getInstanceType(GetInstanceTypeArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: linode:index/getInstanceType:getInstanceType
      arguments:
        # arguments dictionary

    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 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:

    Addons GetInstanceTypeAddons
    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.
    Price GetInstanceTypePrice
    RegionPrices List<GetInstanceTypeRegionPrice>
    Transfer int
    The monthly outbound transfer amount, in MB.
    Vcpus int
    The number of VCPU cores this Linode Type offers.
    Addons GetInstanceTypeAddons
    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.
    Price GetInstanceTypePrice
    RegionPrices []GetInstanceTypeRegionPrice
    Transfer int
    The monthly outbound transfer amount, in MB.
    Vcpus int
    The number of VCPU cores this Linode Type offers.
    addons GetInstanceTypeAddons
    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.
    price GetInstanceTypePrice
    regionPrices List<GetInstanceTypeRegionPrice>
    transfer Integer
    The monthly outbound transfer amount, in MB.
    vcpus Integer
    The number of VCPU cores this Linode Type offers.
    addons GetInstanceTypeAddons
    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.
    price GetInstanceTypePrice
    regionPrices GetInstanceTypeRegionPrice[]
    transfer number
    The monthly outbound transfer amount, in MB.
    vcpus number
    The number of VCPU cores this Linode Type offers.
    addons GetInstanceTypeAddons
    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.
    price GetInstanceTypePrice
    region_prices Sequence[GetInstanceTypeRegionPrice]
    transfer int
    The monthly outbound transfer amount, in MB.
    vcpus int
    The number of VCPU cores this Linode Type offers.
    addons Property Map
    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.
    price Property Map
    regionPrices List<Property Map>
    transfer Number
    The monthly outbound transfer amount, in MB.
    vcpus Number
    The number of VCPU cores this Linode Type offers.

    Supporting Types

    GetInstanceTypeAddons

    GetInstanceTypeAddonsBackup

    GetInstanceTypeAddonsBackupPrice

    Hourly double
    Monthly double
    Hourly float64
    Monthly float64
    hourly Double
    monthly Double
    hourly number
    monthly number
    hourly float
    monthly float
    hourly Number
    monthly Number

    GetInstanceTypeAddonsBackupRegionPrice

    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 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
    Monthly double
    Hourly float64
    Monthly float64
    hourly Double
    monthly Double
    hourly number
    monthly number
    hourly float
    monthly float
    hourly Number
    monthly Number

    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 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 v4.17.0 published on Wednesday, Mar 27, 2024 by Pulumi