Keypairs
Keypair interface (1.1 extension).
-
class novaclient.v2.keypairs.Keypair(manager, info, loaded=False)
Bases: novaclient.openstack.common.apiclient.base.Resource
A keypair is a ssh key that can be injected into a server on launch.
Populate and bind to a manager.
Parameters: |
- manager – BaseManager object
- info – dictionary representing resource attributes
- loaded – prevent lazy-loading if set to True
|
-
Keypair.delete()
-
Keypair.id
-
class novaclient.v2.keypairs.KeypairManager(api)
Bases: novaclient.base.ManagerWithFind
-
KeypairManager.create(name, public_key=None)
Create a keypair
Parameters: |
- name – name for the keypair to create
- public_key – existing public key to import
|
-
KeypairManager.delete(key)
Delete a keypair
Parameters: | key – The Keypair (or its ID) to delete. |
-
KeypairManager.get(keypair)
Get a keypair.
Parameters: | keypair – The ID of the keypair to get. |
Return type: | Keypair |
-
KeypairManager.is_alphanum_id_allowed = True
-
KeypairManager.keypair_prefix = 'os-keypairs'
-
KeypairManager.list()
Get a list of keypairs.
-
KeypairManager.resource_class
alias of Keypair