GetAvailabilityZones

Use this data source to get a list of availability zones from OpenStack

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var zones = Output.Create(OpenStack.Compute.GetAvailabilityZones.InvokeAsync());
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

zones = openstack.compute.get_availability_zones()
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const zones = pulumi.output(openstack.compute.getAvailabilityZones({ async: true }));

Using GetAvailabilityZones

function getAvailabilityZones(args: GetAvailabilityZonesArgs, opts?: InvokeOptions): Promise<GetAvailabilityZonesResult>
function  get_availability_zones(region=None, state=None, opts=None)
func GetAvailabilityZones(ctx *Context, args *GetAvailabilityZonesArgs, opts ...InvokeOption) (*GetAvailabilityZonesResult, error)
public static class GetAvailabilityZones {
    public static Task<GetAvailabilityZonesResult> InvokeAsync(GetAvailabilityZonesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Region string

The region to fetch availability zones from, defaults to the provider’s region

State string

The state of the availability zones to match, default (“available”).

Region string

The region to fetch availability zones from, defaults to the provider’s region

State string

The state of the availability zones to match, default (“available”).

region string

The region to fetch availability zones from, defaults to the provider’s region

state string

The state of the availability zones to match, default (“available”).

region str

The region to fetch availability zones from, defaults to the provider’s region

state str

The state of the availability zones to match, default (“available”).

GetAvailabilityZones Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Names List<string>

The names of the availability zones, ordered alphanumerically, that match the queried state

Region string
State string
Id string

The provider-assigned unique ID for this managed resource.

Names []string

The names of the availability zones, ordered alphanumerically, that match the queried state

Region string
State string
id string

The provider-assigned unique ID for this managed resource.

names string[]

The names of the availability zones, ordered alphanumerically, that match the queried state

region string
state string
id str

The provider-assigned unique ID for this managed resource.

names List[str]

The names of the availability zones, ordered alphanumerically, that match the queried state

region str
state str

Package Details

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