Filter in custom script? #14578
-
Hi,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is described at https://docs.netbox.dev/en/stable/customization/custom-scripts/#objectvar :
I believe these are the same query params as you pass to the REST API (i.e. the web page using the REST API to populate the list).
I would expect you can do (untested):
See also https://demo.netbox.dev/api/schema/swagger-ui/#/dcim/dcim_device_types_list for the available query params. (Unfortunately if you give an invalid query param, it's silently ignored as if it didn't exist, so you'll get the full list of device types) |
Beta Was this translation helpful? Give feedback.
-
Thank you :-) |
Beta Was this translation helpful? Give feedback.
This is described at https://docs.netbox.dev/en/stable/customization/custom-scripts/#objectvar :
I believe these are the same query params as you pass to the REST API (i.e. the web page using the REST API to populate the list).
I would expect you can do (untested):
See also https://demo.netbox.dev/api/schema/swagg…