Report this

What is the reason for this report?

Can I get my root password through the Digital Ocean API instead of email?

Posted on May 18, 2014

I’d like to create, manage and delete droplets - all from my Java app and without human intervention. Seems possible except for the step requiring the root access: is there a way to get the credentials programmatically, not by email?



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.

Thanks!

Please add in your API this option - email <br> <br>Sample: <br> <br>New Droplet <br>GET https://api.digitalocean.com/v1/droplets/new?client_id=[client_id]&api_key=[api_key]&name=[droplet_name]&size_id=[size_id]&image_id=[image_id]&region_id=[region_id]&email=[my_email] <br> <br>my_email - email address <br> <br>On email send root password <br> <br> <br> <br>This very good!

You can setup ssh keys in your droplets. No email will be sent to you with root password and can login with the key password. <br>Windows: <br>https://www.digitalocean.com/community/articles/how-to-use-ssh-keys-with-putty-on-digitalocean-droplets-windows-users <br> <br>Linux: <br>https://www.digitalocean.com/community/articles/how-to-use-ssh-keys-with-digitalocean-droplets

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.