Session¶
The Session
overrides
Session
to provide end point filtering and
mapping KSA exceptions to SDK exceptions.
Session Object¶
-
class
openstack.session.
Session
(profile, user_agent=None, **kwargs)¶ Create a new Keystone auth session with a profile.
Parameters: - profile (
Profile
) – If the user has any special profiles such as the service name, region, version or interface, they may be provided in the profile object. If no profiles are provided, the services that appear first in the service catalog will be used. - user_agent – A User-Agent header string to use for the
request. If not provided, a default of
DEFAULT_USER_AGENT
is used, which contains the openstacksdk version When a non-None value is passed, it will be prepended to the default.
-
get_endpoint
(auth=None, interface=None, **kwargs)¶ Override get endpoint to automate endpoint filtering
- profile (