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

Data Source to retrieve tags by tag scope #1529

Open
JonathanWrightSE opened this issue Feb 7, 2025 · 0 comments
Open

Data Source to retrieve tags by tag scope #1529

JonathanWrightSE opened this issue Feb 7, 2025 · 0 comments
Labels
enhancement Enhancement
Milestone

Comments

@JonathanWrightSE
Copy link

Is your feature request related to a problem? Please describe.

There is no issue related to this. I am asking for a feature I'd find very useful.

Describe the solution you'd like

I'd like a data source that would retrieve all the tags associated with a tag scope. So if I have tags test:env & prod:env I could ask for all the tags in the scope env and have returned a text array of ["test","prod"]

Describe alternatives you've considered

I do not know of an alternative way to retrieve this information.

Additional context

This is to be used to create firewall rules. If you consider a scenario where VMs belonging to an application are allowed to communicate with each other but not to VMs outside the application, those VMs can be tagged wth the application name then a group populated using those VM tags. An isolating rule using that group is then created in NSX DFW.
If there's a new application the tool creating the VMs will also create a new tag for that application. I use terraform to look at a list of the application names and create a isolating rule for each application. My list is manually maintained and must match the application name in the tag. If I can query the tags in the scope Terraform could create the necessary rules for every application without requiring my manually maintained list.
NSX UI does have a view for tags in the inventory mennu, so I hope it would be simple to implement.

Image

@JonathanWrightSE JonathanWrightSE added the enhancement Enhancement label Feb 7, 2025
@salv-orlando salv-orlando added this to the v3.10.0 milestone Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants