Volume interface
Bases: Resource
A volume is an extra block level storage to the OpenStack instances.
Populate and bind to a manager.
manager – BaseManager object
info – dictionary representing resource attributes
loaded – prevent lazy-loading if set to True
resp – Response or list of Response objects
Bases: Manager
Manage Volume
resources. This is really about volume attachments.
Attach a volume identified by the volume ID to the given server ID
server_id – The ID of the server.
volume_id – The ID of the volume to attach.
device – The device name (optional).
tag – The tag (optional).
delete_on_termination – Marked whether to delete the attached volume when the server is deleted (optional).
Detach a volume identified by the volume ID from the given server
server_id – The ID of the server
volume_id – The ID of the volume to attach
An instance of novaclient.base.TupleWithMeta
Get the volume identified by the volume ID, that is attached to the given server ID
server_id – The ID of the server
volume_id – The ID of the volume to attach
Get a list of all the attached volumes for the given server ID
server_id – The ID of the server
list of Volume
Swaps the existing volume attachment to point to a new volume.
Takes a server, a source (attached) volume and a destination volume and performs a hypervisor assisted data migration from src to dest volume, detaches the original (source) volume and attaches the new destination volume. Note that not all backing hypervisor drivers support this operation and it may be disabled via policy.
server_id – The ID of the server
source_volume – The ID of the src volume
dest_volume – The ID of the destination volume
delete_on_termination – Marked whether to delete the attached volume when the server is deleted (optional).
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.