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)
create_from_src(context, name, description=None, group_snapshot_id=None, source_group_id=None)
create_group_snapshot(context, group, name, description)
delete(context, target_obj, *args, **kwargs)
delete_group_snapshot(context, group_snapshot, force=False)
get(context, group_id)
get_all(context, filters=None, marker=None, limit=None, offset=None, sort_keys=None, sort_dirs=None)
get_all_group_snapshots(context, search_opts=None)
get_group_snapshot(context, group_snapshot_id)
update(context, group, name, description, add_volumes, remove_volumes)

Update group.

update_group_snapshot(context, group_snapshot, fields)
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