API - Get selection options from dropdowns. (For example interface types) #11307

Closed
opened 2025-12-29 21:43:21 +01:00 by adam · 2 comments
Owner

Originally created by @powerscooter on GitHub (Jun 23, 2025).

NetBox version

v4.2.3

Feature type

Other

Proposed functionality

Hello, this is just an idea.
For example, we have a website where we can change the type of an interface, among other things. (So that the interface is of type 10GE).

At the moment, you have to manually enter the options you can send to Netbox into the tool. If you had the possibility to retrieve these options via an API from Netbox, you would not have to maintain these options in external tools. This would remove a lot of maintenance work.

Image

Use case

So that you have the possibility to retrieve all possible options from Netbox as well, so that you can load them dynamically in external tools. (name and friendly_name)

Thank you in advance! :-)

Database changes

No response

External dependencies

No response

Originally created by @powerscooter on GitHub (Jun 23, 2025). ### NetBox version v4.2.3 ### Feature type Other ### Proposed functionality Hello, this is just an idea. For example, we have a website where we can change the type of an interface, among other things. (So that the interface is of type 10GE). At the moment, you have to manually enter the options you can send to Netbox into the tool. If you had the possibility to retrieve these options via an API from Netbox, you would not have to maintain these options in external tools. This would remove a lot of maintenance work. <img width="671" alt="Image" src="https://github.com/user-attachments/assets/b799554a-dbc2-41fa-afce-e93327c23233" /> ### Use case So that you have the possibility to retrieve all possible options from Netbox as well, so that you can load them dynamically in external tools. (name and friendly_name) Thank you in advance! :-) ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:43:21 +01:00
adam closed this issue 2025-12-29 21:43:21 +01:00
Author
Owner

@markkuleinio commented on GitHub (Jun 24, 2025):

See the OPTIONS call: https://github.com/netbox-community/netbox/discussions/17896

@markkuleinio commented on GitHub (Jun 24, 2025): See the OPTIONS call: https://github.com/netbox-community/netbox/discussions/17896
Author
Owner

@jnovinger commented on GitHub (Jun 25, 2025):

Thanks @markkuleinio ! I think you nailed it.

@powerscooter , if you have further questions or challenges with the OPTIONS call that was mentioned, I would suggest starting a conversation in the Help Wanted discussion area.

@jnovinger commented on GitHub (Jun 25, 2025): Thanks @markkuleinio ! I think you nailed it. @powerscooter , if you have further questions or challenges with the OPTIONS call that was mentioned, I would suggest starting a conversation in the [Help Wanted discussion](https://github.com/netbox-community/netbox/discussions/new?category=help-wanted) area.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11307