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
delete()
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 create
  • public_key – existing public key to import
  • key_type – keypair type to create
delete(key)

Delete a keypair

Parameters:key – The Keypair (or its ID) to delete.
get(keypair)

Get a keypair.

Parameters:keypair – The ID of the keypair to get.
Return type:Keypair
is_alphanum_id_allowed = True
keypair_prefix = 'os-keypairs'
list()

Get a list of keypairs.

resource_class

alias of Keypair

Previous topic

Hypervisors

Next topic

Limits

Project Source

This Page