DO Ideas 2

make snapshots available via droplets api

I noticed recently you've added snapshots and backups to the droplet/id endpoint, however it would nice to have this same information reflected in the standard droplets endpoint, so multiple requests are not required.

  • Shaps
  • Sep 11 2018
  • Shipped
  • Sep 11, 2018

    Admin Response

    Hi! Version 2 of our API has entered public beta. This included listing snapshots and backups in the response to the `/images` endpoint. You can check out the documentation here: https://developers.digitalocean.com/#images The `/droplets` endpoint also contains arrays of ids for snapshots and backups associated with the droplet: https://developers.digitalocean.com/#droplets While the beta is on-going, we're looking for as much feedback as possible. If there's anything else you'd like to see in the API, please open an issue over on our GitHub page: http://do.co/APIv2_feedback Thanks!
  • Attach files
  • Shaps commented
    September 11, 2018 18:10

    Ok that makes sense.. what about just the IDs then, because right now I have to do a separate request for each image just to determine if its a snapshot or a backup and what droplet its associated with. :)

  • Moisey Uretsky commented
    September 11, 2018 18:10

    For now we are holding off on that as it might create a large amount of data to be returned and usually customers want that level granularity on a specific droplet but if other customers vote this up we can modify it.

    We'll also be specing out our API v2 and requesting customer feedback so we'll be able to get an idea of whether or not customers prefer to get the full details in the regular index view as well as the show view or if they want different data returned with the index being optimized for speed and simplicity.

    Thanks!