<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Query on APIs to Fetch Specific Fields from ISE in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231657#M593527</link>
    <description>&lt;P&gt;The &lt;A href="https://cs.co/ise-dataconnect" target="_self"&gt;ISE Data Connect&lt;/A&gt; tables&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="" data-tag-type="h1" data-link="posture_assessment_by_condition"&gt;&lt;A href="https://developer.cisco.com/docs/dataconnect/database-views/#posture_assessment_by_condition" target="_blank" rel="noopener" data-tag="navigation-item" data-url="#posture_assessment_by_condition"&gt;POSTURE_ASSESSMENT_BY_CONDITION&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="" data-tag-type="h1" data-link="posture_assessment_by_endpoint"&gt;&lt;A href="https://developer.cisco.com/docs/dataconnect/database-views/#posture_assessment_by_endpoint" target="_blank" rel="noopener" data-tag="navigation-item" data-url="#posture_assessment_by_endpoint"&gt;POSTURE_ASSESSMENT_BY_ENDPOINT&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;will be very helpful by providing &lt;FONT face="courier new,courier"&gt;FAILURE_REASON&lt;/FONT&gt; and many other fields per endpoint posture assessment.&lt;/P&gt;
&lt;P&gt;No additional licensing required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 23:56:22 GMT</pubDate>
    <dc:creator>thomas</dc:creator>
    <dc:date>2024-12-02T23:56:22Z</dc:date>
    <item>
      <title>Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5229877#M593404</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;NAS Port&lt;/LI&gt;&lt;LI&gt;NAS IP&lt;/LI&gt;&lt;LI&gt;NAS Type&lt;/LI&gt;&lt;LI&gt;Location&lt;/LI&gt;&lt;LI&gt;Network Device Details&lt;/LI&gt;&lt;LI&gt;Authorization Profile&lt;/LI&gt;&lt;LI&gt;Reason for Non-Compliance (if the posture status is Non-Compliant)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Additionally, I would appreciate any documentation or examples of API requests and responses that could assist in implementing these queries effectively.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 03:54:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5229877#M593404</guid>
      <dc:creator>jagritibhardwaj471</dc:creator>
      <dc:date>2024-11-28T03:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5229923#M593406</link>
      <description>&lt;P&gt;Check this is out:&lt;BR /&gt;&lt;A href="https://www.postman.com/lunar-module-astronomer-52086722/cisco-ise/collection/ks7b1cf/cisco-ise-api-policy" target="_blank"&gt;https://www.postman.com/lunar-module-astronomer-52086722/cisco-ise/collection/ks7b1cf/cisco-ise-api-policy&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 07:06:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5229923#M593406</guid>
      <dc:creator>JPavonM</dc:creator>
      <dc:date>2024-11-28T07:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5230364#M593446</link>
      <description>&lt;P&gt;Hey, i think i wasnt clear enough i want&amp;nbsp;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?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;NAS Port&lt;/LI&gt;&lt;LI&gt;NAS IP&lt;/LI&gt;&lt;LI&gt;NAS Type&lt;/LI&gt;&lt;LI&gt;Location&lt;/LI&gt;&lt;LI&gt;Network Device Details&lt;/LI&gt;&lt;LI&gt;Authorization Profile&lt;/LI&gt;&lt;LI&gt;Reason for Non-Compliance (if the posture status is Non-Compliant)&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 29 Nov 2024 05:41:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5230364#M593446</guid>
      <dc:creator>jagritibhardwaj471</dc:creator>
      <dc:date>2024-11-29T05:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231131#M593500</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;For this api :&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.215.26.83:443/api/v1/policy/network-access/authorization-profiles" target="_blank"&gt;https://10.215.26.83:443/api/v1/policy/network-access/authorization-profiles&lt;/A&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; what value are we supposed to pass in the headers ? What is a&amp;nbsp;&lt;SPAN&gt;X-Request-ID?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 05:24:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231131#M593500</guid>
      <dc:creator>jagritibhardwaj471</dc:creator>
      <dc:date>2024-12-02T05:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231649#M593524</link>
      <description>&lt;P&gt;You did not explain your desired goal or scenario but you have 2 options.&lt;/P&gt;
&lt;P&gt;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 &lt;LI-MESSAGE title="ISE Monitoring API Examples" uid="4800437" url="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/m-p/4800437#U4800437" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="list-style-type: disc; margin-left: 15px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437#toc-hId--1156641326" target="_blank" rel="nofollow noopener noreferrer"&gt;Last Session by Attributes&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437#toc-hId--2136851129" target="_blank" rel="nofollow noopener noreferrer"&gt;MAC Address Session Search&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437#toc-hId-350661704" target="_blank" rel="nofollow noopener noreferrer"&gt;User Name Session Search&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437#toc-hId--1456792759" target="_blank" rel="nofollow noopener noreferrer"&gt;NAS IP Address Session Search&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437#toc-hId-1030720074" target="_blank" rel="nofollow noopener noreferrer"&gt;Endpoint IP Address Session Search&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="list-style-type: disc; margin-left: 30px; margin-bottom: 1px;"&gt;&lt;A href="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437#toc-hId--776734389" target="_blank" rel="nofollow noopener noreferrer"&gt;Audit Session ID Search&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 id="how-to-get-data-out-of-ise-2024-04-02" class="maps-to-line" style="margin-top: 0.6em; margin-bottom: 0.65em; unicode-bidi: plaintext; line-height: 1.5em; font-size: 1.1em; font-weight: bold; color: #32373f; font-family: 'Avenir Next', Avenir, Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-source-line="537"&gt;▷&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" style="background-color: transparent; color: #155bda;" title="https://youtu.be/vBw4CxX_EhM" href="https://youtu.be/vBw4CxX_EhM" target="_blank" rel="noopener" data-from-md=""&gt;How to Get Data Out of ISE&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P class="maps-to-line" style="margin-top: 0.6em; margin-bottom: 1.35em; unicode-bidi: plaintext; color: #32373f; font-family: 'Avenir Next', Avenir, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-source-line="554"&gt;&lt;A style="background-color: transparent; color: #155bda;" title="https://youtu.be/vBw4CxX_EhM&amp;amp;t=1504s" href="https://youtu.be/vBw4CxX_EhM&amp;amp;t=1504s" target="_blank" rel="noopener" data-from-md=""&gt;25:04&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Demo: ISE REST APIs with curl and Python Scripts | &lt;A style="background-color: transparent; color: #155bda;" title="https://community.cisco.com/t5/security-knowledge-base/ise-ers-api-examples/ta-p/3622623" href="https://community.cisco.com/t5/security-knowledge-base/ise-ers-api-examples/ta-p/3622623" target="_blank" rel="noopener" data-from-md=""&gt;ISE ERS API Examples&lt;/A&gt; | &lt;A style="background-color: transparent; color: #155bda;" title="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437" href="https://community.cisco.com/t5/security-knowledge-base/ise-monitoring-api-examples/ta-p/4800437" target="_blank" rel="noopener" data-from-md=""&gt;ISE Monitoring API Examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Second - and my recommended approach - would be to &lt;EM&gt;not&lt;/EM&gt; use REST APIs and instead to use the &lt;A href="https://cs.co/ise-dataconnect" target="_self"&gt;ISE 3.2+ Data Connect&lt;/A&gt; feature with an ODBC client to get the values or create queries/reports.&lt;/P&gt;
&lt;H3 id="how-to-get-data-out-of-ise-2024-04-02" class="maps-to-line" style="margin-top: 0.6em; margin-bottom: 0.65em; unicode-bidi: plaintext; line-height: 1.5em; font-size: 1.1em; font-weight: bold; color: #32373f; font-family: 'Avenir Next', Avenir, Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-source-line="537"&gt;▷&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" style="background-color: transparent; color: #155bda;" title="https://youtu.be/vBw4CxX_EhM" href="https://youtu.be/vBw4CxX_EhM" target="_blank" rel="noopener" data-from-md=""&gt;How to Get Data Out of ISE&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P class="maps-to-line" style="margin-top: 0.6em; margin-bottom: 1.35em; unicode-bidi: plaintext; color: #32373f; font-family: 'Avenir Next', Avenir, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-source-line="588"&gt;&lt;A style="background-color: transparent; color: #155bda;" title="https://youtu.be/vBw4CxX_EhM&amp;amp;t=2912s" href="https://youtu.be/vBw4CxX_EhM&amp;amp;t=2912s" target="_blank" rel="noopener" data-from-md=""&gt;48:32&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ISE Data Connect&lt;BR /&gt;&amp;nbsp; OpenAPI:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A style="background-color: transparent; color: #155bda;" title="https://cs.co/ise-api#!data-connect-openapi" href="https://cs.co/ise-api#!data-connect-openapi" target="_blank" rel="noopener" data-from-md=""&gt;https://cs.co/ise-api#!data-connect-openapi&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; Guides:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A style="background-color: transparent; color: #155bda;" title="https://cs.co/ise-dataconnect" href="https://cs.co/ise-dataconnect" target="_blank" rel="noopener" data-from-md=""&gt;https://cs.co/ise-dataconnect&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; &lt;CODE class="inline-code" style="border: 1px solid #dcdcdc; background-color: #f3f3f3; padding-right: 0.2em; padding-left: 0.2em; border-radius: 0.25em; color: #000000; font-size: 0.9em;"&gt;iseql.py&lt;/CODE&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A style="background-color: transparent; color: #155bda;" title="https://github.com/1homas/ISE_Python_Scripts/blob/main/iseql.py" href="https://github.com/1homas/ISE_Python_Scripts/blob/main/iseql.py" target="_blank" rel="noopener" data-from-md=""&gt;https://github.com/1homas/ISE_Python_Scripts/blob/main/iseql.py&lt;/A&gt;&lt;BR /&gt;&lt;A style="background-color: transparent; color: #155bda;" title="https://youtu.be/vBw4CxX_EhM&amp;amp;t=3127s" href="https://youtu.be/vBw4CxX_EhM&amp;amp;t=3127s" target="_blank" rel="noopener" data-from-md=""&gt;52:07&lt;/A&gt;: Demo: ISE Data Connect SQL Queries&lt;/P&gt;
&lt;P&gt;And use my &lt;FONT face="courier new,courier"&gt;&lt;A href="https://github.com/1homas/ISE_Python_Scripts/blob/main/iseql.py" target="_self"&gt;iseql.py&lt;/A&gt;&lt;/FONT&gt; script or preferred ODBC tool and my &lt;A href="https://github.com/1homas/ISE_Python_Scripts/tree/main/data/SQL" target="_self"&gt;many saved SQL queries&lt;/A&gt; to get what you need:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;❱ iseql.py "$(cat data/SQL/radius_auths_example.sql)" -it -f table&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;radius_auths_example.sql:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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 &amp;gt; sysdate - INTERVAL '1' HOUR -- last N hours
ORDER BY timestamp ASC -- first/oldest records
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no API or field for &lt;EM&gt;Reason for Posture Non-Compliance&lt;/EM&gt;. Make a Wish for that @ &lt;A href="https://cs.co/ise-wish" target="_blank" rel="noopener"&gt;https://cs.co/ise-wish&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 23:51:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231649#M593524</guid>
      <dc:creator>thomas</dc:creator>
      <dc:date>2024-12-02T23:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231650#M593525</link>
      <description>&lt;P&gt;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&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/26555"&gt;@thomas&lt;/a&gt;&amp;nbsp;may be more aprised of the situation I would certainly look at following his recommendation in the meantime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 23:13:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231650#M593525</guid>
      <dc:creator>stephan.l.martin1</dc:creator>
      <dc:date>2024-12-02T23:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231657#M593527</link>
      <description>&lt;P&gt;The &lt;A href="https://cs.co/ise-dataconnect" target="_self"&gt;ISE Data Connect&lt;/A&gt; tables&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="" data-tag-type="h1" data-link="posture_assessment_by_condition"&gt;&lt;A href="https://developer.cisco.com/docs/dataconnect/database-views/#posture_assessment_by_condition" target="_blank" rel="noopener" data-tag="navigation-item" data-url="#posture_assessment_by_condition"&gt;POSTURE_ASSESSMENT_BY_CONDITION&lt;/A&gt;&lt;/LI&gt;
&lt;LI class="" data-tag-type="h1" data-link="posture_assessment_by_endpoint"&gt;&lt;A href="https://developer.cisco.com/docs/dataconnect/database-views/#posture_assessment_by_endpoint" target="_blank" rel="noopener" data-tag="navigation-item" data-url="#posture_assessment_by_endpoint"&gt;POSTURE_ASSESSMENT_BY_ENDPOINT&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;will be very helpful by providing &lt;FONT face="courier new,courier"&gt;FAILURE_REASON&lt;/FONT&gt; and many other fields per endpoint posture assessment.&lt;/P&gt;
&lt;P&gt;No additional licensing required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 23:56:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231657#M593527</guid>
      <dc:creator>thomas</dc:creator>
      <dc:date>2024-12-02T23:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231701#M593533</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hey Thomas,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So basically my goal is to fetch fields for live data and store them in a database I have created,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;these fields u can check by opening the UI of ISE and then Operations &amp;gt; Radius &amp;gt; Live Logs,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;then in that , under the details column you open the authentication report .In that report,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now the fields i want the data for are:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--&amp;gt; Under the section Authentication Details:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Username, Endpoint Id, Endpoint Profile, Calling Station Id , Network Device , Location ,Authorization Profile&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--&amp;gt;Under the section Other Attributes :&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Device IP Address, cisco-nas-port ,Location, network device profile.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So , using dataconnect feature can i fetch these ???&lt;/DIV&gt;&lt;DIV&gt;Also we are using golang on backend , will it be compatible with the dataconnect feature?&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Dec 2024 05:57:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5231701#M593533</guid>
      <dc:creator>jagritibhardwaj471</dc:creator>
      <dc:date>2024-12-03T05:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query on APIs to Fetch Specific Fields from ISE</title>
      <link>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5240372#M593936</link>
      <description>&lt;P&gt;Hey, i am facing an error while trying to connect to ise db after enabling the data connect feature .&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;package&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"database/sql"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"fmt"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"log"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;_&lt;/SPAN&gt; &lt;SPAN&gt;"github.com/sijms/go-ora/v2"&lt;/SPAN&gt; &lt;SPAN&gt;// Oracle DB driver&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;func&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Define the connection string for Oracle with SSL/TCP&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dsn&lt;/SPAN&gt; &lt;SPAN&gt;:=&lt;/SPAN&gt; &lt;SPAN&gt;`dataconnect/password@tcps(1.1.1.1:2484)/cpm10?ssl=true&amp;amp;ssl_cert=&amp;lt;path_to_cert&amp;gt;`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Open a database connection using the go-ora driver&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;db&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;err&lt;/SPAN&gt; &lt;SPAN&gt;:=&lt;/SPAN&gt; &lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"oracle"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dsn&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;err&lt;/SPAN&gt; &lt;SPAN&gt;!=&lt;/SPAN&gt; &lt;SPAN&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SP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AN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Fatalf&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Failed to ping database: &lt;/SPAN&gt;&lt;SPAN&gt;%v&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;err&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; } &lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;fmt&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Println&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Successfully connected to the Cisco ISE Database!"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Sample query: List Network Device Groups&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;rows&lt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.&lt;/SPAN&gt;&lt;SPAN&gt;Close&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Print query results&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;fmt&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Println&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;List of Network Device Groups:"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt; &lt;SPAN&gt;rows&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;status&lt;/SPAN&gt; &lt;SPAN&gt;string&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;err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&gt; &lt;SPAN&gt;nil&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Fatalf&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Row iteration error: &lt;/SPAN&gt;&lt;SPAN&gt;%v&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;err&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;the error i am facing is :&amp;nbsp;&amp;nbsp;&lt;BR /&gt;2024/12/24 15:11:16 Failed to ping database: missing port in address&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 09:41:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/query-on-apis-to-fetch-specific-fields-from-ise/m-p/5240372#M593936</guid>
      <dc:creator>jagritibhardwaj471</dc:creator>
      <dc:date>2024-12-24T09:41:59Z</dc:date>
    </item>
  </channel>
</rss>

