ServerMania logo

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).

To view the encrypted password, use the following request:

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://test/virtual_machines/12/with_decrypted_password.xml?initial_root_password_encryption_key=encryptionkey

JSON Request Example:

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

Where:

id – the virtual server's ID