fix(server): Handle boot bolume correctly (#749)

* fix(server): Handle boot bolume correctly

- Display id and delete_on_termination in datasource
- Handle id and delete_on_termination in resource

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* fixup

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
This commit is contained in:
Alexander Dahmen 2025-03-28 13:31:36 +01:00 committed by GitHub
parent f5f99d1709
commit 68859a3fad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 70 additions and 26 deletions

View file

@ -43,7 +43,4 @@ Server datasource schema. Must have a `region` specified in the provider configu
Read-Only:
- `delete_on_termination` (Boolean) Delete the volume during the termination of the server.
- `id` (String) The ID of the source, either image ID or volume ID
- `performance_class` (String) The performance class of the server.
- `size` (Number) The size of the boot volume in GB.
- `type` (String) The type of the source. Supported values are: `volume`, `image`.
- `id` (String) The ID of the boot volume

View file

@ -52,5 +52,3 @@ Read-Only:
- `name` (String)
- `retention_period` (Number)
- `volume_ids` (List of String)

View file

@ -58,5 +58,3 @@ Read-Only:
- `name` (String)
- `retention_period` (Number)
- `volume_ids` (List of String)

View file

@ -410,3 +410,7 @@ Optional:
- `delete_on_termination` (Boolean) Delete the volume during the termination of the server. Only allowed when `source_type` is `image`.
- `performance_class` (String) The performance class of the server.
- `size` (Number) The size of the boot volume in GB. Must be provided when `source_type` is `image`.
Read-Only:
- `id` (String) The ID of the boot volume

View file

@ -62,5 +62,3 @@ Required:
Optional:
- `volume_ids` (List of String)