Cisco ISE API Filters Tidbit

I want to briefly share a few "good-to-knows" when it comes to supported API filters when consuming ISE APIs.


As we know in your request you would have something along the lines of this:


https://<ise_pan_node>:9060/ers/config/networkdevice?filter=location.STARTSW.Cifelli


You have the ability to sort using the following 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


So if we wanted to do an Equal filter when searching for an endpoint group it would look like this:

endpointgroup?filter=name.EQ.Cifelli_Lab_EP_Group


Or, if we wanted to do search for a group that contains a string we can use something like the following:

endpointgroup?filter=name.CONTAINS.Cifelli_Lab


I definitely recommend playing with the filters to meet your unique desires. Curl is a good command line tool for quickly testing. Lastly, remember to check the ISE SDK!


Cheers!

0 comments

Recent Posts

See All

In this tidbit I want to cover some high level notes on general trustsec items as well as some good-to-knows. A brief overview of what trustsec is: TrustSec provides scalable access controls by uniqu

In this tidbit I will cover some ESA nice-to-know CLI commands & their purposes: > status = view counters/gauges; counters are a total of various events in the system; gauges show current utilization