پرش به مطلب اصلی

arvancloud_dbaas_datacenters (Data Source)

Lists DBaaS datacenters from the Arvancloud DBaaS API (GET /datacenters). Use availability_zone when creating instances, and nested datastores for flavor_ref / datastore_version.

Example Usage

data "arvancloud_dbaas_datacenters" "all" {}

output "datacenters" {
value = data.arvancloud_dbaas_datacenters.all.datacenters
}

Schema

Read-Only

  • datacenters (Attributes List) Datacenters available for DBaaS provisioning. (see below for nested schema)
  • id (String) Stable identifier for this data source.

Nested Schema for datacenters

Read-Only:

  • availability_zone (String) Composite availability zone (e.g. ir-tbz-sh1). Pass this as instance availability_zone.
  • created_at (String) Creation timestamp from the API (createDate).
  • datastores (Attributes List) Datastore engines available in this datacenter, including versions and flavor categories. (see below for nested schema)
  • enabled (Boolean) Whether the datacenter is available for new deployments. Inverted from API disabled.
  • id (String) Datacenter UUID from the API.
  • name (String) Human-readable datacenter name.
  • region_code (String) Region code from the API (e.g. SH1).
  • selected (Boolean) Whether this datacenter is marked selected in the API response.

Nested Schema for datacenters.datastores

Read-Only:

  • enabled (Boolean) Whether this datastore is available in the datacenter. Inverted from API disabled.
  • flavors (Attributes List) Flavor categories offered for this datastore. (see below for nested schema)
  • name (String) Datastore engine name (e.g. mysql, postgresql).
  • selected (Boolean) Whether this datastore is marked selected in the API response.
  • versions (List of String) Available engine versions for datastore_version.

Nested Schema for datacenters.datastores.flavors

Read-Only:

  • id (String) Flavor category id.
  • name (String) Flavor category name.