Does the API provide a method to list all snapshots with their details?
https://api.digitalocean.com/v2/images/<snapshot-id> responds correctly with snapshot details of the specified snapshot-id.
But how to get a list of snapshots?
https://api.digitalocean.com/v2/images/ responds with a list of all images but it does not seem to include snapshots.
Is there a way to list all snapshots with their details?
Since snapshot ids are listed in a droplet’s info, one solution to the question would be to first GET all droplets, extract all snapshot ids and then make multiple GET requests for each snapshot’s details.
Just checking if there’s a direct way to list all snapshots with their details.
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!
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.