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.contrib.volumes Module

The volumes extension.

class nova.api.openstack.contrib.volumes.BootFromVolumeController

Bases: nova.api.openstack.servers.ControllerV11

The boot from volume API controller for the Openstack API.

create(req, body)

Creates a new server for a given user

class nova.api.openstack.contrib.volumes.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 nova.api.openstack.contrib.volumes.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 nova.api.openstack.contrib.volumes.Volumes

Bases: nova.api.openstack.extensions.ExtensionDescriptor

get_alias()
get_description()
get_name()
get_namespace()
get_resources()
get_updated()