GetZones

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

Using GetZones

function getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function  get_zones(project=None, region=None, status=None, opts=None)
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
public static class GetZones {
    public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string

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

Region string

Region from which to list available zones. Defaults to region declared in the provider.

Status string

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

Project string

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

Region string

Region from which to list available zones. Defaults to region declared in the provider.

Status string

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

project string

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

region string

Region from which to list available zones. Defaults to region declared in the provider.

status string

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

project str

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

region str

Region from which to list available zones. Defaults to region declared in the provider.

status str

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

GetZones Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Names List<string>

A list of zones available in the given region

Project string
Region string
Status string
Id string

The provider-assigned unique ID for this managed resource.

Names []string

A list of zones available in the given region

Project string
Region string
Status string
id string

The provider-assigned unique ID for this managed resource.

names string[]

A list of zones available in the given region

project string
region string
status string
id str

The provider-assigned unique ID for this managed resource.

names List[str]

A list of zones available in the given region

project str
region 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.