Alibaba Cloud
getZones
This data source provides availability zones for ADB that can be accessed by an Alibaba Cloud account within the region configured in the provider.
NOTE: Available in v1.73.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var zonesIds = Output.Create(AliCloud.Adb.GetZones.InvokeAsync());
}
}
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := adb.GetZones(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
zones_ids = alicloud.adb.get_zones()
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Declare the data source
const zonesIds = pulumi.output(alicloud.adb.getZones());
Coming soon!
Using getZones
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 getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function getZonesOutput(args: GetZonesOutputArgs, opts?: InvokeOptions): Output<GetZonesResult>
def get_zones(multi: Optional[bool] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(multi: Optional[pulumi.Input[bool]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
func GetZonesOutput(ctx *Context, args *GetZonesOutputArgs, opts ...InvokeOption) GetZonesResultOutput
> Note: This function is named GetZones
in the Go SDK.
public static class GetZones
{
public static Task<GetZonesResult> InvokeAsync(GetZonesArgs args, InvokeOptions? opts = null)
public static Output<GetZonesResult> Invoke(GetZonesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:adb/getZones:getZones
Arguments:
# Arguments dictionary
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 ADB 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 ADB 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 ADB 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 ADB 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 ADB instances.- output_
file str
- multi Boolean
Indicate whether the zones can be used in a multi AZ configuration. Default to
false
. Multi AZ is usually used to launch ADB instances.- output
File String
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. Adb. 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 List<String>
A list of zone IDs.
- zones
List<Get
Zones Zone> A list of availability zones. Each element contains the following attributes:
- multi Boolean
- 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 Sequence[str]
A list of zone IDs.
- zones
Sequence[Get
Zones Zone] A list of availability zones. Each element contains the following attributes:
- multi bool
- output_
file str
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
A list of zone IDs.
- zones List<Property Map>
A list of availability zones. Each element contains the following attributes:
- multi Boolean
- output
File String
Supporting Types
GetZonesZone
- 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 List<String>Ids 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_ Sequence[str]ids A list of zone ids in which the multi zone.
- id String
ID of the zone.
- multi
Zone List<String>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
alicloud
Terraform Provider.