RFE: API filter for "is null" #3597

Closed
opened 2025-12-29 18:30:03 +01:00 by adam · 3 comments
Owner

Originally created by @igor-raits on GitHub (Apr 22, 2020).

Environment

  • Python version: 3.8.2
  • NetBox version: 2.8.0

Proposed Functionality

Create possibility for filtering in API for "null" values (and oppossite).

Use Case

Sometimes it is very convenient to run request to netbox with filtering for some value being unset (or opposite) instead of doing post-filter since the request itself can take much longer.

Database Changes

None,

External Dependencies

None.


I was asking about this in https://groups.google.com/forum/#!topic/netbox-discuss/YMPErWrWNW0 and seems this feature is missing :)

Originally created by @igor-raits on GitHub (Apr 22, 2020). ### Environment * Python version: 3.8.2 * NetBox version: 2.8.0 ### Proposed Functionality Create possibility for filtering in API for "null" values (and oppossite). ### Use Case Sometimes it is very convenient to run request to netbox with filtering for some value being unset (or opposite) instead of doing post-filter since the request itself can take much longer. ### Database Changes None, ### External Dependencies None. --- I was asking about this in https://groups.google.com/forum/#!topic/netbox-discuss/YMPErWrWNW0 and seems this feature is missing :)
adam closed this issue 2025-12-29 18:30:03 +01:00
Author
Owner

@igor-raits commented on GitHub (Apr 22, 2020):

More specifically, I am interested in filtering IPs by dns_name.

@igor-raits commented on GitHub (Apr 22, 2020): More specifically, I am interested in filtering IPs by `dns_name`.
Author
Owner

@jeremystretch commented on GitHub (Apr 22, 2020):

This needs more detail to be actionable. What is the scope of this feature request? Just for dns_name on the IPAddress model, or for all character fields? What is the proposed filter format?

@jeremystretch commented on GitHub (Apr 22, 2020): This needs more detail to be actionable. What is the scope of this feature request? Just for `dns_name` on the IPAddress model, or for all character fields? What is the proposed filter format?
Author
Owner

@jeremystretch commented on GitHub (Apr 29, 2020):

Closing due to lack of activity.

@jeremystretch commented on GitHub (Apr 29, 2020): Closing due to lack of activity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3597