I've added a custom empty lookup to address this use case. You can now do e.g. ?dns_name__empty=False to return all records with non-empty values. #6860

Closed
opened 2025-12-29 19:46:08 +01:00 by adam · 1 comment
Owner

Originally created by @AndreasMoe on GitHub (Aug 23, 2022).

Hi, I am not able to to make this work using API

I've added a custom empty lookup to address this use case. You can now do e.g. ?dns_name__empty=False to return all records with non-empty values.

Originally posted by @jeremystretch in https://github.com/netbox-community/netbox/issues/6138#issuecomment-872488043

api/ipam/ip-addresses/?dns_name__empty=False
or
api/ipam/ip-addresses/?limit=0&dns_name__empty=False

please advice

Originally created by @AndreasMoe on GitHub (Aug 23, 2022). Hi, I am not able to to make this work using API I've added a custom `empty` lookup to address this use case. You can now do e.g. `?dns_name__empty=False` to return all records with non-empty values. _Originally posted by @jeremystretch in https://github.com/netbox-community/netbox/issues/6138#issuecomment-872488043_ api/ipam/ip-addresses/?dns_name__empty=False or api/ipam/ip-addresses/?limit=0&dns_name__empty=False please advice
adam closed this issue 2025-12-29 19:46:09 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 23, 2022):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@jeremystretch commented on GitHub (Aug 23, 2022): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/netbox-community/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/netbox-community/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6860