How to use cURL to Clone a Droplet from a Snapshot

Posted August 30, 2014 4.4k views

I’m trying to create a 2nd Droplet.

When wanting just the OS software installed, through Digital Ocean’s control panel I can Select Image > Linux Distributions tab > and select a Linux OS image, to which another Droplet will be spun. Similarly, when using a cURL statement such as …

curl -s “

… a message is given …


… and a 2nd Droplet is spun with, again, just the OS software installed.

Furtherer, if wanting to spin a 2nd Droplet as a clone of my 1st server, which already has LAMP and my web pages installed on it; through Digital Ocean’s control panel I can Select Image > My Images tab > and select a snapshot name, to which a new Droplet is spun with all the software included.

At this point I’m not sure how to use a cURL statement, to clone via a Snapshot.

Any answer or direction is appreciated.

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
1 answer

To launch a new droplet based on a snapshot, you’d use the same API call:

curl -s ""

You just need to replace the imageid with the ID for your snapshot. To find your image ID, run:

curl -s ""

I’d also suggest installing the jq command. You can pipe the results to it so that they are printed out nicely:

curl -s "" | jq .[]
  • That did it.

    When running the cURL command with v1 as part of the address, the view of information initially looked the same, as if running the address without the v1 portion. With a closer look, I noticed the snapshot image number was located in the first line of information.

    Thanks again for the help.