GetZones

This data source provides availability zones for FunctionCompute 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.FC.GetZones.InvokeAsync());
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

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

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

Using GetZones

function getZones(args: GetZonesArgs, opts?: InvokeOptions): Promise<GetZonesResult>
function  get_zones(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:

OutputFile string
OutputFile string
outputFile string
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.FC.Outputs.GetZonesZone>

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

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:

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:

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:

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.

Id string

ID of the zone.

id string

ID of the zone.

id str

ID of the 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.