Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Provides information about a Linode instance type
Example Usage
The following example shows how one might use this data source to access information about a Linode Instance type.
using System.Collections.Generic;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var @default = Linode.GetInstanceType.Invoke(new()
{
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, &linode.GetInstanceTypeArgs{
Id: "g6-standard-2",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetInstanceTypeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = LinodeFunctions.getInstanceType(GetInstanceTypeArgs.builder()
.id("g6-standard-2")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const default = linode.getInstanceType({
id: "g6-standard-2",
});
import pulumi
import pulumi_linode as linode
default = linode.get_instance_type(id="g6-standard-2")
variables:
default:
fn::invoke:
Function: linode:getInstanceType
Arguments:
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)
}public static CompletableFuture<GetInstanceTypeResult> getInstanceType(GetInstanceTypeArgs args, InvokeOptions options)
public static Output<GetInstanceTypeResult> getInstanceType(GetInstanceTypeArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getInstanceType:getInstanceType
arguments:
# arguments dictionaryThe following arguments are supported:
getInstanceType Result
The following output properties are available:
- Addons
Get
Instance Type Addons - Class string
- The class of the Linode Type. See all classes here.
- Disk int
- The Disk size, in MB, of the Linode Type
- Id string
- The ID representing the Linode Type
- Label string
- The Linode Type's label is for display purposes only
- Memory int
- The amount of RAM included in this Linode Type.
- Network
Out int - The Mbits outbound bandwidth allocation.
- Price
Get
Instance Type Price - Transfer int
- The monthly outbound transfer amount, in MB.
- Vcpus int
- The number of VCPU cores this Linode Type offers.
- Addons
Get
Instance Type Addons - Class string
- The class of the Linode Type. See all classes here.
- Disk int
- The Disk size, in MB, of the Linode Type
- Id string
- The ID representing the Linode Type
- Label string
- The Linode Type's label is for display purposes only
- Memory int
- The amount of RAM included in this Linode Type.
- Network
Out int - The Mbits outbound bandwidth allocation.
- Price
Get
Instance Type Price - Transfer int
- The monthly outbound transfer amount, in MB.
- Vcpus int
- The number of VCPU cores this Linode Type offers.
- addons
Get
Instance Type Addons - class_ String
- The class of the Linode Type. See all classes here.
- disk Integer
- The Disk size, in MB, of the Linode Type
- id String
- The ID representing the Linode Type
- label String
- The Linode Type's label is for display purposes only
- memory Integer
- The amount of RAM included in this Linode Type.
- network
Out Integer - The Mbits outbound bandwidth allocation.
- price
Get
Instance Type Price - transfer Integer
- The monthly outbound transfer amount, in MB.
- vcpus Integer
- The number of VCPU cores this Linode Type offers.
- addons
Get
Instance Type Addons - class string
- The class of the Linode Type. See all classes here.
- disk number
- The Disk size, in MB, of the Linode Type
- id string
- The ID representing the Linode Type
- label string
- The Linode Type's label is for display purposes only
- memory number
- The amount of RAM included in this Linode Type.
- network
Out number - The Mbits outbound bandwidth allocation.
- price
Get
Instance Type Price - transfer number
- The monthly outbound transfer amount, in MB.
- vcpus number
- The number of VCPU cores this Linode Type offers.
- addons
Get
Instance Type Addons - class_ str
- The class of the Linode Type. See all classes here.
- disk int
- The Disk size, in MB, of the Linode Type
- id str
- The ID representing the Linode Type
- label str
- The Linode Type's label is for display purposes only
- memory int
- The amount of RAM included in this Linode Type.
- network_
out int - The Mbits outbound bandwidth allocation.
- price
Get
Instance Type Price - transfer int
- The monthly outbound transfer amount, in MB.
- vcpus int
- The number of VCPU cores this Linode Type offers.
- addons Property Map
- class String
- The class of the Linode Type. See all classes here.
- disk Number
- The Disk size, in MB, of the Linode Type
- id String
- The ID representing the Linode Type
- label String
- The Linode Type's label is for display purposes only
- memory Number
- The amount of RAM included in this Linode Type.
- network
Out Number - The Mbits outbound bandwidth allocation.
- price Property Map
- transfer Number
- The monthly outbound transfer amount, in MB.
- vcpus Number
- The number of VCPU cores this Linode Type offers.
Supporting Types
GetInstanceTypeAddons
GetInstanceTypeAddonsBackups
GetInstanceTypeAddonsBackupsPrice
GetInstanceTypePrice
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
Viewing docs for Linode v3.12.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
