Using Api as a Client Website creation

January 7, 2014 2k views
1. With the API can I get the root password for my droplets? 2. With the api can I make a snapshot based on an image? a. Useful for creating a similar vm but then running automated scripts for customizing to the client needs
3 Answers
1] currently no
2] not sure what you mean. you can take snapshot (/droplets/[droplet_id]/snapshot) and use it as an image for restore/rebuild (/droplets/[droplet_id]/restore|rebuild). you will see it in /images call also.
a. /droplets/new has image_id parameter so you can use image created before and make new droplets based on it
Sounds like Salt Cloud may be a good fit, for what you're looking to accomplish. See Automated Provisioning of DigitalOcean Cloud Servers with Salt Cloud on Ubuntu 12.04.
by Pablo Carranza
This tutorial aims to provide the reader with a simplified, basic setup of an operable Salt Cloud master server. Users can then use this employ to automate the process of creating 1, 2 or a fleet of cloud servers.
Have another answer? Share your knowledge.