jeremyschulman / netbox-pyswagger

Python Swagger client for Netbox
MIT License
18 stars 4 forks source link

Get request with filter parameters #9

Closed maq123 closed 4 years ago

maq123 commented 4 years ago

Thanks for this project! Could you provide an example how to specify a filter for a get request? For example I am trying to check if the vendor 'Cisco' exists and get its id before continuing. Currently I am using netbox.request.dcim.dcim_manufacturers_list() but it would be nicer to get already prefiltered answer.

maq123 commented 4 years ago

ok, it is as simple as box.request.dcim.dcim_manufacturers_list(name='Extreme Networks')