<?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: Pushing from Panorama to firewall with API in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/228008#M65581</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94191"&gt;@RogerMccarrick&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My assumption why these commands are different is the following:&lt;/P&gt;&lt;P&gt;The devicegroupcommit is there already quite a while, then sometime the stack feature was added and with that a slightly new syntax (because they think it is easier this way?...). But to not break the existing implementations, the devicegroupcommit wasn't changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Partial commits are not possible so far with the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Remo&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 06:25:55 GMT</pubDate>
    <dc:creator>Remo</dc:creator>
    <dc:date>2018-08-23T06:25:55Z</dc:date>
    <item>
      <title>Pushing from Panorama to firewall with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227979#M65573</link>
      <description>&lt;P&gt;I am trying to commit changes to a Panorama and then have changes pushed to the firewall making API calls from a powershell script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the API I can:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;add&amp;nbsp;the firewall to the panorama&lt;/LI&gt;&lt;LI&gt;add the firewall to an existing template in the panorama&lt;/LI&gt;&lt;LI&gt;create a new device group on the panorama and add the firewall to it&lt;/LI&gt;&lt;LI&gt;Add rules (policies) to the device group.&lt;/LI&gt;&lt;LI&gt;Commit changes.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I can't seem to push that template and policies to the firewall with the API.&lt;/P&gt;&lt;P&gt;Here is the powershell code I use to commit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# Commit to Panorama
 Write-Host -foreground "Green" " Committing changes to Panorama"
 Write-Host ""
 $pancomURL = "https://panorama//api/?key=" + $panKey + "&amp;amp;type=commit&amp;amp;cmd=&amp;lt;commit&amp;gt;&amp;lt;/commit&amp;gt;"
&lt;BR /&gt; Invoke-WebRequest -uri $pancomURL&lt;/PRE&gt;&lt;P&gt;Here is what I try to push the changes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# Push to device from Panorama
 Write-Host -foreground "Green" " Pushing changes from Panorama to Palo Alto"
 Write-Host ""
 $pancomURL = "https://panorama//api/?key=" + $panKey + 
 "&amp;amp;type=commit&amp;amp;action=all&amp;amp;cmd=&amp;lt;commit-all&amp;gt;&amp;lt;shared-policy&amp;gt;&amp;lt;device-group&amp;gt;&amp;lt;entry name='" + $gpid + "'/&amp;gt;&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;"
 &lt;BR /&gt; Invoke-WebRequest -uri $pancomURL&lt;/PRE&gt;&lt;P&gt;What is the correct syntax for the pushing to the firewall using the API?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 22:11:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227979#M65573</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-08-22T22:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pushing from Panorama to firewall with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227996#M65575</link>
      <description>&lt;P&gt;Pushing the policy:&lt;/P&gt;&lt;PRE&gt;https://PANORAMA/api/?key=APIKEY&amp;amp;type=commit&amp;amp;action=all&amp;amp;cmd=&amp;lt;commit-all&amp;gt;&amp;lt;shared-policy&amp;gt;&amp;lt;device-group&amp;gt;&amp;lt;entry name="DEVICEGROUPNAME"/&amp;gt;&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;&lt;/PRE&gt;&lt;P&gt;Pushing the template stack:&lt;/P&gt;&lt;PRE&gt;https://PANORAMA/api/?key=APIKEY&amp;amp;type=commit&amp;amp;action=all&amp;amp;cmd=&lt;SPAN&gt;&amp;lt;commit-all&amp;gt;&amp;lt;template-stack&amp;gt;&amp;lt;name&amp;gt;TEMPLATESTACKNAME&amp;lt;/name&amp;gt;&amp;lt;/template-stack&amp;gt;&amp;lt;/commit-all&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... in my tests these API calls are working ...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 23:40:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227996#M65575</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2018-08-22T23:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pushing from Panorama to firewall with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227998#M65577</link>
      <description>&lt;P&gt;Thanks very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just came across the template push. Trying it shortly.&lt;/P&gt;&lt;P&gt;Sometime the syntax seems inconsistent, like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;device-group&amp;gt;&amp;lt;entry name="DEVICEGROUPNAME"/&amp;gt;&amp;lt;/device-group&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;template-stack&amp;gt;&amp;lt;name&amp;gt;TEMPLATESTACKNAME&amp;lt;/name&amp;gt;&amp;lt;/template-stack&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in one it's entry name=, and in the other it's &amp;lt;name&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But thanks again.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roger&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 23:44:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227998#M65577</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-08-22T23:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pushing from Panorama to firewall with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227999#M65578</link>
      <description>&lt;P&gt;Alo, how do you change it to partial to only commit changes of the user?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 23:50:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/227999#M65578</guid>
      <dc:creator>RogerMccarrick</dc:creator>
      <dc:date>2018-08-22T23:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pushing from Panorama to firewall with API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/228008#M65581</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/94191"&gt;@RogerMccarrick&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My assumption why these commands are different is the following:&lt;/P&gt;&lt;P&gt;The devicegroupcommit is there already quite a while, then sometime the stack feature was added and with that a slightly new syntax (because they think it is easier this way?...). But to not break the existing implementations, the devicegroupcommit wasn't changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Partial commits are not possible so far with the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Remo&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 06:25:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/pushing-from-panorama-to-firewall-with-api/m-p/228008#M65581</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2018-08-23T06:25:55Z</dc:date>
    </item>
  </channel>
</rss>

