Skip to content

Add support for filtering netbox_prefix by custom fields#819

Merged
fbreckle merged 4 commits intoe-breuninger:masterfrom
christopher-svensson-stegra:filter-prefix-by-custom-fields
Jan 22, 2026
Merged

Add support for filtering netbox_prefix by custom fields#819
fbreckle merged 4 commits intoe-breuninger:masterfrom
christopher-svensson-stegra:filter-prefix-by-custom-fields

Conversation

@christopher-svensson-stegra
Copy link
Copy Markdown
Contributor

@christopher-svensson-stegra christopher-svensson-stegra commented Jan 16, 2026

Similar to this PR but a bit less destructive.

data "netbox_prefix" "main" {
  description = "My application"
  custom_fields = {
    environment = "dev"
  }
}

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>
Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>
Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>
Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>
@fbreckle fbreckle merged commit de8786e into e-breuninger:master Jan 22, 2026
14 checks passed
hp197 pushed a commit to hp197/terraform-provider-netbox that referenced this pull request Jan 26, 2026
…r#819)

* Filter prefix by custom fields

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

* Support custom field query params

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

* Doc fix

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

* Added test to cover custom field filter

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

---------

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>
alxgarder pushed a commit to mechanize-dk/terraform-provider-netbox that referenced this pull request Mar 14, 2026
…r#819)

* Filter prefix by custom fields

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

* Support custom field query params

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

* Doc fix

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

* Added test to cover custom field filter

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>

---------

Signed-off-by: Christopher Svensson <christopher.svensson@stegra.com>
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

Successfully merging this pull request may close these issues.

2 participants