cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2897
Views
5
Helpful
1
Replies

ISE API filtering

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}}

Capture11.PNG

 

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.

1 Accepted Solution

Accepted Solutions

Mike.Cifelli
VIP Alumni
VIP Alumni
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!

View solution in original post

1 Reply 1

Mike.Cifelli
VIP Alumni
VIP Alumni
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!