Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Does the original droplet still have to exist?
I’m trying to resurrect an old, deleted droplet. I made a snapshot of it, and it seems that I can bring up a new droplet from that snapshot from the UI. However, I can’t get it working from the API. I’ve looked at the “…/v2/images?private=true” endpoint to get the id for the snapshot, but passing that as the argument to the “image” parameter when POSTing to v2/droplets results in a “You specified an invalid image for Droplet creation” error. Specifically this is what I tried (I have $DO_TOKEN and $IMAGE_ID set correctly in my environment):
$ curl -H "Authorization: Bearer $DO_TOKEN" -H "Context-Type: application/json" -X POST -d '{"name": "test", "region": "nyc3", "size": "1gb", "image": "$IMAGE_ID"}' "https://api.digitalocean.com/v2/droplets"
{"id":"unprocessable_entity","message":"You specified an invalid image for Droplet creation."}
Is it possible to create a new droplet from a snapshot of a deleted droplet via the API? If so, what could I be doing incorrectly?
Hi, thanks for responding. I’m not sure what I was doing wrong there, but I have since gotten it to work. So all appears to be working as expected. :)
I don’t know what went wrong but i am trying to create a droplet from an ubuntu image but this code is creating a coreOs droplet every time . Please help
droplet = DropletKit::Droplet.new(name: 'thisisname', size: '512mb', region: 'sgp1', image: 'somethinghere', ssh_keys: ["something"])
@client.droplets.create(droplet)