Class GetInstanceType
Inheritance
Inherited Members
Namespace: Pulumi.Linode
Assembly: Pulumi.Linode.dll
Syntax
public static class GetInstanceType
Methods
View SourceInvokeAsync(GetInstanceTypeArgs, InvokeOptions)
Provides information about a Linode instance type
{{% examples %}}
Example Usage
{{% example %}}
The following example shows how one might use this data source to access information about a Linode Instance type.
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",
}));
}
}
{{% /example %}} {{% /examples %}}
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.
Declaration
public static Task<GetInstanceTypeResult> InvokeAsync(GetInstanceTypeArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetInstanceTypeArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetInstanceTypeResult> |