GetRegions

Provides access to available Google Compute regions for a given project. See more about regions and zones in the upstream docs.

Using GetRegions

function getRegions(args: GetRegionsArgs, opts?: InvokeOptions): Promise<GetRegionsResult>
function  get_regions(project=None, status=None, opts=None)
func GetRegions(ctx *Context, args *GetRegionsArgs, opts ...InvokeOption) (*GetRegionsResult, error)
public static class GetRegions {
    public static Task<GetRegionsResult> InvokeAsync(GetRegionsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string

Project from which to list available regions. Defaults to project declared in the provider.

Status string

Allows to filter list of regions based on their current status. Status can be either UP or DOWN. Defaults to no filtering (all available regions - both UP and DOWN).

Project string

Project from which to list available regions. Defaults to project declared in the provider.

Status string

Allows to filter list of regions based on their current status. Status can be either UP or DOWN. Defaults to no filtering (all available regions - both UP and DOWN).

project string

Project from which to list available regions. Defaults to project declared in the provider.

status string

Allows to filter list of regions based on their current status. Status can be either UP or DOWN. Defaults to no filtering (all available regions - both UP and DOWN).

project str

Project from which to list available regions. Defaults to project declared in the provider.

status str

Allows to filter list of regions based on their current status. Status can be either UP or DOWN. Defaults to no filtering (all available regions - both UP and DOWN).

GetRegions Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Names List<string>

A list of regions available in the given project

Project string
Status string
Id string

The provider-assigned unique ID for this managed resource.

Names []string

A list of regions available in the given project

Project string
Status string
id string

The provider-assigned unique ID for this managed resource.

names string[]

A list of regions available in the given project

project string
status string
id str

The provider-assigned unique ID for this managed resource.

names List[str]

A list of regions available in the given project

project str
status str

Package Details

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