Manage access to the clients, including authenticating when needed.
Bases: object
Descriptor class for caching created client handles.
Bases: object
Manages access to API clients, including authentication.
Dereference will trigger an auth if it hasn’t already
Return the endpoint URL for the service type.
Check if a service type is in the current Service Catalog
Set up authentication
This is deferred until authentication is actually attempted because it gets in the way of things that do not require auth.
Exception definitions.
Bases: Exception
Bases: osc_lib.exceptions.ClientException
HTTP 400 - Bad request: you sent some malformed data.
Bases: Exception
The base exception class for all exceptions this library raises.
Bases: Exception
Bases: osc_lib.exceptions.ClientException
HTTP 409 - Conflict
Bases: Exception
Could not find Service or Region in Service Catalog.
Bases: osc_lib.exceptions.ClientException
HTTP 403 - Forbidden: not authorized to access to this resource.
Bases: osc_lib.exceptions.ClientException
HTTP 501 - Not Implemented: server does not support this operation.
Bases: Exception
An argument value is not valid: wrong type, out of range, etc
Bases: Exception
This does not support looking up endpoints from an existing token.
Bases: osc_lib.exceptions.ClientException
HTTP 404 - Not found
Bases: osc_lib.exceptions.ClientException
HTTP 413 - Over limit: reached the API limits for this time period.
Bases: Exception
A plugin threw an AttributeError while being lazily loaded.
Bases: osc_lib.exceptions.ClientException
HTTP 401 - Unauthorized: bad credentials.
Bases: Exception
The user is trying to use an unsupported version of the API
Application logging
Command-line interface to the OpenStack APIs
Bases: cliff.app.App
Return an argparse option parser for this application.
Subclasses may override this method to extend the parser with more global options.
description (str) – full description of the application
version (str) – version number for the application
argparse_kwargs – extra keyword argument passed to the ArgumentParser constructor
Hook run after a command is done to shutdown the app.
cmd (cliff.command.Command) – command processor being invoked
result (int) – return value of cmd
err (Exception) – exception or None
Configure logging for the app.
Global app init bits:
set up API versions
validate authentication info
authenticate against Identity if requested
Set up auth and API versions
Equivalent to the main program for the application.
argv (list of str) – input arguments and options
Prompt user for a password
Prompt for a password if stdin is a tty.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.