imammubin
By:
imammubin

how to retrieve an existing droplet using api v2 from multiple droplets

June 8, 2015 588 views
API DigitalOcean Deployment

Hi everyone..

i have a few of droplet, i want to retrieve existing droplet from what i selected

to retrieve an existing one droplet im using this and it's working
https://api.digitalocean.com/v2/droplets/droplet_id

how to retrieve an existing droplet using api v2 from multiple droplets ?
example: droplet1 droplet3 droplet7

1 Answer

If you do not already have the droplet's ID stored you can use the endpoint /v2/droplets which will give you the basic details of all your droplets. The ID returned there can then be used to perform actions on the droplet it represents.

Have another answer? Share your knowledge.