How to list or check all valid option for a field. #17896
Closed
nomad-cyanide
started this conversation in
General
Replies: 1 comment
-
Yes, using an OPTIONS request. Documentation: https://netboxlabs.com/docs/netbox/en/stable/reference/filtering/#filtering-by-choice-field Example:
For pynetbox, check the docs: https://pynetbox.readthedocs.io/en/latest/endpoint.html#pynetbox.core.endpoint.Endpoint.choices
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am trying to create an easy way for my tech-users to document a new VPN-tunnel and would like to be able to validate if a given input is valid for the field we use.
Example: When creating an IKE proposal, you have 8 options to choose from when setting "Encryption Algorithm". Is there a way to get that list through the API (preferably using pynetbox), so I can check if the users input is valid.
I suppose I could build my own list manually, but it doesn't seem like the clever way to do it.
I suppose this would be useful for a lot of other fields and purposes in Netbox as well.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions