alicloud_polardb_node_classes
更新时间:
This data source provides the PolarDB node classes resource available info of Alibaba Cloud.
-> NOTE: Available since v1.81.0+
Example Usage
data "alicloud_polardb_node_classes" "resources" {
pay_type = "PostPaid"
db_type = "MySQL"
db_version = "5.6"
}
output "polardb_node_classes" {
value = data.alicloud_polardb_node_classes.resources.classes
}
output "polardb_available_zone_id" {
value = data.alicloud_polardb_node_classes.resources.classes[0].zone_id
}
Argument Reference
The following arguments are supported:
pay_type
- (Required, ForceNew) Filter the results by charge type. Valid values:PrePaid
andPostPaid
.db_type
- (Optional, ForceNew) Database type. Options areMySQL
,PostgreSQL
,Oracle
. If db_type is set, db_version also needs to be set.db_version
- (Optional, ForceNew) Database version required by the user. Value options can refer to the latest docs detail infoDBVersion
. If db_version is set, db_type also needs to be set.db_node_class
- (Optional) The PolarDB node class type by the user.category
- (Optional) The PolarDB node cluster series.region_id
- (Optional) The Region to launch the PolarDB cluster.zone_id
- (Optional) The Zone to launch the PolarDB cluster.output_file
- (Optional) File name where to save data source results (after runningterraform apply
).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
classes
- A list of PolarDB node classes. Each element contains the following attributes:zone_id
- The Zone to launch the PolarDB cluster.supported_engines
- A list of PolarDB node classes in the zone.engine
- In the zone, the database type supports classes in the following available_resources.available_resources
- A list of PolarDB node available classes.db_node_class
- PolarDB node available class.
文档内容是否对您有帮助?