The novaclient.v1_1.client Module

class novaclient.v1_1.client.Client(username, api_key, project_id, auth_url=None, insecure=False, timeout=None, proxy_tenant_id=None, proxy_token=None, region_name=None, endpoint_type='publicURL', extensions=None, service_type='compute', service_name=None, volume_service_name=None, timings=False, bypass_url=None, no_cache=False, http_log_debug=False, auth_system='keystone')

Bases: object

Top-level object to access the OpenStack Compute API.

Create an instance with your creds:

>>> client = Client(USERNAME, PASSWORD, PROJECT_ID, AUTH_URL)

Then call methods on its managers:

>>> client.servers.list()
...
>>> client.flavors.list()
...
authenticate()

Authenticate against the server.

Normally this is called automatically when you first access the API, but you can call this method to force authentication right now.

Returns on success; raises exceptions.Unauthorized if the credentials are wrong.

get_timings()
reset_timings()
set_management_url(url)

This Page