Add api extension to get and reset password
Password is stored in system_instance_metadata as four items with the keys 'password_0' through 'password_3'. The extension adds a resource endpoint with two methods: GET v2/servers/<uuid>/os-server-password # get_password DELETE v2/servers/<uuid>/os-server-password # reset_password get_password retuns: JSON: {"password": "xxx"} XML: <?xml version='1.0' encoding='UTF-8'?><password>xxx</password> Note that this is intended to be an encrypted password set by the guest. Includes api tests for json and xml. Also includes api samples. Part of blueprint get-password Change-Id: I6c03f9c3bc8a2c70403bbb3e57917ab9522d75bd
This commit is contained in:
@@ -352,6 +352,14 @@
|
||||
"namespace": "http://docs.openstack.org/compute/ext/server-diagnostics/api/v1.1",
|
||||
"updated": "2011-12-21T00:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"alias": "os-server-password",
|
||||
"description": "Server password support",
|
||||
"links": [],
|
||||
"name": "ServerPassword",
|
||||
"namespace": "http://docs.openstack.org/compute/ext/server-password/api/v2",
|
||||
"updated": "2012-11-29T00:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"alias": "os-server-start-stop",
|
||||
"description": "Start/Stop instance compute API support",
|
||||
|
@@ -146,6 +146,9 @@
|
||||
<extension alias="os-server-diagnostics" updated="2011-12-21T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/server-diagnostics/api/v1.1" name="ServerDiagnostics">
|
||||
<description>Allow Admins to view server diagnostics through server action</description>
|
||||
</extension>
|
||||
<extension alias="os-server-password" updated="2012-11-29T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/server-password/api/v2" name="ServerPassword">
|
||||
<description>Server password support</description>
|
||||
</extension>
|
||||
<extension alias="os-server-start-stop" updated="2012-01-23T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/servers/api/v1.1" name="ServerStartStop">
|
||||
<description>Start/Stop instance compute API support</description>
|
||||
</extension>
|
||||
|
Reference in New Issue
Block a user