<?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 List endpoints with an assigned SGT through API in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/list-endpoints-with-an-assigned-sgt-through-api/m-p/3909070#M457636</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In our rapid threat containment setup with Firepower and ISE, we assign a specific SGT when endpoints gets quarantined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to find a way to list all endpoints that are quarantined. Since the clients are assigned a specific tag, I am looking for a way to list all clients with this tag through the rest api. The quarantined client also gets an unique authorization profile assigned to them, so another possible way would be to list which clients are using this specific authorization profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know if this is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;/Jorgen&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 10:06:24 GMT</pubDate>
    <dc:creator>Chess Norris</dc:creator>
    <dc:date>2019-08-16T10:06:24Z</dc:date>
    <item>
      <title>List endpoints with an assigned SGT through API</title>
      <link>https://community.cisco.com/t5/network-access-control/list-endpoints-with-an-assigned-sgt-through-api/m-p/3909070#M457636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In our rapid threat containment setup with Firepower and ISE, we assign a specific SGT when endpoints gets quarantined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to find a way to list all endpoints that are quarantined. Since the clients are assigned a specific tag, I am looking for a way to list all clients with this tag through the rest api. The quarantined client also gets an unique authorization profile assigned to them, so another possible way would be to list which clients are using this specific authorization profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know if this is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;/Jorgen&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 10:06:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/list-endpoints-with-an-assigned-sgt-through-api/m-p/3909070#M457636</guid>
      <dc:creator>Chess Norris</dc:creator>
      <dc:date>2019-08-16T10:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: List endpoints with an assigned SGT through API</title>
      <link>https://community.cisco.com/t5/network-access-control/list-endpoints-with-an-assigned-sgt-through-api/m-p/3910375#M457640</link>
      <description>Just tested this and it works with curl. I assume you would want to automate in a python script etc. But here is the basic principle:&lt;BR /&gt;&lt;BR /&gt;curl -k --include --header 'Content-Type:application/json' --header 'Accept: application/json' --user {} --request GET https://{ISEPan}:9060/ers/config/ancendpoint&lt;BR /&gt;&lt;BR /&gt;Good luck &amp;amp; HTH!</description>
      <pubDate>Mon, 19 Aug 2019 17:32:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/list-endpoints-with-an-assigned-sgt-through-api/m-p/3910375#M457640</guid>
      <dc:creator>Mike.Cifelli</dc:creator>
      <dc:date>2019-08-19T17:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: List endpoints with an assigned SGT through API</title>
      <link>https://community.cisco.com/t5/network-access-control/list-endpoints-with-an-assigned-sgt-through-api/m-p/3910712#M457643</link>
      <description>&lt;P&gt;Thanks, I will test this as soon as I have access to the ISE server again.&lt;/P&gt;&lt;P&gt;I found an alternative method to get the SGT as well, using the following pxGrid API call -&amp;nbsp;&lt;A href="https://apl-iseadm01t.oneadr.net:8910/pxgrid/mnt/sd/getSessions/" target="_blank"&gt;https://&amp;lt;ise name&amp;gt;:8910/pxgrid/mnt/sd/getSessions/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This will give a lot of endpoint information including the SGT. (see example of the output below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"timestamp": "2019-08-19T15:28:07.451+02:00",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "state": "STARTED"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "callingStationId": "00:21:CC:C4:2B:58",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "calledStationId": "00:CC:FC:43:52:20",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "auditSessionId": "0000000000001532311AD9BE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ipAddresses": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "10.139.120.100"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "macAddress": "00:21:CC:C4:2B:58",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "nasIpAddress": "10.139.0.168",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "nasPortId": "GigabitEthernet1/0/32",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "nasPortType": "Ethernet",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "endpointProfile": "Windows7-Workstation",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "endpointOperatingSystem": "Windows 7 Enterprise",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; "ctsSecurityGroup": "SGT_QUARANTINE",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "providers": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "None"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;/Jorgen&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:52:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/list-endpoints-with-an-assigned-sgt-through-api/m-p/3910712#M457643</guid>
      <dc:creator>Chess Norris</dc:creator>
      <dc:date>2019-08-20T08:52:00Z</dc:date>
    </item>
  </channel>
</rss>

