|
| 1 | +--- |
| 2 | +subcategory: "Elastic Metal" |
| 3 | +page_title: "Scaleway: scaleway_baremetal_offer" |
| 4 | +--- |
| 5 | + |
| 6 | +# scaleway_baremetal_offer |
| 7 | + |
| 8 | +Gets information about a baremetal offer. For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api). |
| 9 | + |
| 10 | +## Example Usage |
| 11 | + |
| 12 | +```hcl |
| 13 | +# Get info by offer name |
| 14 | +data "scaleway_baremetal_offer" "my_offer" { |
| 15 | + zone = "fr-par-2" |
| 16 | + name = "EM-A210R-SATA" |
| 17 | +} |
| 18 | + |
| 19 | +# Get info by offer id |
| 20 | +data "scaleway_baremetal_offer" "my_offer" { |
| 21 | + zone = "fr-par-2" |
| 22 | + offer_id = "25dcf38b-c90c-4b18-97a2-6956e9d1e113" |
| 23 | +} |
| 24 | +``` |
| 25 | + |
| 26 | +## Argument Reference |
| 27 | + |
| 28 | +- `name` - (Optional) The offer name. Only one of `name` and `offer_id` should be specified. |
| 29 | + |
| 30 | +- `subscription_period` - (Optional) Period of subscription the desired offer. Should be `hourly` or `monthly`. |
| 31 | + |
| 32 | +- `offer_id` - (Optional) The offer id. Only one of `name` and `offer_id` should be specified. |
| 33 | + |
| 34 | +- `allow_disabled` - (Optional, default `false`) Include disabled offers. |
| 35 | + |
| 36 | +- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the offer should be created. |
| 37 | + |
| 38 | +## Attributes Reference |
| 39 | + |
| 40 | +In addition to all above arguments, the following attributes are exported: |
| 41 | + |
| 42 | +- `id` - The ID of the offer. |
| 43 | + |
| 44 | +~> **Important:** Baremetal offers' IDs are [zoned](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{zone}/{id}`, e.g. `fr-par-1/11111111-1111-1111-1111-111111111111` |
| 45 | + |
| 46 | +- `bandwidth` - Available Bandwidth with the offer. |
| 47 | + |
| 48 | +- `commercial_range` - Commercial range of the offer. |
| 49 | + |
| 50 | +- `cpu` - A list of cpu specifications. (Structure is documented below.) |
| 51 | + |
| 52 | +- `disk` - A list of disk specifications. (Structure is documented below.) |
| 53 | + |
| 54 | +- `memory` - A list of memory specifications. (Structure is documented below.) |
| 55 | + |
| 56 | +- `stock` - Stock status for this offer. Possible values are: `empty`, `low` or `available`. |
| 57 | + |
| 58 | +The `cpu` block supports: |
| 59 | + |
| 60 | +- `name` - Name of the CPU. |
| 61 | + |
| 62 | +- `core_count`- Number of core on this CPU. |
| 63 | + |
| 64 | +- `frequency`- Frequency of the CPU in MHz. |
| 65 | + |
| 66 | +- `thread_count`- Number of thread on this CPU. |
| 67 | + |
| 68 | +The `disk` block supports: |
| 69 | + |
| 70 | +- `type` - Type of disk. |
| 71 | + |
| 72 | +- `capacity`- Capacity of the disk in GB. |
| 73 | + |
| 74 | +The `memory` block supports: |
| 75 | + |
| 76 | +- `type` - Type of memory. |
| 77 | + |
| 78 | +- `capacity`- Capacity of the memory in GB. |
| 79 | + |
| 80 | +- `frequency` - Frequency of the memory in MHz. |
| 81 | + |
| 82 | +- `is_ecc`- True if error-correcting code is available on this memory. |
0 commit comments