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.- Output
File 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 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.- output
File 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.
Ali Cloud. Polar DB. Outputs. Get Zones Zone> A list of availability zones. Each element contains the following attributes:
- Multi bool
- Output
File string
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
A list of zone IDs.
- Zones
[]Get
Zones Zone A list of availability zones. Each element contains the following attributes:
- Multi bool
- Output
File string
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
A list of zone IDs.
- zones
Get
Zones Zone[] A list of availability zones. Each element contains the following attributes:
- multi boolean
- output
File string
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
A list of zone IDs.
- zones
List[Get
Zones Zone] 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.
- Multi
Zone List<string>Ids A list of zone ids in which the multi zone.
- Id string
ID of the zone.
- Multi
Zone []stringIds A list of zone ids in which the multi zone.
- id string
ID of the zone.
- multi
Zone string[]Ids A list of zone ids in which the multi zone.
- id str
ID of the zone.
- multi
Zone List[str]Ids 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
alicloudTerraform Provider.