Handles all requests relating to consistency groups.
-
class API(db_driver=None)
Bases: cinder.db.base.Base
API for interacting with the volume manager for consistency groups.
-
create(context, name, description, cg_volume_types, availability_zone=None)
-
create_cgsnapshot(context, group, name, description)
-
create_from_src(context, name, description=None, cgsnapshot_id=None, source_cgid=None)
-
delete(context, target_obj, *args, **kwargs)
-
delete_cgsnapshot(context, cgsnapshot, 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_cgsnapshots(context, search_opts=None)
-
get_cgsnapshot(context, cgsnapshot_id)
-
update(context, group, name, description, add_volumes, remove_volumes)
Update consistency group.
-
update_cgsnapshot(context, cgsnapshot, 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, consistencygroup)