The cinder.context Module

RequestContext: context for requests that persist through all of cinder.

class RequestContext(user_id, project_id, is_admin=None, read_deleted='no', roles=None, project_name=None, remote_address=None, timestamp=None, request_id=None, auth_token=None, overwrite=True, quota_class=None, service_catalog=None, domain=None, user_domain=None, project_domain=None, **kwargs)

Bases: object

Security context and request information.

Represents the user taking a given action within the system.

deepcopy()
elevated(read_deleted=None, overwrite=False)

Return a version of this context with admin flag set.

classmethod from_dict(values)
read_deleted
tenant
to_dict()
update_store()
user
user_idt_format = '{user} {tenant} {domain} {user_domain} {p_domain}'
generate_request_id()
get_admin_context(read_deleted='no')

Previous topic

The cinder.compute.nova Module

Next topic

The cinder.db.api Module

This Page