I am trying to write a python script that obtains mac addresses per switch port and them call APIs to collect details from ClearPass Endpoint database. The idea is to have full visibility into devices connected to each port before configuring authentication. I tried two APIs in ClearPass, but both didn't provide full information similar to that I get by logging into GUI and searching in Endpoint database.
- Endpoint API: GET /endpoint/mac-address/{mac_address}, but it returns endpoint IP and attributes, no profiling information
-
- InSight API: GET /insight/endpoint/mac/{mac}, but InSight database doesn't have all information for many EndPoints and doesn't return key information like "HostName".
is there any call that returns all information in EndPoint database? from EndPoint db and not InSight db?