The heat_keystoneclient_v2.client Module
Client Library for Keystone Resources.
-
class heat_keystoneclient_v2.client.KeystoneClientV2(context)[source]
Bases: object
Wrap keystone client so we can encapsulate logic used in resources.
Note this is intended to be initialized from a resource on a per-session
basis, so the session context is passed in on initialization
Also note that a copy of this is created every resource as self.keystone()
via the code in engine/client.py, so there should not be any need to
directly instantiate instances of this class inside resources themselves.
-
KeystoneClientV2.auth_token[source]
-
KeystoneClientV2.client[source]
-
KeystoneClientV2.create_ec2_keypair(user_id=None)[source]
-
KeystoneClientV2.create_stack_domain_project(project_id)[source]
Use the tenant ID as domain project.
-
KeystoneClientV2.create_stack_domain_user(username, project_id, password=None)[source]
-
KeystoneClientV2.create_stack_user(username, password='')[source]
Create a user defined as part of a stack, either via template
or created internally by a resource. This user will be added to
the heat_stack_user_role as defined in the config
Returns the keystone ID of the resulting user
-
KeystoneClientV2.create_trust_context()[source]
-
KeystoneClientV2.delete_ec2_keypair(user_id, accesskey)[source]
-
KeystoneClientV2.delete_stack_domain_project(project_id)[source]
Pass through method since no project was created.
-
KeystoneClientV2.delete_stack_domain_user(user_id, project_id)[source]
-
KeystoneClientV2.delete_stack_user(user_id)[source]
-
KeystoneClientV2.delete_trust(trust_id)[source]
-
KeystoneClientV2.disable_stack_user(user_id)[source]
-
KeystoneClientV2.enable_stack_user(user_id)[source]
-
KeystoneClientV2.get_ec2_keypair(access, user_id=None)[source]
-
KeystoneClientV2.url_for(**kwargs)[source]