Question

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

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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.