Want to learn about running containers in Lambda? Join our free hands-on workshop. Register Now

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

  • 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.

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/v2/go/linode"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
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",
}, { async: true }));

Using GetInstanceType

function getInstanceType(args: GetInstanceTypeArgs, opts?: InvokeOptions): Promise<GetInstanceTypeResult>
def get_instance_type(id: Optional[str] = None, label: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetInstanceTypeResult
func GetInstanceType(ctx *Context, args *GetInstanceTypeArgs, opts ...InvokeOption) (*GetInstanceTypeResult, error)
public static class GetInstanceType {
    public static Task<GetInstanceTypeResult> InvokeAsync(GetInstanceTypeArgs 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:

Addons GetInstanceTypeAddons
Class string
Disk int
Id string
Label string
Memory int
NetworkOut int
Price GetInstanceTypePrice
Transfer int
Vcpus int
Addons GetInstanceTypeAddons
Class string
Disk int
Id string
Label string
Memory int
NetworkOut int
Price GetInstanceTypePrice
Transfer int
Vcpus int
addons GetInstanceTypeAddons
class string
disk number
id string
label string
memory number
networkOut number
price GetInstanceTypePrice
transfer number
vcpus number
addons GetInstanceTypeAddons
class_ str
disk int
id str
label str
memory int
network_out int
price GetInstanceTypePrice
transfer int
vcpus int

Supporting Types

GetInstanceTypeAddons

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Backups GetInstanceTypeAddonsBackupsArgs
Backups GetInstanceTypeAddonsBackups
backups GetInstanceTypeAddonsBackups
backups GetInstanceTypeAddonsBackupsArgs

GetInstanceTypeAddonsBackups

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Price GetInstanceTypeAddonsBackupsPriceArgs
Price GetInstanceTypeAddonsBackupsPrice
price GetInstanceTypeAddonsBackupsPrice
price GetInstanceTypeAddonsBackupsPriceArgs

GetInstanceTypeAddonsBackupsPrice

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

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

GetInstanceTypePrice

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

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.