The glance.context Module

The glance.context Module

class glance.context.RequestContext(owner_is_tenant=True, service_catalog=None, policy_enforcer=None, **kwargs)[source]

Bases: oslo_context.context.RequestContext

Stores information about the security context.

Stores how the user accesses the system, as well as additional request information.

can_see_deleted

Admins can see deleted by default

classmethod from_dict(values)[source]
owner

Return the owner to correlate with an image.

to_dict()[source]
to_policy_values()[source]
glance.context.get_admin_context(show_deleted=False)[source]

Create an administrator context.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.