How can I retrieve the root password on droplet create from the API?

  • Posted July 15, 2013

I’m not able to spawn a VPS and tell the user the root password via the API, or just use it myself in the script. Is this going to be implemented, and how have people worked around this?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want your password has been sent to the specified email.,

You will have to use SSH keys if you want to do it with the API only.

What about this : <br> <br>Im no expert :( <br> <br>[code]Reset Root Password <br>This method will reset the root password for a droplet. Please be aware that this will reboot the droplet to allow resetting the password. <br> <br>Request URL: <br>[droplet_id]/password_reset/?client_id=[your_client_id]&api_key=[your_api_key] <br>Parameters <br>droplet_id Required, Integer, this is the id of your droplet that you want to reset password on <br>Sample Response <br>{ <br> “status”: “OK”, <br> “event_id”: 7501 <br>}[/code]