Report this

What is the reason for this report?

list all snapshots which are in progress - doctl

Posted on April 4, 2023

Hello,

I was wondering if there is a way to list all snapshots which are currently in progress. I’ve tried doctl compute action list But it lists only completed tasks in there and I can see in the GUI that the snapshots are still in progress.



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.

Hey @lyubo83,

I’ve tried a couple of things like:

  1. https://api.digitalocean.com/v2/snapshots?status=in-progress

or

doctl compute snapshot list --no-header --format Name,Status | grep 'in-progress'

However the snapshot command supports only 3 options:

  1. Usage:
  2. doctl compute snapshot [command]
  3. Aliases:
  4. snapshot, s
  5. Available Commands:
  6. delete Delete a snapshot of a Droplet or volume
  7. get Retrieve a Droplet or volume snapshot
  8. list List Droplet and volume snapshots

Having said that, I think this is a great idea, sounds like it’d be super useful!

The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.

https://ideas.digitalocean.com/

Hope that helps! - KFSys.

Hello @lyubo83

This command retrieves a list of all actions taken on your resources. The action status will show (pending, completed, etc)

You can check the full flags and options for the doctl compute action list command:

https://docs.digitalocean.com/reference/doctl/reference/compute/action/list/

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.