Hibernate virtual machine
GET/core/virtual-machines/:vm_id/hibernate
Initiates the hibernation process for a virtual machine. It saves the current state of the VM to disk, deallocates its resources, and powers it off. Specify the target virtual machine using its ID in the path. Optionally, you can use the retain_ip query parameter to preserve the VM's public IP address during hibernation. For more information about VM hibernation, see Hibernation.
State requirement: This operation requires the VM to be in the
ACTIVEstate and the flavor to support hibernation. Some flavors (for example,n1-cpu-small) do not.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Hibernation request for the virtual machine was successful.
Bad Request
Unauthorized
Not Found
Internal Server Error
Was this page helpful?