Get started with Pulumi in a free one hour introductory workshop. Register Now

GetRegion

linode.getRegion provides details about a specific Linode region. See all regions here.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var region = Output.Create(Linode.GetRegion.InvokeAsync(new Linode.GetRegionArgs
        {
            Id = "us-east",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-linode/sdk/v2/go/linode"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := linode.GetRegion(ctx, &linode.GetRegionArgs{
            Id: "us-east",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_linode as linode

region = linode.get_region(id="us-east")
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const region = pulumi.output(linode.getRegion({
    id: "us-east",
}, { async: true }));

Using GetRegion

function getRegion(args: GetRegionArgs, opts?: InvokeOptions): Promise<GetRegionResult>
def get_region(country: Optional[str] = None, id: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetRegionResult
func GetRegion(ctx *Context, args *GetRegionArgs, opts ...InvokeOption) (*GetRegionResult, error)
public static class GetRegion {
    public static Task<GetRegionResult> InvokeAsync(GetRegionArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id string

The code name of the region to select.

Country string

The country the region resides in.

Id string

The code name of the region to select.

Country string

The country the region resides in.

id string

The code name of the region to select.

country string

The country the region resides in.

id str

The code name of the region to select.

country str

The country the region resides in.

GetRegion Result

The following output properties are available:

Country string

The country the region resides in.

Id string
Country string

The country the region resides in.

Id string
country string

The country the region resides in.

id string
country str

The country the region resides in.

id str

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.