3664
Views
5
Helpful
1
Replies
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 06:47 AM
I am searching for the resources from API "https://10.195.2.51:9060/ers/config/networkdevice"
with filtering as
?filter=name.EQ.{ipaddress}
I am getting below results,
{'SearchResult': {'resources': [{'description': 'Switch', 'id': 'f12fcb10-8e71-11e8-88d7-de5b9335be65', 'link': {'href': 'https://10.195.2.51:9060/ers/config/networkdevice/f12fcb10-8e71-11e8-88d7-de5b9335be65', 'rel': 'self', 'type': 'application/json'}, 'name': '10.161.128.115'}], 'total': 1}}

But I want to be able to search from IP address columns as shown in the image,
How do I know the which filter to use, In the API documentation there is no mention of what filters are available
for device search.
Solved! Go to Solution.
Labels:
- Labels:
-
APIs
-
Identity Services Engine (ISE)
1 Accepted Solution
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 07:03 AM
Here are a couple of filters you can use/play with relating to networkdevice:
/ers/config/networkdevice?filter=ipaddress.EQ.192.168.x.x --filter by specific NAD IP
/ers/config/networkdevice?filter=name.EQ.<device name> -- filter by specific NAD name
Additionally, here are filters you can use and test with:
--Cisco ISE REST API filters--
EQ: Equals
NEQ: Not Equals
GT: Greater Than
LT: Less Then
STARTW: Starts With
NSTARTSW: Not Starts With
ENDSW: Ends With
NENDSW: Not Ends With
CONTAINS: Contains
NCONTAINS: Not Contains
HTH!
/ers/config/networkdevice?filter=ipaddress.EQ.192.168.x.x --filter by specific NAD IP
/ers/config/networkdevice?filter=name.EQ.<device name> -- filter by specific NAD name
Additionally, here are filters you can use and test with:
--Cisco ISE REST API filters--
EQ: Equals
NEQ: Not Equals
GT: Greater Than
LT: Less Then
STARTW: Starts With
NSTARTSW: Not Starts With
ENDSW: Ends With
NENDSW: Not Ends With
CONTAINS: Contains
NCONTAINS: Not Contains
HTH!
1 Reply 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 07:03 AM
Here are a couple of filters you can use/play with relating to networkdevice:
/ers/config/networkdevice?filter=ipaddress.EQ.192.168.x.x --filter by specific NAD IP
/ers/config/networkdevice?filter=name.EQ.<device name> -- filter by specific NAD name
Additionally, here are filters you can use and test with:
--Cisco ISE REST API filters--
EQ: Equals
NEQ: Not Equals
GT: Greater Than
LT: Less Then
STARTW: Starts With
NSTARTSW: Not Starts With
ENDSW: Ends With
NENDSW: Not Ends With
CONTAINS: Contains
NCONTAINS: Not Contains
HTH!
/ers/config/networkdevice?filter=ipaddress.EQ.192.168.x.x --filter by specific NAD IP
/ers/config/networkdevice?filter=name.EQ.<device name> -- filter by specific NAD name
Additionally, here are filters you can use and test with:
--Cisco ISE REST API filters--
EQ: Equals
NEQ: Not Equals
GT: Greater Than
LT: Less Then
STARTW: Starts With
NSTARTSW: Not Starts With
ENDSW: Ends With
NENDSW: Not Ends With
CONTAINS: Contains
NCONTAINS: Not Contains
HTH!
