Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

getInstanceType

Provides information about a Linode instance type

Attributes

The Linode Instance Type resource exports the following attributes:

  • id - The ID representing the Linode Type

  • label - The Linode Type’s label is for display purposes only

  • class - The class of the Linode Type. See all classes here.

  • disk - The Disk size, in MB, of the Linode Type

  • price.0.hourly - Cost (in US dollars) per hour.

  • price.0.monthly - Cost (in US dollars) per month.

  • addons.0.backups.0.price.0.hourly - The cost (in US dollars) per hour to add Backups service.

  • addons.0.backups.0.price.0.monthly - The cost (in US dollars) per month to add Backups service.

  • network_out - The Mbits outbound bandwidth allocation.

  • memory - The amount of RAM included in this Linode Type.

  • transfer - The monthly outbound transfer amount, in MB.

  • vcpus - The number of VCPU cores this Linode Type offers.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(Linode.GetInstanceType.InvokeAsync(new Linode.GetInstanceTypeArgs
        {
            Id = "g6-standard-2",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.GetInstanceType(ctx, &GetInstanceTypeArgs{
			Id: "g6-standard-2",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_linode as linode

default = linode.get_instance_type(id="g6-standard-2")
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const defaultInstanceType = pulumi.output(linode.getInstanceType({
    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)
}

The following arguments are supported:

Id string
Label used to identify instance type
Label string
Id string
Label used to identify instance type
Label string
id string
Label used to identify instance type
label string
id str
Label used to identify instance type
label str

getInstanceType Result

The following output properties are available:

Supporting Types

GetInstanceTypeAddons

GetInstanceTypeAddonsBackups

GetInstanceTypeAddonsBackupsPrice

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

GetInstanceTypePrice

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

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.