Report this

What is the reason for this report?

how to set own desired root for droplet via api ?

Posted on August 16, 2013

i have searched http://api.digitalocean.com couldn’t find it.



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.

how to set own desired root password for droplet via api ?

We do not support this as it is not secure. You should use SSH keys instead: <br> <br>https://www.digitalocean.com/community/articles/how-to-use-ssh-keys-with-digitalocean-droplets <br> <br><strong>https://api.digitalocean.com/droplets/new</strong> <br><pre>https://api.digitalocean.com/droplets/new?...&amp;ssh_key_ids=[ssh_key_id1],[ssh_key_id2]</pre> <br><ul> <br><li>…</li> <br><li><strong>ssh_key_ids</strong> Optional, Numeric CSV, comma separated list of ssh_key_ids that you would like to be added to the server</li> <br><li>…</li> <br></ul>

For the record… Sending a plain text password through email is just as insecure if not more insecure than sending a password to an API over SSL… Just saying.

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.