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

Add extensible attributes as a filter argument for infoblox_ipv4_network #428

Open
jakauppila opened this issue Jan 10, 2025 · 1 comment

Comments

@jakauppila
Copy link

As of 2.8.0, you can utilize network, network_view, and comment as arguments as filters on the infoblox_ipv4_network data source.

We would like to leverage extensible attributes as query filters as well in the lookup of a network.

data "infoblox_ipv4_network" "network" {
  filters = {
    ext_attrs = jsonencode({
      "attrib1": "foo",
      "attrib2": "bar"
    })
  }    
}

This could mirror the Extensible Attribute Filter capability that was just added to Next Available IP Address and Next Available Network that was recently released in 2.8.0.

@jakauppila
Copy link
Author

Turns out this is possible, just not represented well in the documentation:

// accessing IPv4 network through EA's
data "infoblox_ipv4_network" "ipv4_net_ea" {
  filters = {
    "*Site" = "Custom network site"
  }
}

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

1 participant