GetZones

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

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

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

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

Using GetZones

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

AvailableSlbAddressIpVersion string

Filter the results by a slb instance address version. Can be either ipv4, or ipv6.

AvailableSlbAddressType string

Filter the results by a slb instance address type. Can be either Vpc, classic_internet or classic_intranet

EnableDetails bool

Default to false and only output id in the zones block. Set it to true can output more details.

OutputFile string
AvailableSlbAddressIpVersion string

Filter the results by a slb instance address version. Can be either ipv4, or ipv6.

AvailableSlbAddressType string

Filter the results by a slb instance address type. Can be either Vpc, classic_internet or classic_intranet

EnableDetails bool

Default to false and only output id in the zones block. Set it to true can output more details.

OutputFile string
availableSlbAddressIpVersion string

Filter the results by a slb instance address version. Can be either ipv4, or ipv6.

availableSlbAddressType string

Filter the results by a slb instance address type. Can be either Vpc, classic_internet or classic_intranet

enableDetails boolean

Default to false and only output id in the zones block. Set it to true can output more details.

outputFile string
available_slb_address_ip_version str

Filter the results by a slb instance address version. Can be either ipv4, or ipv6.

available_slb_address_type str

Filter the results by a slb instance address type. Can be either Vpc, classic_internet or classic_intranet

enable_details bool

Default to false and only output id in the zones block. Set it to true can output more details.

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.Slb.Outputs.GetZonesZone>

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

AvailableSlbAddressIpVersion string
AvailableSlbAddressType string
EnableDetails 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:

AvailableSlbAddressIpVersion string
AvailableSlbAddressType string
EnableDetails 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:

availableSlbAddressIpVersion string
availableSlbAddressType string
enableDetails 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:

available_slb_address_ip_version str
available_slb_address_type str
enable_details 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.

SlbSlaveZoneIds List<string>

A list of slb slave zone ids in which the slb master zone.

Id string

ID of the zone.

SlbSlaveZoneIds []string

A list of slb slave zone ids in which the slb master zone.

id string

ID of the zone.

slbSlaveZoneIds string[]

A list of slb slave zone ids in which the slb master zone.

id str

ID of the zone.

slbSlaveZoneIds List[str]

A list of slb slave zone ids in which the slb master 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.