Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pynetbox/lib/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get(self, *args, **kwargs):

Referencing with an id.

>>> nb.devices.get(1)
>>> nb.dcim.devices.get(1)
test1-edge1
>>>
"""
Expand Down Expand Up @@ -193,13 +193,13 @@ def filter(self, *args, **kwargs):

To return a list of objects matching a named argument filter.

>>> nb.devices.filter(role='leaf-switch')
>>> nb.dcim.devices.filter(role='leaf-switch')
[test1-a3-tor1b, test1-a3-tor1c, test1-a3-tor1d, test1-a3-tor2a]
>>>

Using a freeform query along with a named argument.

>>> nb.devices.filter('a3', role='leaf-switch')
>>> nb.dcim.devices.filter('a3', role='leaf-switch')
[test1-a3-tor1b, test1-a3-tor1c, test1-a3-tor1d, test1-a3-tor2a]
>>>

Expand Down