<?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: Get Push To Device summary via API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/457490#M2875</link>
    <description>&lt;P&gt;Yes that is exactly correct.. Not just device groups, but also templates and templates stacks that have been committed but not yet pushed to the firewalls!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 14:10:58 GMT</pubDate>
    <dc:creator>abedJawhar</dc:creator>
    <dc:date>2022-01-07T14:10:58Z</dc:date>
    <item>
      <title>Get Push To Device summary via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/457342#M2873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to automate the push to device proccess through Panorama, I know that the xml API call for tat is commit all, but I was trying to find an API call that would shouw the device groups and templates that will be pushed (trying to get the values that appear in the dialog labeled "Push To Device" when you press on push to device in the GUI).&lt;/P&gt;&lt;P&gt;When I inspect the network calls in the browser, I get this request:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"action":"PanDirect","method":"run","data":["477deaaf37548a06bfdf2637a05a92b2","ConfigChangeDirect.getInitialPushScope",["no"]],"type":"rpc","tid":85}&lt;/LI-CODE&gt;&lt;P&gt;And the JSON response body is basically what I need, however when I use the debug page on Panorama, it does not show me this request or its response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know we can get the commit change summary from the xml API but I was hoping there would be a similar call for the push summary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one tried to do this before and succeeded? Is it all possible?&lt;/P&gt;&lt;P&gt;We're running Panorama 9.1!&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="Panorama" id="Panorama"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 19:57:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/457342#M2873</guid>
      <dc:creator>abedJawhar</dc:creator>
      <dc:date>2022-01-06T19:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get Push To Device summary via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/457469#M2874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/175399"&gt;@abedJawhar&lt;/a&gt;, what is the goal, because I don't quite understand, sorry. You mentioned the "values from the Push to Devices dialog box", so do you mean you want to make an API call that tells you: which Device Groups have changes committed in Panorama which have not yet been pushed to the NGFWs?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 10:08:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/457469#M2874</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-01-07T10:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Push To Device summary via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/457490#M2875</link>
      <description>&lt;P&gt;Yes that is exactly correct.. Not just device groups, but also templates and templates stacks that have been committed but not yet pushed to the firewalls!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:10:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/457490#M2875</guid>
      <dc:creator>abedJawhar</dc:creator>
      <dc:date>2022-01-07T14:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get Push To Device summary via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/463120#M2902</link>
      <description>&lt;P&gt;I think I would do this by looking at the status, rather than try to mimic the commit dialog box functionality.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, use&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;SPAN data-offset-key="4cubu-0-0"&gt;https://&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="4cubu-1-0"&gt;{{host}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="4cubu-2-0"&gt;/api/?key=&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="4cubu-3-0"&gt;{{key}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN data-offset-key="4cubu-4-0"&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp;type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;devicegroups/&amp;gt;&amp;lt;/show&amp;gt;&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;to check&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;shared-policy-status&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;&amp;gt;&lt;/FONT&gt; per device, looking for &lt;FONT face="courier new,courier"&gt;Out of Sync&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Similarly, use either&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN data-offset-key="emo2f-0-0"&gt;https://&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="emo2f-1-0"&gt;{{host}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="emo2f-2-0"&gt;/api/?key=&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="emo2f-3-0"&gt;{{key}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="emo2f-4-0"&gt;&amp;amp;type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;template-stack/&amp;gt;&amp;lt;/show&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN data-offset-key="4mins-0-0"&gt;&amp;nbsp;or &lt;FONT face="courier new,courier"&gt;https://&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="4mins-1-0"&gt;{{host}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="4mins-2-0"&gt;/api/?key=&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="4mins-3-0"&gt;{{key}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN data-offset-key="4mins-4-0"&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp;type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;templates/&amp;gt;&amp;lt;/show&amp;gt;&lt;/FONT&gt; per device, and look for&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;template-status&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;&amp;gt;&lt;/FONT&gt; value of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Out of Sync&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;That should allow you to build a list of devices which are out of sync, and therefore require their DG or Template/Stack to be pushed. Hope that helps?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Feb 2022 17:21:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/463120#M2902</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-02-03T17:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get Push To Device summary via API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/463170#M2904</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/4294"&gt;@JimmyHolland&lt;/a&gt;&amp;nbsp;! That works!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 18:42:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/get-push-to-device-summary-via-api/m-p/463170#M2904</guid>
      <dc:creator>abedJawhar</dc:creator>
      <dc:date>2022-02-03T18:42:38Z</dc:date>
    </item>
  </channel>
</rss>

