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:
- Available
Slb stringAddress Ip Version Filter the results by a slb instance address version. Can be either
ipv4, oripv6.- Available
Slb stringAddress Type Filter the results by a slb instance address type. Can be either
Vpc,classic_internetorclassic_intranet- Enable
Details bool Default to false and only output
idin thezonesblock. Set it to true can output more details.- Output
File string
- Available
Slb stringAddress Ip Version Filter the results by a slb instance address version. Can be either
ipv4, oripv6.- Available
Slb stringAddress Type Filter the results by a slb instance address type. Can be either
Vpc,classic_internetorclassic_intranet- Enable
Details bool Default to false and only output
idin thezonesblock. Set it to true can output more details.- Output
File string
- available
Slb stringAddress Ip Version Filter the results by a slb instance address version. Can be either
ipv4, oripv6.- available
Slb stringAddress Type Filter the results by a slb instance address type. Can be either
Vpc,classic_internetorclassic_intranet- enable
Details boolean Default to false and only output
idin thezonesblock. Set it to true can output more details.- output
File string
- available_
slb_ straddress_ ip_ version Filter the results by a slb instance address version. Can be either
ipv4, oripv6.- available_
slb_ straddress_ type Filter the results by a slb instance address type. Can be either
Vpc,classic_internetorclassic_intranet- enable_
details bool Default to false and only output
idin thezonesblock. 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.
Ali Cloud. Slb. Outputs. Get Zones Zone> A list of availability zones. Each element contains the following attributes:
- Available
Slb stringAddress Ip Version - Available
Slb stringAddress Type - Enable
Details 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:
- Available
Slb stringAddress Ip Version - Available
Slb stringAddress Type - Enable
Details 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:
- available
Slb stringAddress Ip Version - available
Slb stringAddress Type - enable
Details 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:
- available_
slb_ straddress_ ip_ version - available_
slb_ straddress_ type - 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.
- Slb
Slave List<string>Zone Ids A list of slb slave zone ids in which the slb master zone.
- Id string
ID of the zone.
- Slb
Slave []stringZone Ids A list of slb slave zone ids in which the slb master zone.
- id string
ID of the zone.
- slb
Slave string[]Zone Ids A list of slb slave zone ids in which the slb master zone.
- id str
ID of the zone.
- slb
Slave List[str]Zone Ids 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
alicloudTerraform Provider.