1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. gpdb
  5. getZones
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.gpdb.getZones

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides availability zones for Gpdb that can be accessed by an Alibaba Cloud account within the region configured in the provider.

NOTE: Available in v1.73.0+.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  # Create an Gpdb instance with the first matched zone
  hbase:
    type: alicloud:hbase:Instance
    properties:
      availabilityZone: ${zonesIds.zones[0].id}
variables:
  # Declare the data source
  zonesIds:
    fn::invoke:
      function: alicloud:gpdb:getZones
      arguments: {}
Copy

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>
Copy
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]
Copy
func GetZones(ctx *Context, args *GetZonesArgs, opts ...InvokeOption) (*GetZonesResult, error)
func GetZonesOutput(ctx *Context, args *GetZonesOutputArgs, opts ...InvokeOption) GetZonesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
public static Output<GetZonesResult> getZones(GetZonesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:gpdb/getZones:getZones
  arguments:
    # arguments dictionary
Copy

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 Gpdb instances.
OutputFile string
File name where to save data source results (after running pulumi preview).
Multi bool
Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch Gpdb instances.
OutputFile string
File name where to save data source results (after running pulumi preview).
multi Boolean
Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch Gpdb instances.
outputFile String
File name where to save data source results (after running pulumi preview).
multi boolean
Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch Gpdb instances.
outputFile string
File name where to save data source results (after running pulumi preview).
multi bool
Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch Gpdb instances.
output_file str
File name where to save data source results (after running pulumi preview).
multi Boolean
Indicate whether the zones can be used in a multi AZ configuration. Default to false. Multi AZ is usually used to launch Gpdb instances.
outputFile String
File name where to save data source results (after running pulumi preview).

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.Gpdb.Outputs.GetZonesZone>
A list of availability zones. Each element contains the following attributes:
Multi 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:
Multi bool
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of zone IDs.
zones List<GetZonesZone>
A list of availability zones. Each element contains the following attributes:
multi Boolean
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:
multi boolean
outputFile string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of zone IDs.
zones Sequence[GetZonesZone]
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
outputFile String

Supporting Types

GetZonesZone

Id This property is required. string
ID of the zone.
MultiZoneIds This property is required. List<string>
A list of zone ids in which the multi zone.
Id This property is required. string
ID of the zone.
MultiZoneIds This property is required. []string
A list of zone ids in which the multi zone.
id This property is required. String
ID of the zone.
multiZoneIds This property is required. List<String>
A list of zone ids in which the multi zone.
id This property is required. string
ID of the zone.
multiZoneIds This property is required. string[]
A list of zone ids in which the multi zone.
id This property is required. str
ID of the zone.
multi_zone_ids This property is required. Sequence[str]
A list of zone ids in which the multi zone.
id This property is required. String
ID of the zone.
multiZoneIds This property is required. List<String>
A list of zone ids in which the multi zone.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi