<?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 ISE 3.0 API script for getting zero hit policy set in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/ise-3-0-api-script-for-getting-zero-hit-policy-set/m-p/5156017#M3311</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have an ISE 3.0 with a lot of Authorization policy inside a policy set for remote access VPN, I know most of this policy set is not in use anymore, as ISE does not have a report section for showing the policy set with zero hits, I tried to use postman API to get the policy with zero hit count. following are the URL that I used for getting the information&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://x.x.x.x:443/api/v1/policy/network-access/policy-set" target="_blank" rel="noopener"&gt;https://x.x.x.x:443/api/v1/policy/network-access/policy-set&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://x.x.x.x:9060/api/v1/policy/network-access/policy-set" target="_blank" rel="noopener"&gt;https://x.x.x.x:9060/api/v1/policy/network-access/policy-set&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;https://x.x.x.x:9060/ers/config/policyset&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but non of them have output, Please let me know if the ISE save policy set hit count for a long time, if yes how can I get a report of for example policy set with zero hits for last 3 months,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 16:51:01 GMT</pubDate>
    <dc:creator>iraj-ahmadi-2010</dc:creator>
    <dc:date>2024-08-05T16:51:01Z</dc:date>
    <item>
      <title>ISE 3.0 API script for getting zero hit policy set</title>
      <link>https://community.cisco.com/t5/controllers/ise-3-0-api-script-for-getting-zero-hit-policy-set/m-p/5156017#M3311</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have an ISE 3.0 with a lot of Authorization policy inside a policy set for remote access VPN, I know most of this policy set is not in use anymore, as ISE does not have a report section for showing the policy set with zero hits, I tried to use postman API to get the policy with zero hit count. following are the URL that I used for getting the information&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://x.x.x.x:443/api/v1/policy/network-access/policy-set" target="_blank" rel="noopener"&gt;https://x.x.x.x:443/api/v1/policy/network-access/policy-set&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://x.x.x.x:9060/api/v1/policy/network-access/policy-set" target="_blank" rel="noopener"&gt;https://x.x.x.x:9060/api/v1/policy/network-access/policy-set&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;https://x.x.x.x:9060/ers/config/policyset&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but non of them have output, Please let me know if the ISE save policy set hit count for a long time, if yes how can I get a report of for example policy set with zero hits for last 3 months,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 16:51:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-3-0-api-script-for-getting-zero-hit-policy-set/m-p/5156017#M3311</guid>
      <dc:creator>iraj-ahmadi-2010</dc:creator>
      <dc:date>2024-08-05T16:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: ISE 3.0 API script for getting zero hit policy set</title>
      <link>https://community.cisco.com/t5/controllers/ise-3-0-api-script-for-getting-zero-hit-policy-set/m-p/5156446#M3312</link>
      <description>&lt;P&gt;Hi, I see in the doc the endpoint for APIv1 (ISE3.1 and above) is&amp;nbsp;&lt;EM&gt;/api/v1/policy/network-access/policy-set&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;According to the doc there is a hitcount (hitCounts):&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "response": [
    {
      "default": false,
      "id": "793f55af-ad78-4021-bbdc-6286724394f8",
      "name": "New Policy Set 1",
      "description": null,
      "hitCounts": 0,
      "rank": 0,
      "state": "enabled",
      "condition": {
        "link": null,
        "conditionType": "ConditionReference",
        "isNegate": false,
        "name": "Switch_Local_Web_Authentication",
        "id": "19d968b0-ebcb-4cdd-98e3-fe02e5521266",
        "description": "A condition to match authentication requests for Local Web Authentication from Cisco Catalyst Switches"
      },
      "serviceName": "Default Network Access",
      "isProxy": false,
      "link": {
        "rel": "self",
        "href": "https://{{ISE_IP}}/api/v1/policy/{{protocol}}/policy-set/793f55af-ad78-4021-bbdc-6286724394f8",
        "type": "application/json"
      }
    }
  ],
  "version": "1.0.0"
}&lt;/LI-CODE&gt;
&lt;P&gt;What's the exact ISE version you are using?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 12:52:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-3-0-api-script-for-getting-zero-hit-policy-set/m-p/5156446#M3312</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2024-08-06T12:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: ISE 3.0 API script for getting zero hit policy set</title>
      <link>https://community.cisco.com/t5/controllers/ise-3-0-api-script-for-getting-zero-hit-policy-set/m-p/5157133#M3313</link>
      <description>&lt;P&gt;Thank you for your response, the exact IasE version is 3.0.0.458, this url is not working in this version, it is more that 500 authorization policy in my remote access policy set, and probably most of them are useless, unfortunately i don't have ISE support and I can not update it to new version.&amp;nbsp;&lt;BR /&gt;thank you again for response&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 13:46:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/ise-3-0-api-script-for-getting-zero-hit-policy-set/m-p/5157133#M3313</guid>
      <dc:creator>iraj-ahmadi-2010</dc:creator>
      <dc:date>2024-08-07T13:46:26Z</dc:date>
    </item>
  </channel>
</rss>

