equinixmetal-archive / packngo

[Deprecated] A Golang client for the Equinix Metal API. (Packet is now Equinix Metal)
https://deploy.equinix.com/labs/equinix-sdk-go/
Other
78 stars 53 forks source link

missing operating_system option in DeviceReinstallFields #343

Closed ocobles closed 2 years ago

ocobles commented 2 years ago

Related to https://github.com/equinix/terraform-provider-equinix/pull/244

The options currently available in the sdk are: type (reinstall), preserve_data, and deprovision_fast

To change the operating system and not just reinstall the previous one I found operating_system must be specified (UI browser console):

{
 force_delete: false
 operating_system: "debian_10"
 type: "reinstall"
}