Question

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

Posted June 8, 2015 1.9k views
DigitalOceanAPIDeployment

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

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

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.