|
| 1 | +--- |
| 2 | +subcategory: "Instances" |
| 3 | +page_title: "Scaleway: scaleway_instance_server_type" |
| 4 | +--- |
| 5 | + |
| 6 | +# scaleway_instance_server_type |
| 7 | + |
| 8 | +Gets information about a server type. |
| 9 | + |
| 10 | +## Example Usage |
| 11 | + |
| 12 | +```hcl |
| 13 | +data "scaleway_instance_server_type" "pro2-s" { |
| 14 | + name = "PRO2-S" |
| 15 | + zone = "nl-ams-1" |
| 16 | +} |
| 17 | +``` |
| 18 | + |
| 19 | +## Argument Reference |
| 20 | + |
| 21 | +To select the server type which information should be fetched, the following arguments can be used: |
| 22 | + |
| 23 | +- `name` - (Required) The name of the server type. |
| 24 | + Only one of `name` and `snapshot_id` should be specified. |
| 25 | + |
| 26 | +- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) of the server type (to check the availability of the server type for example). |
| 27 | + |
| 28 | +## Attributes Reference |
| 29 | + |
| 30 | +The following attributes will be available: |
| 31 | + |
| 32 | +- `arch` - The architecture of the server type. |
| 33 | + |
| 34 | +- `cpu` - The number of CPU cores of the server type. |
| 35 | + |
| 36 | +- `ram` - The amount of RAM of the server type (in bytes). |
| 37 | + |
| 38 | +- `gpu` - The number of GPUs of the server type. |
| 39 | + |
| 40 | +- `volumes` - The specifications of volumes allowed for the server type. |
| 41 | + |
| 42 | + -> The `volumes` block contains: |
| 43 | + - `min_size_total` - The minimum total size in bytes of volumes allowed on the server type. |
| 44 | + - `max_size_total` - The maximum total size in bytes of volumes allowed on the server type. |
| 45 | + - `min_size_per_local_volume` - The minimum size in bytes per local volume allowed on the server type. |
| 46 | + - `max_size_per_local_volume` - The maximum size in bytes per local volume allowed on the server type. |
| 47 | + - `scratch_storage_max_size` - The maximum size in bytes of the scratch volume allowed on the server type. |
| 48 | + - `block_storage` - Whether block storage is allowed on the server type. |
| 49 | + |
| 50 | +- `capabilities` - The specific capabilities of the server type. |
| 51 | + |
| 52 | + -> The `capabilities` block contains: |
| 53 | + - `boot_types` - The boot types allowed for the server type. |
| 54 | + - `max_file_systems` - The maximum number of file systems that can be attached on the server type. |
| 55 | + |
| 56 | +- `network` - The network specifications of the server type. |
| 57 | + |
| 58 | + -> The `network` block contains: |
| 59 | + - `internal_bandwidth` - The internal bandwidth of the server type (in bytes/second). |
| 60 | + - `public_bandwidth` - The public bandwidth of the server type (in bytes/second). |
| 61 | + - `block_bandwidth` - The block bandwidth of the server type (in bytes/second). |
| 62 | + |
| 63 | +- `hourly_price` - The hourly price of the server type (in euros). |
| 64 | + |
| 65 | +- `monthly_price` - The monthly price of the server type (in euros). |
| 66 | + |
| 67 | +- `end_of_service` - Whether the server type will soon reach End Of Service. |
| 68 | + |
| 69 | +- `availabilty` - Whether the server type is available in the zone. |
0 commit comments