The nova.api.openstack.volume.volumes Module

The volumes api.

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 0xcaa496c>
class CreateDeserializer(metadata=None)

Bases: nova.api.openstack.volume.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 VolumeController(ext_mgr)

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 VolumesTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
create_resource(ext_mgr)
make_attachment(elem)
make_volume(elem)
remove_invalid_options(context, search_options, allowed_search_options)

Remove search options that are not valid for non-admin API/context.

Previous topic

The nova.api.openstack.volume.views.versions Module

Next topic

The nova.api.openstack.wsgi Module

This Page