You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i would like to extend the tags capability of the provider, specifically allowing the data sources to filter by tag name, in particular for our current use case it would be needed for devices and virtual_machines data sources, but i guess it can be applied even more widely.
Before getting down to it deeply i wanted to discuss a bit the eventual implementation as it may not be acceptable for you.
I have done some quick experiments, please note that the patches below are only an indication
In principle i really prefer the first option as it seems more consistent with the netbox api, but on the other hand implementing that on all resources would be a breaking change.
Let me know what is your vision on this
The text was updated successfully, but these errors were encountered:
I think the ability to filter existing resources by tag is much needed functionality within the provider.
To accomplish this currently, we need to use a lot of external data sources to query the Netbox API directly. Being able to do this with "real" terraform data resources would be awesome.
Hi,
i would like to extend the tags capability of the provider, specifically allowing the data sources to filter by tag name, in particular for our current use case it would be needed for
devices
andvirtual_machines
data sources, but i guess it can be applied even more widely.Before getting down to it deeply i wanted to discuss a bit the eventual implementation as it may not be acceptable for you.
I have done some quick experiments, please note that the patches below are only an indication
https://github.com/e-breuninger/terraform-provider-netbox/compare/master...ironashram:terraform-provider-netbox:tags_experiment_1?expand=1
Which returns something like
https://github.com/e-breuninger/terraform-provider-netbox/compare/master...ironashram:terraform-provider-netbox:tags_experiment_2?expand=1
Which returns something like
In principle i really prefer the first option as it seems more consistent with the netbox api, but on the other hand implementing that on all resources would be a breaking change.
Let me know what is your vision on this
The text was updated successfully, but these errors were encountered: