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

July 15, 2013 8.6k views
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?
3 Answers
What about this :

Im no expert :(

[code]Reset Root Password
This method will reset the root password for a droplet. Please be aware that this will reboot the droplet to allow resetting the password.

Request URL:[droplet_id]/password_reset/?client_id=[your_client_id]&api_key=[your_api_key]
droplet_id Required, Integer, this is the id of your droplet that you want to reset password on
Sample Response
"status": "OK",
"event_id": 7501
You will have to use SSH keys if you want to do it with the API only.
Want your password has been sent to the specified email.,
Have another answer? Share your knowledge.

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