novaclient.client
Module¶OpenStack Client interface. Handles the REST calls and responses.
novaclient.client.
Client
(version, username=None, password=None, project_id=None, auth_url=None, **kwargs)¶Initialize client object based on given version.
HOW-TO: The simplest way to create a client instance is initialization with your credentials:
>>> from novaclient import client
>>> nova = client.Client(VERSION, USERNAME, PASSWORD,
... PROJECT_ID, AUTH_URL)
Here VERSION
can be a string or
novaclient.api_versions.APIVersion
obj. If you prefer string value,
you can use 1.1
(deprecated now), 2
or 2.X
(where X is a microversion).
Alternatively, you can create a client instance using the keystoneauth session API. See “The novaclient Python API” page at python-novaclient’s doc.
novaclient.client.
SessionClient
(*args, **kwargs)¶Bases: keystoneauth1.adapter.LegacyJsonAdapter
client_name
= 'python-novaclient'¶client_version
= '10.1.1'¶get_timings
()¶management_url
¶request
(url, method, **kwargs)¶reset_timings
()¶novaclient.client.
discover_extensions
(*args, **kwargs)¶Returns the list of extensions, which can be discovered by python path and by entry-point ‘novaclient.extension’.
novaclient.client.
get_client_class
(version)¶Returns Client class based on given version.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.