Question
DO APIv2 feedback - getting available snapshot info associated with deleted droplets
I noticed that the DO API only allows query of snapshots so long as you have a droplet ID. However, if you delete the droplet, the droplet ID will no longer be available in any of the API queries even though the associated snapshot still exists.
The workaround is to have a local cache of any droplet IDs that have been created and query each one for any snapshots. However, it seems like it makes more sense to query available snapshots based on the account rather than the droplet id. Did I miss something in the API to do this?
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.
×
Additional note, the “images” query doesn’t have a qualifier like ‘types=snapshot’ to distinguish it from something like 'backup’, 'distro’, or 'all’.