Previous topic

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

Next topic

The cinder.api.openstack.wsgi Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.api.openstack.volume.volumes Module

The volumes api.

class CommonDeserializer(metadata=None)

Bases: cinder.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 = <cinder.api.openstack.common.MetadataXMLDeserializer object at 0xa67ecec>
class CreateDeserializer(metadata=None)

Bases: cinder.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: cinder.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: cinder.api.openstack.xmlutil.TemplateBuilder

construct()
class VolumesTemplate

Bases: cinder.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.