Question

how to set own desired root for droplet via api ?

Posted August 16, 2013 5.4k views
i have searched http://api.digitalocean.com couldn't find it.

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.

×
3 answers
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.
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:

https://www.digitalocean.com/community/articles/how-to-use-ssh-keys-with-digitalocean-droplets

https://api.digitalocean.com/droplets/new
https://api.digitalocean.com/droplets/new?...&ssh_key_ids=[ssh_key_id1],[ssh_key_id2]


  • ...

  • ssh_key_ids Optional, Numeric CSV, comma separated list of ssh_key_ids that you would like to be added to the server

  • ...

Submit an Answer