Add assigned parameter to the ipam/ip-addresses API endpoint #13151
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.5.5
Feature type
Change to existing functionality
Proposed functionality
I propose to add an
assigned
boolean parameter to the ipam/ip-addresses API endpoint to handle filtering IP addresses by assignments to both interfaces and FHRP groups. Theassigned_to_interface
parameter currently supports filtering for assignments to interfaces only.Use case
Adding this parameter would allow users to retrieve assigned or unassigned IP addresses via the API with regard to interface and FHRP group assignments. This would help an API integration task we have in place. Currently we are getting all IP addresses and determining if the
assigned_object
key has a value as a workaround. This would also better align the API with the UI table for IP Addresses as it also has anAssigned
column.Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: