Linode v4.28.1 published on Tuesday, Oct 8, 2024 by Pulumi
linode.getInstanceType
Explore with Pulumi AI
Provides information about a Linode instance type For more information, see the Linode APIv4 docs.
Example Usage
The following example shows how one might use this data source to access information about a Linode Instance type.
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")
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v4/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var @default = Linode.GetInstanceType.Invoke(new()
{
Id = "g6-standard-2",
});
});
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());
}
}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: linode:index/getInstanceType:getInstanceType
arguments:
# arguments dictionary
The 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 - Region
Prices List<GetInstance Type Region 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 - Region
Prices []GetInstance Type Region 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 - region
Prices List<GetInstance Type Region 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 - region
Prices GetInstance Type Region 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 - region_
prices Sequence[GetInstance Type Region 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
- region
Prices List<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
GetInstanceTypeAddonsBackup
GetInstanceTypeAddonsBackupPrice
GetInstanceTypeAddonsBackupRegionPrice
GetInstanceTypePrice
GetInstanceTypeRegionPrice
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.