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",
        }));
    }

}

Coming soon!

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>
function  get_instance_type(id=None, label=None, opts=None)
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 Dict[GetInstanceTypeAddons]
class_ str
disk float
id str
label str
memory float
network_out float
price Dict[GetInstanceTypePrice]
transfer float
vcpus float

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 Dict[GetInstanceTypeAddonsBackups]

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 Dict[GetInstanceTypeAddonsBackupsPrice]

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.