|
| 1 | +--- |
| 2 | +page_title: "zstack_instance_offers Data Source - terraform-provider-zstack" |
| 3 | +subcategory: "" |
| 4 | +description: |- |
| 5 | + Fetches a list of instance offers and their associated attributes from the ZStack environment. |
| 6 | +--- |
| 7 | + |
| 8 | +# zstack_instance_offers (Data Source) |
| 9 | + |
| 10 | +Fetches a list of instance offers and their associated attributes from the ZStack environment. |
| 11 | + |
| 12 | +## Example Usage |
| 13 | + |
| 14 | +```terraform |
| 15 | +# Copyright (c) ZStack.io, Inc. |
| 16 | +
|
| 17 | +data "zstack_instance_offers" "example" { |
| 18 | +
|
| 19 | +} |
| 20 | +
|
| 21 | +output "zstack_instance_offers" { |
| 22 | + value = data.zstack_instance_offers.example |
| 23 | +} |
| 24 | +``` |
| 25 | + |
| 26 | +<!-- schema generated by tfplugindocs --> |
| 27 | +## Schema |
| 28 | + |
| 29 | +### Optional |
| 30 | + |
| 31 | +- `name` (String) Exact name for searching instance offer |
| 32 | +- `name_pattern` (String) Pattern for fuzzy name search, similar to MySQL LIKE. Use % for multiple characters and _ for exactly one character. |
| 33 | + |
| 34 | +### Read-Only |
| 35 | + |
| 36 | +- `instance_offers` (Attributes List) (see [below for nested schema](#nestedatt--instance_offers)) |
| 37 | + |
| 38 | +<a id="nestedatt--instance_offers"></a> |
| 39 | +### Nested Schema for `instance_offers` |
| 40 | + |
| 41 | +Read-Only: |
| 42 | + |
| 43 | +- `allocator_strategy` (String) The strategy used for allocating resources to the instance. |
| 44 | +- `cpu_num` (Number) The number of CPUs allocated to the instance offer. |
| 45 | +- `cpu_speed` (Number) The speed of each CPU in MHz. |
| 46 | +- `description` (String) A brief description of the instance offering. |
| 47 | +- `memory_size` (Number) The memory size allocated to the instance, in bytes. |
| 48 | +- `name` (String) The name of the instance offering. |
| 49 | +- `sort_key` (Number) The sort key used for ordering instance offerings. |
| 50 | +- `state` (String) The current state of the instance offering (e.g., Enabled, Disabled). |
| 51 | +- `type` (String) The type of the instance offering. |
| 52 | +- `uuid` (String) The unique identifier (UUID) of the instance offering. |
| 53 | + |
| 54 | + |
| 55 | + |
0 commit comments