This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.api.openstack.contrib.keypairs Module

Keypair management extension

class nova.api.openstack.contrib.keypairs.KeypairController

Bases: object

Keypair API controller for the Openstack API

create(req, body)

Create or import keypair.

Sending name will generate a key and return private_key and fingerprint.

You can send a public_key to add an existing ssh key

params: keypair object with:
name (required) - string public_key (optional) - string
delete(req, id)

Delete a keypair with a given name

index(req)

List of keypairs for a user

class nova.api.openstack.contrib.keypairs.Keypairs

Bases: nova.api.openstack.extensions.ExtensionDescriptor

get_alias()
get_description()
get_name()
get_namespace()
get_resources()
get_updated()