ClientΒΆ

class ceilometerclient.client.AuthPlugin(auth_system=None, **kwargs)

Bases: ceilometerclient.openstack.common.apiclient.auth.BaseAuthPlugin

opt_names = ['tenant_id', 'region_name', 'auth_token', 'service_type', 'endpoint_type', 'cacert', 'auth_url', 'insecure', 'cert_file', 'key_file', 'cert', 'key', 'tenant_name', 'project_name', 'project_id', 'user_domain_id', 'user_domain_name', 'password', 'username', 'endpoint']
sufficient_options()

Check if all required options are present.

Raises:AuthPluginOptionsMissing
token_and_endpoint(endpoint_type, service_type)
ceilometerclient.client.Client(version, *args, **kwargs)
ceilometerclient.client.get_auth_plugin(endpoint, **kwargs)
ceilometerclient.client.get_client(version, **kwargs)
Get an authtenticated client, based on the credentials
in the keyword args.
Parameters:
  • api_version – the API version to use (‘1’ or ‘2’)
  • kwargs

    keyword args containing credentials, either:

    • os_auth_token: pre-existing token to re-use
    • ceilometer_url: ceilometer API endpoint

    or: * os_username: name of user * os_password: user’s password * os_user_id: user’s id * os_user_domain_id: the domain id of the user * os_user_domain_name: the domain name of the user * os_project_id: the user project id * os_tenant_id: V2 alternative to os_project_id * os_project_name: the user project name * os_tenant_name: V2 alternative to os_project_name * os_project_domain_name: domain name for the user project * os_project_domain_id: domain id for the user project * os_auth_url: endpoint to authenticate against * os_cert|os_cacert: path of CA TLS certificate * os_key: SSL private key * insecure: allow insecure SSL (no cert verification)

Previous topic

Client Reference

Next topic

Exc

This Page