Up-to-date reference of API arguments for ECS flavor you can get at documentation portal
opentelekomcloud_compute_flavor_v2¶
Use this data source to get the ID of an available OpenTelekomCloud flavor.
Example Usage¶
data "opentelekomcloud_compute_flavor_v2" "medium-s2" {
vcpus = 1
ram = 4096
resource_type = "IOoptimizedS2"
}
Argument Reference¶
-> If multiple flavors have found only the first will be returned.
region
- (Optional) The region in which to obtain the V2 Compute client. If omitted, theregion
argument of the provider is used.flavor_id
- (Optional) The ID of the flavor. Conflicts with thename
,min_ram
andmin_disk
name
- (Optional) The name of the flavor. Conflicts with theflavor_id
.min_ram
- (Optional) The minimum amount of RAM (in megabytes). Conflicts with theflavor_id
.ram
- (Optional) The exact amount of RAM (in megabytes).min_disk
- (Optional) The minimum amount of disk (in gigabytes). Conflicts with theflavor_id
.availability_zone
- (Optional) Whether flavor should be innormal
state.resource_type
- (Optional) Flavor resource type.disk
- (Optional) The exact amount of disk (in gigabytes).vcpus
- (Optional) The amount of VCPUs.swap
- (Optional) The amount of swap (in gigabytes).rx_tx_factor
- (Optional) Therx_tx_factor
of the flavor.
Attributes Reference¶
id
is set to the ID of the found flavor. In addition, the following attributes
are exported:
extra_specs
- Key/Value pairs of metadata for the flavor.