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

How to list block volumes using freeform tags as filter #380

Open
vinayakshnd opened this issue Aug 26, 2022 · 1 comment
Open

How to list block volumes using freeform tags as filter #380

vinayakshnd opened this issue Aug 26, 2022 · 1 comment
Labels
Block Volume Issue pertains to the Block Volume service

Comments

@vinayakshnd
Copy link

vinayakshnd commented Aug 26, 2022

ListVolume does not take tags as input filter in request body. I want to get list of only volumes that have certain tags applied to them. I know that I can get list of all the volumes in my account using this API and then filter them out at client side. But I want to avoid doing that at client side. Is there any way to just get list of volumes based on tags assigned to them?

@KartikShrikantHegde KartikShrikantHegde added the Block Volume Issue pertains to the Block Volume service label Aug 26, 2022
@KartikShrikantHegde
Copy link

Hi @vinayakshnd , Unfortunately, the block volume team confirmed that they are not supporting sorting by tags right now.

The good news is that there are a couple of options they suggested:

  1. list all volumes and filter by tags on the client (as suggested by you in the ticket)
  2. keep the volumes in a special volume group and get that volume group

Please give this a try and let us know if you have any issues. Hope this helps. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Block Volume Issue pertains to the Block Volume service
Projects
None yet
Development

No branches or pull requests

2 participants