The Keypair
class inherits from Resource
.
openstack.compute.v2.keypair.
Keypair
(attrs=None, loaded=False)¶fingerprint
= None¶The short fingerprint associated with the public_key
for
this keypair.
name
= None¶A name identifying the keypair
private_key
= None¶The private key for the keypair
public_key
= None¶The SSH public key that is paired with the server.
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.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.