KeypairsΒΆ

Keypair interface (1.1 extension).

class novaclient.v1_1.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.

Keypair.delete()
Keypair.id
class novaclient.v1_1.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.keypair_prefix = 'os-keypairs'
KeypairManager.list()

Get a list of keypairs.

KeypairManager.resource_class

alias of Keypair

Previous topic

Hypervisors

Next topic

Limits

This Page