Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce and API Call similar to pxctl volume list #2020

Closed
calvarado2004 opened this issue Mar 29, 2022 · 1 comment
Closed

introduce and API Call similar to pxctl volume list #2020

calvarado2004 opened this issue Mar 29, 2022 · 1 comment

Comments

@calvarado2004
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE REQUEST
What happened:

What you expected to happen:

We see that the volume list option just returns a list of the volumes by portworx volume name. I was hoping to get a result similar to pxctl v l. This includes pwx volume name, the pv name and the attached/detached state. That would allow us to read in the detached volumes that we are interested in in a single pass and then dip down to the next level to look at the inspect option for the volumes.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Container Orchestrator and version:
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@lpabon
Copy link
Contributor

lpabon commented Jun 28, 2022

Hi @calvarado2004 , we have EnumerateWithFilters which returns the volume ids, then for each volume you can run Inspect. Or you can also call one function to get this info: InspectWithFilters

@lpabon lpabon closed this as completed Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants