glance.context.
RequestContext
(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
owner
¶Return the owner to correlate with an image.
glance.context.
get_ksa_client
(context)[source]¶Returns a keystoneauth Adapter using token from context.
This will return a simple keystoneauth adapter that can be used to make requests against a remote service using the token provided (and already authenticated) from the user and stored in a RequestContext.
context – User request context
keystoneauth1 Adapter object
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.