cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

This community is for technical, feature, configuration and deployment questions.
For production deployment issues, please contact the TAC! We will not comment or assist with your TAC case in these forums.
Please see How to Ask the Community for Help for other best practices.

1777
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 Advocate

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 Advocate

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

Create
Recognize Your Peers
Polls
Which of these topics should we host an event in the Community?

Top Choice: ISE Demo (100%)

Content for Community-Ad

ISE Webinars



Did you miss a previous ISE webinar?

CiscoISE YouTube Channel