Using Api as a Client Website creation

Posted January 7, 2014 3.4k 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

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.

Submit an Answer
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.