Google Cloud (GCP) Classic

Pulumi Official
Package maintained by Pulumi
v6.24.0 published on Tuesday, May 17, 2022 by Pulumi

getRegions

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

Using getRegions

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 getRegions(args: GetRegionsArgs, opts?: InvokeOptions): Promise<GetRegionsResult>
function getRegionsOutput(args: GetRegionsOutputArgs, opts?: InvokeOptions): Output<GetRegionsResult>
def get_regions(project: Optional[str] = None,
                status: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetRegionsResult
def get_regions_output(project: Optional[pulumi.Input[str]] = None,
                status: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetRegionsResult]
func GetRegions(ctx *Context, args *GetRegionsArgs, opts ...InvokeOption) (*GetRegionsResult, error)
func GetRegionsOutput(ctx *Context, args *GetRegionsOutputArgs, opts ...InvokeOption) GetRegionsResultOutput

> Note: This function is named GetRegions in the Go SDK.

public static class GetRegions 
{
    public static Task<GetRegionsResult> InvokeAsync(GetRegionsArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionsResult> Invoke(GetRegionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionsResult> getRegions(GetRegionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: gcp:compute/getRegions:getRegions
  Arguments:
    # Arguments dictionary

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 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).

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).

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 List

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 Sequence[str]

A list of regions available in the given project

project str
status str
id String

The provider-assigned unique ID for this managed resource.

names List

A list of regions available in the given project

project String
status String

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.