2
=================================================================
5
This extension enables you to create or import a keypair on a virtual instance. If you send the name of the instance to the API, you get a key and a private_key and fingerprint returned. You can also send a public_key to add an existing ssh key and also list the keypairs in use on instances.
7
To obtain current information the extensions available to you, issue an EXTENSION query on the OpenStack system where it is installed, such as http://mycloud.com/v1.1/tenant/extensions.
16
http://docs.openstack.org/ext/keypairs/api/v1.1
22
Jesse Andrews <anotherjesse@gmail.com>
40
This extension enables keypair listing, creation, or import into an instance through a REST API.
42
Sample Query Responses
43
~~~~~~~~~~~~~~~~~~~~~~
45
As shown below, responses to an EXTENSION query in XML or JSON provide basic information about the extension.
47
Extension Query Response: XML::
51
.. todo:: Provide example of extension query XML response.
53
Extension Query Response: JSON::
55
{"extensions": [{"updated": "2011-08-08T00:00:00+00:00", "name": "Keypairs", "links": [], "namespace": "http://docs.openstack.org/ext/keypairs/api/v1.1", "alias": "os-keypairs", "description": "Keypair Support"}]}
58
Document Change History
59
~~~~~~~~~~~~~~~~~~~~~~~
61
============= =====================================
62
Revision Date Summary of Changes
63
2011-09-16 Initial draft
64
2012-03-30 Reformat of content
65
============= =====================================
70
This extension to the Compute API allows keypair support so that you can create or import keypairs to secure your running instances. You can also list keypairs per user.
72
This support is provided by the addition of new actions.
76
When launching a new server, you can specify an already existing keypair with::
78
POST /v1.1/tenant_id/os_keypairs/keypair
80
To lists the keypairs on all running instances, use::
82
GET /v1.1/tenant_id/os_keypairs
100
Changes to the Cloud Servers Specification
101
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103
This section lists the specific changes to the Compute API, namely adding a new section to the 4.3 Server Actions section.