Support pagination for available IPs endpoints #7173

Closed
opened 2025-12-29 20:20:08 +01:00 by adam · 5 comments
Owner

Originally created by @ajm5774 on GitHub (Oct 27, 2022).

NetBox version

v3.3.6

Feature type

New functionality

Proposed functionality

I would like to specify an "offset" in the prefix available-ips endpoint query string parameters. Currently there is the capability to add "limit" to the query string parameters which defaults to 50, but "offset" is ignored.

Example:
https://demo.netbox.dev/api/ipam/prefixes/96/available-ips/?limit=1&offset=5

Use case

List out all available IP addresses for a prefix.

For our case in particular, we are using this to calculate the percent utilization for a prefix. We alert on prefixes that are over-utilized so that we can take action before running out of available IPs.

Database changes

No response

External dependencies

No response

Originally created by @ajm5774 on GitHub (Oct 27, 2022). ### NetBox version v3.3.6 ### Feature type New functionality ### Proposed functionality I would like to specify an "offset" in the prefix available-ips endpoint query string parameters. Currently there is the capability to add "limit" to the query string parameters which defaults to 50, but "offset" is ignored. Example: https://demo.netbox.dev/api/ipam/prefixes/96/available-ips/?limit=1&offset=5 ### Use case List out all available IP addresses for a prefix. For our case in particular, we are using this to calculate the percent utilization for a prefix. We alert on prefixes that are over-utilized so that we can take action before running out of available IPs. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurestatus: needs ownerpending closure labels 2025-12-29 20:20:08 +01:00
adam closed this issue 2025-12-29 20:20:08 +01:00
Author
Owner

@SignalR-Dev commented on GitHub (Nov 28, 2022):

Just 1 Up for the Issue ,
Foolish work arround in the mean time (not preferable sollution)
As the API still Honors the Pagination value Global set a setting of
PAGINATE_COUNT: "510"
gives you the result. (at least up to a /23 Netmask)
Downside the UI Reflects this Value in Defrault Tables as well + there is noc way to tell .next if the Prefix is bigger

@SignalR-Dev commented on GitHub (Nov 28, 2022): Just 1 Up for the Issue , Foolish work arround in the mean time (not preferable sollution) As the API still Honors the Pagination value Global set a setting of `PAGINATE_COUNT: "510"` gives you the result. (at least up to a /23 Netmask) Downside the UI Reflects this Value in Defrault Tables as well + there is noc way to tell .next if the Prefix is bigger
Author
Owner

@jeremystretch commented on GitHub (Jan 5, 2023):

For our case in particular, we are using this to calculate the percent utilization for a prefix

This specific use case should be covered by #9649.

@jeremystretch commented on GitHub (Jan 5, 2023): > For our case in particular, we are using this to calculate the percent utilization for a prefix This specific use case should be covered by #9649.
Author
Owner

@jeremystretch commented on GitHub (Apr 5, 2023):

Marking this as blocked by #12180.

@jeremystretch commented on GitHub (Apr 5, 2023): Marking this as blocked by #12180.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 27, 2024):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Mar 27, 2024): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (May 16, 2024):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (May 16, 2024): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7173