The cinder.group.api Module

Handles all requests relating to groups.

class API(db_driver=None)

Bases: cinder.db.base.Base

API for interacting with the volume manager for groups.

create(context, name, description, group_type, volume_types, availability_zone=None)
delete(context, target_obj, *args, **kwargs)
get(context, group_id)
get_all(context, filters=None, marker=None, limit=None, offset=None, sort_keys=None, sort_dirs=None)
update(context, group, name, description, add_volumes, remove_volumes)

Update group.

update_quota(context, group, num, project_id=None)
check_policy(context, action, target_obj=None)
wrap_check_policy(func)

Check policy corresponding to the wrapped methods prior to execution.

This decorator requires the first 3 args of the wrapped function to be (self, context, group)

Previous topic

The cinder.flow_utils Module

Next topic

The cinder.hacking.checks Module

This Page