1. Packages
  2. OpenStack
  3. API Docs
  4. sharedfilesystem
  5. getAvailbilityZones
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

openstack.sharedfilesystem.getAvailbilityZones

Explore with Pulumi AI

openstack logo
OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const zones = openstack.sharedfilesystem.getAvailbilityZones({});
    
    import pulumi
    import pulumi_openstack as openstack
    
    zones = openstack.sharedfilesystem.get_availbility_zones()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v4/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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var zones = OpenStack.SharedFileSystem.GetAvailbilityZones.Invoke();
    
    });
    
    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();
    
        }
    }
    
    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
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v4.0.0 published on Tuesday, May 21, 2024 by Pulumi