Skip to main content

Detach volumes from virtual machine

POST 

/core/virtual-machines/:vm_id/detach-volumes

Detaches one or more volumes currently attached to a virtual machine. Include the virtual machine ID in the path and the volume IDs in the request body to detach the specified volumes from the designated virtual machine.

State requirement: This operation requires the VM to be in the ACTIVE or SHUTOFF state.

Request

Responses

Volumes have been successfully detached from the virtual machine.