openstack.compute.v2.keypair

The Keypair Class

The Keypair class inherits from Resource.

class openstack.compute.v2.keypair.Keypair(attrs=None, loaded=False)
create(session)

Create a new keypair from this instance.

This is needed because the name is the id, but we can’t create one with a PUT. That and we need the private_key out of the response.

classmethod find(session, name_or_id, path_args=None)

Find a keypair by name because list filtering does not work.

Table Of Contents

Previous topic

openstack.compute.v2.image

Next topic

openstack.compute.v2.limits_absolute

This Page