getAvailbilityZones

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

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

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

}
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/sharedfilesystem"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sharedfilesystem.GetAvailbilityZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.sharedfilesystem.SharedfilesystemFunctions;
import com.pulumi.openstack.sharedfilesystem.inputs.GetAvailbilityZonesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var zones = SharedfilesystemFunctions.getAvailbilityZones();

    }
}
import pulumi
import pulumi_openstack as openstack

zones = openstack.sharedfilesystem.get_availbility_zones()
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const zones = pulumi.output(openstack.sharedfilesystem.getAvailbilityZones());
variables:
  zones:
    Fn::Invoke:
      Function: openstack:sharedfilesystem:getAvailbilityZones
      Arguments: {}

Using getAvailbilityZones

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 getAvailbilityZones(args: GetAvailbilityZonesArgs, opts?: InvokeOptions): Promise<GetAvailbilityZonesResult>
function getAvailbilityZonesOutput(args: GetAvailbilityZonesOutputArgs, opts?: InvokeOptions): Output<GetAvailbilityZonesResult>
def get_availbility_zones(region: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAvailbilityZonesResult
def get_availbility_zones_output(region: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAvailbilityZonesResult]
func GetAvailbilityZones(ctx *Context, args *GetAvailbilityZonesArgs, opts ...InvokeOption) (*GetAvailbilityZonesResult, error)
func GetAvailbilityZonesOutput(ctx *Context, args *GetAvailbilityZonesOutputArgs, opts ...InvokeOption) GetAvailbilityZonesResultOutput

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

public static class GetAvailbilityZones 
{
    public static Task<GetAvailbilityZonesResult> InvokeAsync(GetAvailbilityZonesArgs args, InvokeOptions? opts = null)
    public static Output<GetAvailbilityZonesResult> Invoke(GetAvailbilityZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAvailbilityZonesResult> getAvailbilityZones(GetAvailbilityZonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: openstack:sharedfilesystem/getAvailbilityZones:getAvailbilityZones
  arguments:
    # arguments dictionary

The following arguments are supported:

Region string

The region in which to obtain the V2 Shared File System client. If omitted, the region argument of the provider is used.

Region string

The region in which to obtain the V2 Shared File System client. If omitted, the region argument of the provider is used.

region String

The region in which to obtain the V2 Shared File System client. If omitted, the region argument of the provider is used.

region string

The region in which to obtain the V2 Shared File System client. If omitted, the region argument of the provider is used.

region str

The region in which to obtain the V2 Shared File System client. If omitted, the region argument of the provider is used.

region String

The region in which to obtain the V2 Shared File System client. If omitted, the region argument of the provider is used.

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

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

Region string

See Argument Reference above.

id String

The provider-assigned unique ID for this managed resource.

names List<String>

The names of the availability zones, ordered alphanumerically.

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

region string

See Argument Reference above.

id str

The provider-assigned unique ID for this managed resource.

names Sequence[str]

The names of the availability zones, ordered alphanumerically.

region str

See Argument Reference above.

id String

The provider-assigned unique ID for this managed resource.

names List<String>

The names of the availability zones, ordered alphanumerically.

region String

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.