Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi
alicloud.rds.getZones
Explore with Pulumi AI
This data source provides availability zones for RDS that can be accessed by an Alibaba Cloud account within the region configured in the provider.
NOTE: Available in v1.73.0+.
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(category: Optional[str] = None,
db_instance_class: Optional[str] = None,
db_instance_storage_type: Optional[str] = None,
engine: Optional[str] = None,
engine_version: Optional[str] = None,
instance_charge_type: Optional[str] = None,
multi: Optional[bool] = None,
multi_zone: Optional[bool] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZonesResult
def get_zones_output(category: Optional[pulumi.Input[str]] = None,
db_instance_class: Optional[pulumi.Input[str]] = None,
db_instance_storage_type: Optional[pulumi.Input[str]] = None,
engine: Optional[pulumi.Input[str]] = None,
engine_version: Optional[pulumi.Input[str]] = None,
instance_charge_type: Optional[pulumi.Input[str]] = None,
multi: Optional[pulumi.Input[bool]] = None,
multi_zone: 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:rds/getZones:getZones
arguments:
# arguments dictionary
The following arguments are supported:
- Category string
- DB Instance category. the value like [
Basic
,HighAvailability
,Finance
,AlwaysOn
,serverless_basic
,serverless_standard
,serverless_ha
,cluster
], detail info. - Db
Instance stringClass - Db
Instance stringStorage Type - The DB instance storage space required by the user. Valid values: "cloud_ssd", "local_ssd", "cloud_essd", "cloud_essd2", "cloud_essd3".
- Engine string
- Database type. Valid values: "MySQL", "SQLServer", "PostgreSQL", "MariaDB". If not set, it will match all of engines.
- Engine
Version string - Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion
. - Instance
Charge stringType - Filter the results by a specific instance charge type. Valid values:
PrePaid
andPostPaid
andServerless
. Default toPostPaid
. - Multi bool
- It has been deprecated from version 1.137.0 and using
multi_zone
instead. - Multi
Zone bool - Indicate whether the zones can be used in a multi AZ configuration. Default to
false
. Multi AZ is usually used to launch RDS instances. - Output
File string - File name where to save data source results (after running
pulumi preview
).
- Category string
- DB Instance category. the value like [
Basic
,HighAvailability
,Finance
,AlwaysOn
,serverless_basic
,serverless_standard
,serverless_ha
,cluster
], detail info. - Db
Instance stringClass - Db
Instance stringStorage Type - The DB instance storage space required by the user. Valid values: "cloud_ssd", "local_ssd", "cloud_essd", "cloud_essd2", "cloud_essd3".
- Engine string
- Database type. Valid values: "MySQL", "SQLServer", "PostgreSQL", "MariaDB". If not set, it will match all of engines.
- Engine
Version string - Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion
. - Instance
Charge stringType - Filter the results by a specific instance charge type. Valid values:
PrePaid
andPostPaid
andServerless
. Default toPostPaid
. - Multi bool
- It has been deprecated from version 1.137.0 and using
multi_zone
instead. - Multi
Zone bool - Indicate whether the zones can be used in a multi AZ configuration. Default to
false
. Multi AZ is usually used to launch RDS instances. - Output
File string - File name where to save data source results (after running
pulumi preview
).
- category String
- DB Instance category. the value like [
Basic
,HighAvailability
,Finance
,AlwaysOn
,serverless_basic
,serverless_standard
,serverless_ha
,cluster
], detail info. - db
Instance StringClass - db
Instance StringStorage Type - The DB instance storage space required by the user. Valid values: "cloud_ssd", "local_ssd", "cloud_essd", "cloud_essd2", "cloud_essd3".
- engine String
- Database type. Valid values: "MySQL", "SQLServer", "PostgreSQL", "MariaDB". If not set, it will match all of engines.
- engine
Version String - Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion
. - instance
Charge StringType - Filter the results by a specific instance charge type. Valid values:
PrePaid
andPostPaid
andServerless
. Default toPostPaid
. - multi Boolean
- It has been deprecated from version 1.137.0 and using
multi_zone
instead. - multi
Zone Boolean - Indicate whether the zones can be used in a multi AZ configuration. Default to
false
. Multi AZ is usually used to launch RDS instances. - output
File String - File name where to save data source results (after running
pulumi preview
).
- category string
- DB Instance category. the value like [
Basic
,HighAvailability
,Finance
,AlwaysOn
,serverless_basic
,serverless_standard
,serverless_ha
,cluster
], detail info. - db
Instance stringClass - db
Instance stringStorage Type - The DB instance storage space required by the user. Valid values: "cloud_ssd", "local_ssd", "cloud_essd", "cloud_essd2", "cloud_essd3".
- engine string
- Database type. Valid values: "MySQL", "SQLServer", "PostgreSQL", "MariaDB". If not set, it will match all of engines.
- engine
Version string - Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion
. - instance
Charge stringType - Filter the results by a specific instance charge type. Valid values:
PrePaid
andPostPaid
andServerless
. Default toPostPaid
. - multi boolean
- It has been deprecated from version 1.137.0 and using
multi_zone
instead. - multi
Zone boolean - Indicate whether the zones can be used in a multi AZ configuration. Default to
false
. Multi AZ is usually used to launch RDS instances. - output
File string - File name where to save data source results (after running
pulumi preview
).
- category str
- DB Instance category. the value like [
Basic
,HighAvailability
,Finance
,AlwaysOn
,serverless_basic
,serverless_standard
,serverless_ha
,cluster
], detail info. - db_
instance_ strclass - db_
instance_ strstorage_ type - The DB instance storage space required by the user. Valid values: "cloud_ssd", "local_ssd", "cloud_essd", "cloud_essd2", "cloud_essd3".
- engine str
- Database type. Valid values: "MySQL", "SQLServer", "PostgreSQL", "MariaDB". If not set, it will match all of engines.
- engine_
version str - Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion
. - instance_
charge_ strtype - Filter the results by a specific instance charge type. Valid values:
PrePaid
andPostPaid
andServerless
. Default toPostPaid
. - multi bool
- It has been deprecated from version 1.137.0 and using
multi_zone
instead. - multi_
zone bool - Indicate whether the zones can be used in a multi AZ configuration. Default to
false
. Multi AZ is usually used to launch RDS instances. - output_
file str - File name where to save data source results (after running
pulumi preview
).
- category String
- DB Instance category. the value like [
Basic
,HighAvailability
,Finance
,AlwaysOn
,serverless_basic
,serverless_standard
,serverless_ha
,cluster
], detail info. - db
Instance StringClass - db
Instance StringStorage Type - The DB instance storage space required by the user. Valid values: "cloud_ssd", "local_ssd", "cloud_essd", "cloud_essd2", "cloud_essd3".
- engine String
- Database type. Valid values: "MySQL", "SQLServer", "PostgreSQL", "MariaDB". If not set, it will match all of engines.
- engine
Version String - Database version required by the user. Value options can refer to the latest docs detail info
EngineVersion
. - instance
Charge StringType - Filter the results by a specific instance charge type. Valid values:
PrePaid
andPostPaid
andServerless
. Default toPostPaid
. - multi Boolean
- It has been deprecated from version 1.137.0 and using
multi_zone
instead. - multi
Zone Boolean - Indicate whether the zones can be used in a multi AZ configuration. Default to
false
. Multi AZ is usually used to launch RDS instances. - output
File 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.
Ali Cloud. Rds. Outputs. Get Zones Zone> - A list of availability zones. Each element contains the following attributes:
- Category string
- Db
Instance stringClass - Db
Instance stringStorage Type - Engine string
- Engine
Version string - Instance
Charge stringType - Multi bool
- Multi
Zone 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:
- Category string
- Db
Instance stringClass - Db
Instance stringStorage Type - Engine string
- Engine
Version string - Instance
Charge stringType - Multi bool
- Multi
Zone 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:
- category String
- db
Instance StringClass - db
Instance StringStorage Type - engine String
- engine
Version String - instance
Charge StringType - multi Boolean
- multi
Zone 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:
- category string
- db
Instance stringClass - db
Instance stringStorage Type - engine string
- engine
Version string - instance
Charge stringType - multi boolean
- multi
Zone 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:
- category str
- db_
instance_ strclass - db_
instance_ strstorage_ type - engine str
- engine_
version str - instance_
charge_ strtype - multi bool
- multi_
zone 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:
- category String
- db
Instance StringClass - db
Instance StringStorage Type - engine String
- engine
Version String - instance
Charge StringType - multi Boolean
- multi
Zone 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
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.