11-27-2024 07:54 PM
I need to fetch specific data fields from Cisco ISE. Could you please guide me on the appropriate APIs or endpoints that can be used to retrieve the following information?
Additionally, I would appreciate any documentation or examples of API requests and responses that could assist in implementing these queries effectively.
Solved! Go to Solution.
12-02-2024 03:04 PM - edited 12-02-2024 03:51 PM
You did not explain your desired goal or scenario but you have 2 options.
First is the ISE MNT APIs for active session details however these are only valid for active sessions - not all historical - and only return XML. See ISE Monitoring API Examples :
25:04 Demo: ISE REST APIs with curl and Python Scripts | ISE ERS API Examples | ISE Monitoring API Examples
Second - and my recommended approach - would be to not use REST APIs and instead to use the ISE 3.2+ Data Connect feature with an ODBC client to get the values or create queries/reports.
48:32 ISE Data Connect
OpenAPI: https://cs.co/ise-api#!data-connect-openapi
Guides: https://cs.co/ise-dataconnect
iseql.py
: https://github.com/1homas/ISE_Python_Scripts/blob/main/iseql.py
52:07: Demo: ISE Data Connect SQL Queries
And use my iseql.py script or preferred ODBC tool and my many saved SQL queries to get what you need:
❱ iseql.py "$(cat data/SQL/radius_auths_example.sql)" -it -f table
radius_auths_example.sql:
SELECT
TO_CHAR(timestamp, 'YYYY-MM-DD HH24:MI:SS') AS timestamp, -- drop fractional seconds
calling_station_id,
username,
device_name,
nas_ip_address,
nas_port_id,
nas_port_type,
location, -- NDG
policy_set_name, -- Default, Wired, etc.
authorization_profiles AS authz_profiles, -- ⚠ Blank for failed auths!
posture_status
FROM radius_authentications
WHERE timestamp > sysdate - INTERVAL '1' HOUR -- last N hours
ORDER BY timestamp ASC -- first/oldest records
There is no API or field for Reason for Posture Non-Compliance. Make a Wish for that @ https://cs.co/ise-wish
12-02-2024 03:56 PM - edited 12-02-2024 03:56 PM
The ISE Data Connect tables
will be very helpful by providing FAILURE_REASON and many other fields per endpoint posture assessment.
No additional licensing required.
11-27-2024 11:06 PM
12-01-2024 09:24 PM
Hey,
For this api :
https://10.215.26.83:443/api/v1/policy/network-access/authorization-profiles what value are we supposed to pass in the headers ? What is a X-Request-ID?
11-28-2024 09:41 PM
Hey, i think i wasnt clear enough i want these components , to be fetched that appear in radius live logs these above listed ip's dont help me with that ? maybe any other api?
12-02-2024 03:04 PM - edited 12-02-2024 03:51 PM
You did not explain your desired goal or scenario but you have 2 options.
First is the ISE MNT APIs for active session details however these are only valid for active sessions - not all historical - and only return XML. See ISE Monitoring API Examples :
25:04 Demo: ISE REST APIs with curl and Python Scripts | ISE ERS API Examples | ISE Monitoring API Examples
Second - and my recommended approach - would be to not use REST APIs and instead to use the ISE 3.2+ Data Connect feature with an ODBC client to get the values or create queries/reports.
48:32 ISE Data Connect
OpenAPI: https://cs.co/ise-api#!data-connect-openapi
Guides: https://cs.co/ise-dataconnect
iseql.py
: https://github.com/1homas/ISE_Python_Scripts/blob/main/iseql.py
52:07: Demo: ISE Data Connect SQL Queries
And use my iseql.py script or preferred ODBC tool and my many saved SQL queries to get what you need:
❱ iseql.py "$(cat data/SQL/radius_auths_example.sql)" -it -f table
radius_auths_example.sql:
SELECT
TO_CHAR(timestamp, 'YYYY-MM-DD HH24:MI:SS') AS timestamp, -- drop fractional seconds
calling_station_id,
username,
device_name,
nas_ip_address,
nas_port_id,
nas_port_type,
location, -- NDG
policy_set_name, -- Default, Wired, etc.
authorization_profiles AS authz_profiles, -- ⚠ Blank for failed auths!
posture_status
FROM radius_authentications
WHERE timestamp > sysdate - INTERVAL '1' HOUR -- last N hours
ORDER BY timestamp ASC -- first/oldest records
There is no API or field for Reason for Posture Non-Compliance. Make a Wish for that @ https://cs.co/ise-wish
12-02-2024 09:57 PM
12-02-2024 03:13 PM
Adding to this- I know there are current plans to release some additional API features in the future which is associated with DoD Comply-to-connect requirements. As far as I am aware this change will incur additional license requirements. I explicitly looked to identify posture information from ISE in which this was not possible given the currently available APIs. As @thomas may be more aprised of the situation I would certainly look at following his recommendation in the meantime.
12-02-2024 03:56 PM - edited 12-02-2024 03:56 PM
The ISE Data Connect tables
will be very helpful by providing FAILURE_REASON and many other fields per endpoint posture assessment.
No additional licensing required.
12-24-2024 01:41 AM
Hey, i am facing an error while trying to connect to ise db after enabling the data connect feature .
The code is:
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