Keypairs
Keypair interface (1.1 extension).
- 
class novaclient.v2.keypairs.Keypair(manager, info, loaded=False, resp=None)
- Bases: novaclient.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 objectinfo – dictionary representing resource attributesloaded – prevent lazy-loading if set to Trueresp – Response or list of Response objects | 
|---|
 
 - 
- 
delete()
- Delete this keypair. - 
| Returns: | An instance of novaclient.base.TupleWithMeta | 
|---|
 
 
 - 
- 
id
 
- 
class novaclient.v2.keypairs.KeypairManager(api)
- Bases: novaclient.base.ManagerWithFind - 
- 
create(obj, *args, **kwargs)
- Create a keypair - 
| Parameters: | 
name – name for the keypair to createpublic_key – existing public key to importkey_type – keypair type to createuser_id – user to add. | 
|---|
 
 
 - 
- 
delete(obj, *args, **kwargs)
- Delete a keypair - 
| Parameters: | 
key – The Keypair (or its ID) to delete.user_id – Id of key-pair owner (Admin only). | 
|---|
 | Returns: | An instance of novaclient.base.TupleWithMeta | 
|---|
 
 
 - 
- 
get(obj, *args, **kwargs)
- Get a keypair. - 
| Parameters: | 
keypair – The ID of the keypair to get.user_id – Id of key-pair owner (Admin only). | 
|---|
 | Return type: | Keypair | 
|---|
 
 
 - 
- 
is_alphanum_id_allowed = True
 - 
- 
keypair_prefix = 'os-keypairs'
 - 
- 
list(obj, *args, **kwargs)
- Get a list of keypairs. - 
| Parameters: | user_id – Id of key-pairs owner (Admin only). | 
|---|
 
 
 - 
- 
resource_class
- alias of Keypair