The cinder.api.v3.groups Module

The groups controller.

class GroupsController

Bases: cinder.api.openstack.wsgi.Controller

The groups API controller for the OpenStack API.

create(req, body)

Create a new group.

create_from_src(req, body)

Create a new group from a source.

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

delete_group(req, id, body)
detail(req)

Returns a detailed list of groups.

index(req)

Returns a summary list of groups.

show(req, id)

Return data about the given group.

update(req, id, body)

Update the group.

Expected format of the input parameter ‘body’:

{
    "group":
    {
        "name": "my_group",
        "description": "My group",
        "add_volumes": "volume-uuid-1,volume-uuid-2,...",
        "remove_volumes": "volume-uuid-8,volume-uuid-9,..."
    }
}
versioned_methods = {'index': [<cinder.api.openstack.versioned_method.VersionedMethod object at 0x7f4f9fbcb550>], 'show': [<cinder.api.openstack.versioned_method.VersionedMethod object at 0x7f4f9fbcb490>], 'delete_group': [<cinder.api.openstack.versioned_method.VersionedMethod object at 0x7f4f9fbcb690>], 'create': [<cinder.api.openstack.versioned_method.VersionedMethod object at 0x7f4f9fbcb290>], 'detail': [<cinder.api.openstack.versioned_method.VersionedMethod object at 0x7f4f9fbcb2d0>], 'update': [<cinder.api.openstack.versioned_method.VersionedMethod object at 0x7f4f9fbcb990>], 'create_from_src': [<cinder.api.openstack.versioned_method.VersionedMethod object at 0x7f4f9fbcbb10>]}
wsgi_actions = {'create-from-src': 'create_from_src', 'delete': 'delete_group'}
wsgi_extensions = []
create_resource()

Previous topic

The cinder.api.v3.group_types Module

Next topic

The cinder.api.v3.messages Module

Project Source

This Page