1. Packages
  2. Astra DB
  3. API Docs
  4. getAvailableRegions
Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse

astra.getAvailableRegions

Explore with Pulumi AI

astra logo
Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse

    Retrieve a list of available cloud regions in Astra

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Astra = Pulumi.Astra;
    
    return await Deployment.RunAsync(() => 
    {
        var regions = Astra.GetAvailableRegions.Invoke();
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-astra/sdk/go/astra"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := astra.LookupAvailableRegions(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.astra.AstraFunctions;
    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 regions = AstraFunctions.getAvailableRegions();
    
        }
    }
    
    import pulumi
    import pulumi_astra as astra
    
    regions = astra.get_available_regions()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as astra from "@pulumi/astra";
    
    const regions = pulumi.output(astra.getAvailableRegions());
    
    variables:
      regions:
        Fn::Invoke:
          Function: astra:getAvailableRegions
          Arguments: {}
    

    Using getAvailableRegions

    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 getAvailableRegions(opts?: InvokeOptions): Promise<GetAvailableRegionsResult>
    function getAvailableRegionsOutput(opts?: InvokeOptions): Output<GetAvailableRegionsResult>
    def get_available_regions(opts: Optional[InvokeOptions] = None) -> GetAvailableRegionsResult
    def get_available_regions_output(opts: Optional[InvokeOptions] = None) -> Output[GetAvailableRegionsResult]
    func LookupAvailableRegions(ctx *Context, opts ...InvokeOption) (*LookupAvailableRegionsResult, error)
    func LookupAvailableRegionsOutput(ctx *Context, opts ...InvokeOption) LookupAvailableRegionsResultOutput

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

    public static class GetAvailableRegions 
    {
        public static Task<GetAvailableRegionsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetAvailableRegionsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAvailableRegionsResult> getAvailableRegions(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: astra:index/getAvailableRegions:getAvailableRegions
      arguments:
        # arguments dictionary

    getAvailableRegions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<Pulumiverse.Astra.Outputs.GetAvailableRegionsResult>
    The list of supported Astra regions by cloud provider and tier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetAvailableRegionsResult
    The list of supported Astra regions by cloud provider and tier.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetAvailableRegionsResult>
    The list of supported Astra regions by cloud provider and tier.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetAvailableRegionsResult[]
    The list of supported Astra regions by cloud provider and tier.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetAvailableRegionsResult]
    The list of supported Astra regions by cloud provider and tier.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The list of supported Astra regions by cloud provider and tier.

    Supporting Types

    GetAvailableRegionsResult

    CloudProvider string
    DisplayName string
    Region string
    Zone string
    CloudProvider string
    DisplayName string
    Region string
    Zone string
    cloudProvider String
    displayName String
    region String
    zone String
    cloudProvider string
    displayName string
    region string
    zone string
    cloudProvider String
    displayName String
    region String
    zone String

    Package Details

    Repository
    astra pulumiverse/pulumi-astra
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the astra Terraform Provider.
    astra logo
    Astra DB v1.0.42 published on Tuesday, Jun 6, 2023 by pulumiverse