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

arvancloud_iaas_flavors (Data Source)

Lists IaaS flavors (server types) from all regions, optionally filtered by region, availability zone, or category.

Example Usage

# List all flavors from all regions.
data "arvancloud_iaas_flavors" "all" {}

output "all_flavors" {
value = data.arvancloud_iaas_flavors.all.flavors
}

# List flavors available in a specific availability zone.
data "arvancloud_iaas_flavors" "bamdad_az" {
availability_zone = "ir-central1-a"
}

output "bamdad_flavors" {
value = data.arvancloud_iaas_flavors.bamdad_az.flavors
}

# List premium flavors available in a specific availability zone.
data "arvancloud_iaas_flavors" "premium_bamdad" {
availability_zone = "ir-central1-a"
category = "premium"
}

output "premium_bamdad_flavor_names" {
value = [for f in data.arvancloud_iaas_flavors.premium_bamdad.flavors : f.name]
}

Schema

Optional

  • availability_zone (String) Filter flavors by availability zone code name (e.g. ir-central1-a). Cannot be combined with region.
  • category (String) Filter flavors by category (e.g. basic, standard, premium, gpu, spot, dedicated).

Read-Only

  • flavors (Attributes List) List of flavors matching the specified filters. (see below for nested schema)
  • id (String) Unique identifier for this data source.

Nested Schema for flavors

Read-Only:

  • availability_zone (String) Availability zone code name where the flavor is available (e.g. ir-central1-a).
  • bandwidth_in_bytes (Number) Network bandwidth in bytes per second.
  • base_package (String) Base package name for the flavor.
  • canary (Boolean) Whether this is a canary flavor.
  • category (String) Category of the flavor (e.g. basic, standard, premium, gpu, spot, dedicated).
  • cpu_count (Number) Number of virtual CPUs.
  • cpu_share (String) CPU share allocation for the flavor.
  • create_type (String) Creation type of the flavor.
  • default (Boolean) Whether this is the default flavor for its category.
  • disk (Number) Root disk size in GB.
  • disk_in_bytes (Number) Root disk size in bytes.
  • generation (String) Hardware generation of the flavor.
  • gpu_manufacturer (String) Manufacturer of the GPU, if present.
  • gpu_memory (Number) GPU memory in GB, if present.
  • gpu_name (String) Name of the GPU, if present.
  • gpu_processor (String) GPU processor model, if present.
  • id (String) Unique identifier of the flavor.
  • iops_max_hdd (Number) Maximum IOPS for HDD storage.
  • iops_max_ssd (Number) Maximum IOPS for SSD storage.
  • memory (Number) RAM size in MB.
  • memory_in_bytes (Number) RAM size in bytes.
  • name (String) Name of the flavor.
  • off (Number) Discount amount applied to the flavor, if any.
  • off_percent (Number) Discount percentage applied to the flavor, if any.
  • order (String) Display order of the flavor.
  • outbound (Number) Outbound network traffic limit in bytes.
  • port_speed (Number) Network port speed in Gbps.
  • pps (Number) Packets per second limit, if applicable.
  • price_per_hour (Number) Hourly price of the flavor in Rials.
  • price_per_month (Number) Monthly price of the flavor in Rials.
  • region (String) Region code name where the flavor is available (e.g. ir-central1).
  • spot (Boolean) Whether this is a spot (preemptible) flavor.
  • subtype (String) Flavor subtype.
  • throughput (Number) Disk throughput in bytes per second.
  • type (String) Flavor type.