Astra

v1.0.35 published on Wednesday, Jul 27, 2022 by pulumiverse

getAvailableRegions

Retrieve a list of available cloud regions in Astra

Example Usage

using Pulumi;
using Astra = Pulumi.Astra;

class MyStack : Stack
{
    public MyStack()
    {
        var regions = Output.Create(Astra.GetAvailableRegions.InvokeAsync());
    }

}
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
	})
}

Coming soon!

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

function getAvailableRegions(opts?: InvokeOptions): Promise<GetAvailableRegionsResult>
def get_available_regions(opts: Optional[InvokeOptions] = None) -> GetAvailableRegionsResult
func LookupAvailableRegions(ctx *Context, opts ...InvokeOption) (*LookupAvailableRegionsResult, error)

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

public static class GetAvailableRegions 
{
    public static Task<GetAvailableRegionsResult> InvokeAsync(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>
Id string

The provider-assigned unique ID for this managed resource.

Results []GetAvailableRegionsResult
id String

The provider-assigned unique ID for this managed resource.

results List<GetAvailableRegionsResult>
id string

The provider-assigned unique ID for this managed resource.

results GetAvailableRegionsResult[]
id str

The provider-assigned unique ID for this managed resource.

results Sequence[GetAvailableRegionsResult]
id String

The provider-assigned unique ID for this managed resource.

results List<Property Map>

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
https://github.com/pulumiverse/pulumi-astra
License
Apache-2.0
Notes

This Pulumi package is based on the astra Terraform Provider.