Accept prefix_length parameter on GET Request #8368

Closed
opened 2025-12-29 20:35:53 +01:00 by adam · 1 comment
Owner

Originally created by @shepherdjay on GitHub (Jul 25, 2023).

NetBox version

v3.5.4

Feature type

New functionality

Proposed functionality

Currently the API only accepts a prefix_length parameter to POST. This request is to also allow the parameter to be provided via the GET method.

Use case

Would allow for performing simpler analysis and/or filtering for a parent prefix by providing support native to the API instead of relying on user to perform instead.

Database changes

N/A

External dependencies

N/A

Originally created by @shepherdjay on GitHub (Jul 25, 2023). ### NetBox version v3.5.4 ### Feature type New functionality ### Proposed functionality Currently the API only accepts a `prefix_length` parameter to POST. This request is to also allow the parameter to be provided via the GET method. ### Use case Would allow for performing simpler analysis and/or filtering for a parent prefix by providing support native to the API instead of relying on user to perform instead. ### Database changes N/A ### External dependencies N/A
adam added the type: feature label 2025-12-29 20:35:53 +01:00
adam closed this issue 2025-12-29 20:35:53 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 24, 2023):

The mask_length filter is available to filter prefixes by length.

@jeremystretch commented on GitHub (Aug 24, 2023): The `mask_length` filter is available to filter prefixes by length.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8368