Report this

What is the reason for this report?

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

Posted on July 15, 2013
him

By him

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?



This textbox defaults to using Markdown to format your 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. mailA@mail.com, MailB@mail.com

What about this : https://www.digitalocean.com/api_access <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>https://api.digitalocean.com/droplets/[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]

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.