07-26-2024 05:49 AM
Hi all
Calling ISE with the following command: /ers/config/networkdevice/filter=name.contains.xxxx
Which gives me for ex. following cutout:
{'SearchResult': 'total': 6{'resources': [{'description': 'Switch', 'id': 'f12fcb10-8e71-11e8-88d7-de5b9335be65', 'link': {'href': 'https://x.x.x.x:9060/ers/config/networkdevice/xxxxx', 'rel': 'self', 'type': 'application/json'}, 'name': 'xxxxx'}], }}
The problem is, that this way of searching finds a total of 6, but due to the case-sensitve filtering it only shows 1 results.
Results with a name like: XXxx or xXxx etc. are not shown. How can I make sure I see all 6 results, so also xxXx etc. ?
07-26-2024 06:09 AM
Not an expert here but think you can use the following filters...
--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
07-26-2024 07:06 AM
Thank you for your answer. Unfortunately with the parameter name one can only use contains or ncontains as a filter...
07-26-2024 07:07 AM
Hmmm... is icontains work, not sure if that is supported on this API?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide