View Encrypted VS Password

If the VS was created with password encryption enabled, you can use the following API call to view the password ( the request returns the decrypted password):

GET /virtual_machines/:id/with_decrypted_password.xml
GET /virtual_machines/:id/with_decrypted_password.json

XML Request example:

curl -X GET -u user:userpass http://onapp.test/virtual_machines/:id/with_decrypted_password.xml?initial_root_password_encryption_key=encryptionkey

JSON Request example:

curl -X GET -u user:userpass http://onapp.test/virtual_machines/:id/with_decrypted_password.json?initial_root_password_encryption_key=encryptionkey

Where:

id – the virtual server's ID