<?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: show running security-policy API limit in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/show-running-security-policy-api-limit/m-p/539696#M3355</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/287051"&gt;@kremiq&lt;/a&gt;, I tried to replicate this but was unable to. I created 2000 policies on a PA-3220, and both the following commands retrieved all the rules:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api/?key={{key}}&amp;amp;type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;running&amp;gt;&amp;lt;security-policy/&amp;gt;&amp;lt;/running&amp;gt;&amp;lt;/show&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api?key={{key}}&amp;amp;type=config&amp;amp;action=show&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try the second, as the first is the one you already tried. Failing that, the XML API is a part of the product, so is TAC supported, so you can raise a case to investigate further why you are only getting partial results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 12:42:38 GMT</pubDate>
    <dc:creator>JimmyHolland</dc:creator>
    <dc:date>2023-04-21T12:42:38Z</dc:date>
    <item>
      <title>show running security-policy API limit</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/show-running-security-policy-api-limit/m-p/539682#M3354</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to get all the running security policy via an API call&amp;nbsp;&lt;A href="https://live.paloaltonetworks.com/" target="_blank"&gt;https://FW/api/?type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;running&amp;gt;&amp;lt;security-policy&amp;gt;&amp;lt;/security-policy&amp;gt;&amp;lt;/running&amp;gt;&amp;lt;/show&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works, but I can only get around 1900 policies. All the rest is not shown. Is there any "start-at" of offset, pagging, or anything to be able to get the full security policy config?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 09:14:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/show-running-security-policy-api-limit/m-p/539682#M3354</guid>
      <dc:creator>kremiq</dc:creator>
      <dc:date>2023-04-21T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: show running security-policy API limit</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/show-running-security-policy-api-limit/m-p/539696#M3355</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/287051"&gt;@kremiq&lt;/a&gt;, I tried to replicate this but was unable to. I created 2000 policies on a PA-3220, and both the following commands retrieved all the rules:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api/?key={{key}}&amp;amp;type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;running&amp;gt;&amp;lt;security-policy/&amp;gt;&amp;lt;/running&amp;gt;&amp;lt;/show&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api?key={{key}}&amp;amp;type=config&amp;amp;action=show&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try the second, as the first is the one you already tried. Failing that, the XML API is a part of the product, so is TAC supported, so you can raise a case to investigate further why you are only getting partial results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 12:42:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/show-running-security-policy-api-limit/m-p/539696#M3355</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2023-04-21T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: show running security-policy API limit</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/show-running-security-policy-api-limit/m-p/539707#M3356</link>
      <description>&lt;P&gt;The second API call works, but this is not giving the output I am looking for. The issue is, you get the config with to objects names, they are not already replaced by the actual values.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 14:07:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/show-running-security-policy-api-limit/m-p/539707#M3356</guid>
      <dc:creator>kremiq</dc:creator>
      <dc:date>2023-04-21T14:07:53Z</dc:date>
    </item>
  </channel>
</rss>

