GetInstanceType
Provides information about a Linode instance type
Attributes
The Linode Instance Type resource exports the following attributes:
id- The ID representing the Linode Typelabel- The Linode Type’s label is for display purposes onlyclass- The class of the Linode Typedisk- The Disk size, in MB, of the Linode Typeprice.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:
GetInstanceType Result
The following output properties are available:
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.
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.
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.
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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.