Closed hegerdes closed 11 months ago
Thanks for raising this. We'll take a look at it.
Support for modifying the power state for servers through the vm_state
field should be available in the next release.
Nice to hear! Are all three states (running, stopped, reset) supported?
also need this feature. foremost the reboot (reset) state. Is the reset state also supported in the new provider version ?
Reboot is not supported yet. It is harder to implement in terraform due to how the concept of state works. This is because reboot is a transient state so we can't really measure if a reboot was done or not.
I would suggest using ionosctl maybe to reboot a server: ionosctl server reboot --datacenter-id DATACENTER_ID --server-id SERVER_ID
Current Provider Version
Use-cases
It would be awesome to support the
ionos_server_state
prob to stop severs via terraform. The ansibe-modules support astate
prob to set for each server. As far as I know there are the following states in the DCD:Attempted Solutions
Currently this is not supported in this provider. You have to extract the server id form the state (or output the ids to a file) and make a extra api request in an arbitrary language
Proposal
Support the state prob in the
ionoscloud_server
References