watcherclient.client
Module¶watcherclient.client.
Client
(version, *args, **kwargs)[source]¶Initialize client object based on given version.
HOW-TO: The simplest way to create a client instance is initialization with your credentials:
>>> from watcherclient import client
>>> watcher = client.Client(VERSION, USERNAME, PASSWORD,
... PROJECT_ID, AUTH_URL)
Here VERSION
can be a string or
watcherclient.api_versions.APIVersion
obj. If you prefer string value,
you can use 1
or 1.X
(where X is a microversion).
Alternatively, you can create a client instance using the keystoneauth session API. See “The watcherclient Python API” page at python-watcherclient’s doc.
watcherclient.client.
get_client
(api_version, os_auth_token=None, watcher_url=None, os_username=None, os_password=None, os_auth_url=None, os_project_id=None, os_project_name=None, os_tenant_id=None, os_tenant_name=None, os_region_name=None, os_user_domain_id=None, os_user_domain_name=None, os_project_domain_id=None, os_project_domain_name=None, os_service_type=None, os_endpoint_type=None, insecure=None, timeout=None, os_cacert=None, ca_file=None, os_cert=None, cert_file=None, os_key=None, key_file=None, os_watcher_api_version=None, max_retries=None, retry_interval=None, session=None, os_endpoint_override=None, **ignored_kwargs)[source]¶Get an authenticated client, based on the credentials.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.