The nova.api.openstack.compute.contrib.volumes Module

The volumes extension.

class CommonDeserializer(metadata=None)

Bases: nova.api.openstack.wsgi.MetadataXMLDeserializer

Common deserializer to handle xml-formatted volume requests.

Handles standard volume attributes as well as the optional metadata attribute

metadata_deserializer = <nova.api.openstack.common.MetadataXMLDeserializer object at 0x797f850>
class CreateDeserializer(metadata=None)

Bases: nova.api.openstack.compute.contrib.volumes.CommonDeserializer

Deserializer to handle xml-formatted create volume requests.

Handles standard volume attributes as well as the optional metadata attribute

default(string)

Deserialize an xml-formatted volume create request.

class SnapshotController

Bases: nova.api.openstack.wsgi.Controller

The Volumes API controller for the OpenStack API.

create(req, body)

Creates a new snapshot.

delete(req, id)

Delete a snapshot.

detail(req)

Returns a detailed list of snapshots.

index(req)

Returns a summary list of snapshots.

show(req, id)

Return data about the given snapshot.

wsgi_actions = {}
wsgi_extensions = []
class SnapshotTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class SnapshotsTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class VolumeAttachmentController

Bases: nova.api.openstack.wsgi.Controller

The volume attachment API controller for the OpenStack API.

A child resource of the server. Note that we use the volume id as the ID of the attachment (though this is not guaranteed externally)

create(req, server_id, body)

Attach a volume to an instance.

delete(req, server_id, id)

Detach a volume from an instance.

index(req, server_id)

Returns the list of volume attachments for a given instance.

show(req, server_id, id)

Return data about the given volume attachment.

update(req, server_id, id, body)

Update a volume attachment. We don’t currently support this.

wsgi_actions = {}
wsgi_extensions = []
class VolumeAttachmentTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class VolumeAttachmentsTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class VolumeController

Bases: nova.api.openstack.wsgi.Controller

The Volumes API controller for the OpenStack API.

create(req, body)

Creates a new volume.

delete(req, id)

Delete a volume.

detail(req)

Returns a detailed list of volumes.

index(req)

Returns a summary list of volumes.

show(req, id)

Return data about the given volume.

wsgi_actions = {}
wsgi_extensions = []
class VolumeTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class Volumes(ext_mgr)

Bases: nova.api.openstack.extensions.ExtensionDescriptor

Volumes support.

alias = 'os-volumes'
get_resources()
name = 'Volumes'
namespace = 'http://docs.openstack.org/compute/ext/volumes/api/v1.1'
updated = '2011-03-25T00:00:00+00:00'
class VolumesTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
make_attachment(elem)
make_snapshot(elem)
make_volume(elem)

Previous topic

The nova.api.openstack.compute.contrib.virtual_interfaces Module

Next topic

The nova.api.openstack.compute.extensions Module

This Page