summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-11-30 15:49:17 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2013-01-07 15:35:45 -0800
commit285994be59c88afb80988f8868883403ff53d142 (patch)
tree1f30d6d4c9394bf774887d5bbd9a7d25f905da59 /nova/utils.py
parentaa2dea35c6e1cfc913e85834b9b98eda4155bd06 (diff)
downloadnova-285994be59c88afb80988f8868883403ff53d142.tar.gz
nova-285994be59c88afb80988f8868883403ff53d142.tar.xz
nova-285994be59c88afb80988f8868883403ff53d142.zip
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
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions