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
ACTIVEorSHUTOFFstate.
Request
Responses
- 200
- 400
- 401
- 404
- 405
- 500
Volumes have been successfully detached from the virtual machine.
Bad Request
Common cause: error_reason: bad_request.
Unauthorized
Not Found
Method Not Allowed
Internal Server Error
Was this page helpful?