Skip to main content

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 ACTIVE state and the flavor to support hibernation. Some flavors (for example, n1-cpu-small) do not.

Request

Responses

Hibernation request for the virtual machine was successful.