<?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 XML API commit-all not working in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64552#M38676</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea why the following happens, and what the solution might be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to perform a commit-all via the REST API using the the following URL:&lt;/P&gt;&lt;PRE&gt;https://panorama.domain/api/?REST_API_TOKEN=hash&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;"Group-Name"&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following response even though the name of the device-group is correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;response status="error" code="17"&amp;gt;&lt;BR /&gt;  &amp;lt;msg&amp;gt;&lt;BR /&gt;    &amp;lt;line&amp;gt; &lt;BR /&gt;      commit-all -&amp;gt; shared-policy -&amp;gt; device-group has unexpected text.&lt;BR /&gt;    &amp;lt;/line&amp;gt;&lt;BR /&gt;    &amp;lt;line&amp;gt; &lt;BR /&gt;      commit-all -&amp;gt; shared-policy -&amp;gt; device-group is invalid&lt;BR /&gt;    &amp;lt;/line&amp;gt;&lt;BR /&gt;  &amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2015 08:07:25 GMT</pubDate>
    <dc:creator>Retired Member</dc:creator>
    <dc:date>2015-09-14T08:07:25Z</dc:date>
    <item>
      <title>XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64552#M38676</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea why the following happens, and what the solution might be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to perform a commit-all via the REST API using the the following URL:&lt;/P&gt;&lt;PRE&gt;https://panorama.domain/api/?REST_API_TOKEN=hash&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;"Group-Name"&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following response even though the name of the device-group is correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;response status="error" code="17"&amp;gt;&lt;BR /&gt;  &amp;lt;msg&amp;gt;&lt;BR /&gt;    &amp;lt;line&amp;gt; &lt;BR /&gt;      commit-all -&amp;gt; shared-policy -&amp;gt; device-group has unexpected text.&lt;BR /&gt;    &amp;lt;/line&amp;gt;&lt;BR /&gt;    &amp;lt;line&amp;gt; &lt;BR /&gt;      commit-all -&amp;gt; shared-policy -&amp;gt; device-group is invalid&lt;BR /&gt;    &amp;lt;/line&amp;gt;&lt;BR /&gt;  &amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:07:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64552#M38676</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2015-09-14T08:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64553#M38677</link>
      <description>&lt;P&gt;It seems like wrong device&amp;nbsp;group name. I'd check again for some extra spaces or if it's maybe case sensitive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 07:36:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64553#M38677</guid>
      <dc:creator>santonic</dc:creator>
      <dc:date>2015-09-14T07:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64555#M38678</link>
      <description>&lt;P&gt;That's what I thought at first as well, so I've already renamed the device group, made sure there are no additional characters or special characters (even took the dash out) and still I keep running into this error. I've also made a new device group, and it still won't work.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 08:03:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64555#M38678</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2015-09-14T08:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64573#M38688</link>
      <description>&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what works for me on 6.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;commit-all&amp;gt;&amp;lt;shared-policy&amp;gt;&amp;lt;device-group&amp;gt;&amp;lt;name&amp;gt;PA_VM_6.1&amp;lt;/name&amp;gt;&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;response status="success" code="19"&amp;gt;&amp;lt;result&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;Job enqueued with jobid 82&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;job&amp;gt;82&amp;lt;/job&amp;gt;&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you missing name tag? Also,&amp;nbsp; it failed when I had space after PA_VM_6.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try it?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:31:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64573#M38688</guid>
      <dc:creator>mdjeric</dc:creator>
      <dc:date>2015-09-14T13:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64581#M38690</link>
      <description>&lt;P&gt;That indeed works on 6.1, but still fails on 7.0:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;response status="error" code="17"&amp;gt;
  &amp;lt;msg&amp;gt;
    &amp;lt;line&amp;gt; 
      commit-all -&amp;gt; shared-policy -&amp;gt; device-group -&amp;gt; name has unexpected text.
    &amp;lt;/line&amp;gt;
    &amp;lt;line&amp;gt; 
      commit-all -&amp;gt; shared-policy -&amp;gt; device-group is invalid&lt;BR /&gt;    &amp;lt;/line&amp;gt;
  &amp;lt;/msg&amp;gt;
&amp;lt;/response&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Sep 2015 14:24:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/64581#M38690</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2015-09-14T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70501#M40533</link>
      <description>&lt;P&gt;I have a PAN config that is in json format that I want to implement on a PAN fw.&amp;nbsp; It seems that the fw will only take config in "set" command format or .xml.&amp;nbsp; Is there a way to drop this json config onto the fw, or convert it to a .xml format?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 15:59:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70501#M40533</guid>
      <dc:creator>Rodney_Adkins</dc:creator>
      <dc:date>2016-01-07T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70545#M40540</link>
      <description>&lt;P&gt;i think you are putting this in the wrong thread &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 04:25:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70545#M40540</guid>
      <dc:creator>Harshit</dc:creator>
      <dc:date>2016-01-08T04:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70552#M40541</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The XML document format to commit shared policies to device groups on Panorama using the PAN-OS XML API has changed in PAN-OS 7.0. This change is due to an enhancement to permit a commit to devices within the device group: the device group name is now an attribute node instead of a text node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The change in the XML API request is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;– PAN-OS 6.1 and earlier releases: /api/?type=commit&amp;amp;action=all&amp;amp;cmd= DeviceGroupName&lt;/P&gt;
&lt;P&gt;– PAN-OS 7.0 and later releases: /api/?type=commit&amp;amp;action=all&amp;amp;cmd= &amp;lt;entryname='devicegroupname'&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did find some bugs related to this which all seem to be fixed in PAN-OS 7.0.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still see the issue on 7.0.3 then I'd recommend opening a case with TAC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;-Kim.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 08:32:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70552#M40541</guid>
      <dc:creator>kiwi</dc:creator>
      <dc:date>2016-01-08T08:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70553#M40542</link>
      <description>&lt;P&gt;Thanks, forgot to post the solution myself. It indeed works as designed with &lt;EM&gt;&amp;lt;entryname='devicegroupname'&amp;gt;&lt;/EM&gt; instead of&amp;nbsp;&lt;EM&gt;devicegroupname&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 08:34:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70553#M40542</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2016-01-08T08:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: XML API commit-all not working</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70573#M40546</link>
      <description>&lt;P&gt;Agreed, my apologies.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 15:05:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-commit-all-not-working/m-p/70573#M40546</guid>
      <dc:creator>Rodney_Adkins</dc:creator>
      <dc:date>2016-01-08T15:05:57Z</dc:date>
    </item>
  </channel>
</rss>

