GetZones

This data source provides availability zones for PolarDB that can be accessed by an Alibaba Cloud account within the region configured in the provider.

NOTE: Available in v1.74.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var zonesIds = Output.Create(AliCloud.PolarDB.GetZones.InvokeAsync());
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

zones_ids = alicloud.polardb.get_zones()
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Declare the data source
const zonesIds = pulumi.output(alicloud.polardb.getZones({ async: true }));

Using GetZones

function getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function  get_zones(multi=None, output_file=None, opts=None)
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
public static class GetZones {
    public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Multi bool

Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch PolarDB instances.

OutputFile string
Multi bool

Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch PolarDB instances.

OutputFile string
multi boolean

Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch PolarDB instances.

outputFile string
multi bool

Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch PolarDB instances.

output_file str

GetZones Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of zone IDs.

Zones List<Pulumi.AliCloud.PolarDB.Outputs.GetZonesZone>

A list of availability zones. Each element contains the following attributes:

Multi bool
OutputFile string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of zone IDs.

Zones []GetZonesZone

A list of availability zones. Each element contains the following attributes:

Multi bool
OutputFile string
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of zone IDs.

zones GetZonesZone[]

A list of availability zones. Each element contains the following attributes:

multi boolean
outputFile string
id str

The provider-assigned unique ID for this managed resource.

ids List[str]

A list of zone IDs.

zones List[GetZonesZone]

A list of availability zones. Each element contains the following attributes:

multi bool
output_file str

Supporting Types

GetZonesZone

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Id string

ID of the zone.

MultiZoneIds List<string>

A list of zone ids in which the multi zone.

Id string

ID of the zone.

MultiZoneIds []string

A list of zone ids in which the multi zone.

id string

ID of the zone.

multiZoneIds string[]

A list of zone ids in which the multi zone.

id str

ID of the zone.

multiZoneIds List[str]

A list of zone ids in which the multi zone.

Package Details

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