Previous topic

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

Next topic

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

This Page

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

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

The volumes extension.

class BootFromVolumeController(**kwargs)

Bases: nova.api.openstack.compute.servers.Controller

The boot from volume API controller for the OpenStack API.

wsgi_actions = {}
wsgi_extensions = []
class SnapshotController

Bases: object

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.

class SnapshotTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class SnapshotsTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class VolumeAttachmentController

Bases: object

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.

class VolumeAttachmentTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class VolumeAttachmentsTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class VolumeController

Bases: object

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.

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)