GetAvailabilityZonesV3

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

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

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

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

zones = openstack.blockstorage.get_availability_zones_v3()
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const zones = pulumi.output(openstack.blockstorage.getAvailabilityZonesV3({ async: true }));

Using GetAvailabilityZonesV3

function getAvailabilityZonesV3(args: GetAvailabilityZonesV3Args, opts?: InvokeOptions): Promise<GetAvailabilityZonesV3Result>
function  get_availability_zones_v3(region=None, state=None, opts=None)
func GetAvailabilityZonesV3(ctx *Context, args *GetAvailabilityZonesV3Args, opts ...InvokeOption) (*GetAvailabilityZonesV3Result, error)
public static class GetAvailabilityZonesV3 {
    public static Task<GetAvailabilityZonesV3Result> InvokeAsync(GetAvailabilityZonesV3Args args, InvokeOptions? opts = null)
}

The following arguments are supported:

Region string

The region in which to obtain the Block Storage client. If omitted, the region argument of the provider is used.

State string

The state of the availability zones to match. Can either be available or unavailable. Default is available.

Region string

The region in which to obtain the Block Storage client. If omitted, the region argument of the provider is used.

State string

The state of the availability zones to match. Can either be available or unavailable. Default is available.

region string

The region in which to obtain the Block Storage client. If omitted, the region argument of the provider is used.

state string

The state of the availability zones to match. Can either be available or unavailable. Default is available.

region str

The region in which to obtain the Block Storage client. If omitted, the region argument of the provider is used.

state str

The state of the availability zones to match. Can either be available or unavailable. Default is available.

GetAvailabilityZonesV3 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

See Argument Reference above.

State string

See Argument Reference above.

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

See Argument Reference above.

State string

See Argument Reference above.

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

See Argument Reference above.

state string

See Argument Reference above.

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

See Argument Reference above.

state str

See Argument Reference above.

Package Details

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