Question

list all snapshots which are in progress - doctl

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.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
April 5, 2023

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.

alexdo
Site Moderator
Site Moderator badge
April 6, 2023

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up