The cinder.api.contrib.consistencygroups Module

The consistencygroups api.

class ConsistencyGroupFromSrcTemplate

Bases: cinder.api.xmlutil.TemplateBuilder

construct()
class ConsistencyGroupTemplate

Bases: cinder.api.xmlutil.TemplateBuilder

construct()
class ConsistencyGroupsController

Bases: cinder.api.openstack.wsgi.Controller

The ConsistencyGroups API controller for the OpenStack API.

create(req, body)

Create a new consistency group.

create_from_src(req, body)

Create a new consistency group from a source.

The source can be a CG snapshot or a CG. Note that this does not require volume_types as the “create” API above.

delete(req, id, body)

Delete a consistency group.

detail(req)

Returns a detailed list of consistency groups.

index(req)

Returns a summary list of consistency groups.

show(req, id)

Return data about the given consistency group.

update(req, id, body)

Update the consistency group.

Expected format of the input parameter ‘body’: {

“consistencygroup”: {

“name”: “my_cg”, “description”: “My consistency group”, “add_volumes”: “volume-uuid-1,volume-uuid-2,...” “remove_volumes”: “volume-uuid-8,volume-uuid-9,...”

}

}

wsgi_actions = {}
wsgi_extensions = []
class ConsistencyGroupsTemplate

Bases: cinder.api.xmlutil.TemplateBuilder

construct()
class Consistencygroups(ext_mgr)

Bases: cinder.api.extensions.ExtensionDescriptor

consistency groups support.

alias = 'consistencygroups'
get_resources()
name = 'Consistencygroups'
namespace = 'http://docs.openstack.org/volume/ext/consistencygroups/api/v1'
updated = '2014-08-18T00:00:00+00:00'
class CreateDeserializer(metadata=None)

Bases: cinder.api.openstack.wsgi.MetadataXMLDeserializer

default(string)
class CreateFromSrcDeserializer(metadata=None)

Bases: cinder.api.openstack.wsgi.MetadataXMLDeserializer

default(string)
make_consistencygroup(elem)
make_consistencygroup_from_src(elem)

Previous topic

The cinder.api.contrib.cgsnapshots Module

Next topic

The cinder.api.contrib.extended_services Module

Project Source

This Page