<?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 Problems overriding a Panorama template via the XML API in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/problems-overriding-a-panorama-template-via-the-xml-api/m-p/429462#M53</link>
    <description>&lt;P&gt;I'm trying to disable via the XML API a IPSEC tunnel on a firewall which was configured using Panorama. I can manage to disable a locally created tunnel with the following GET request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://CENSORED/api/?key=CENSORED&amp;amp;type=config&amp;amp;action=edit&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/network/tunnel/ipsec/entry[@name='CENSORED']/disabled&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;However when I change the &lt;EM&gt;action&lt;/EM&gt; from &lt;EM&gt;edit&lt;/EM&gt; to &lt;EM&gt;override&lt;/EM&gt; it gives me a seemingly nonsensical and contradictory error:&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;response status="error" code="12"&amp;gt;
&amp;lt;msg&amp;gt;
&amp;lt;line&amp;gt;Object cannot be overridden &amp;lt;/line&amp;gt;
&amp;lt;/msg&amp;gt;
&amp;lt;/response&amp;gt;​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation, error code 12 means an invalid &lt;EM&gt;xpath&lt;/EM&gt; or &lt;EM&gt;element&lt;/EM&gt;. I dont think this is accurate considering that the &lt;EM&gt;xpath&lt;/EM&gt; and &lt;EM&gt;element&lt;/EM&gt; work fine when the action is&amp;nbsp;&lt;EM&gt;edit&lt;/EM&gt;. And the message doesnt make sense considering that I can override this object via the web UI. Is anyone here familiar with doing overrides via the XML API and know what i'm doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if I use the&amp;nbsp;&lt;EM&gt;debug cli on&lt;/EM&gt; on command and create an override via the CLI, it tells me XML request is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;request cmd="override" obj="/config/devices/entry[@name='localhost.localdomain']/network/tunnel/ipsec/entry[@name='Azure-DR']" cookie="9297669682826545"&amp;gt;&amp;lt;/request&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;According to &lt;A href="https://supportcases.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClS1CAK" target="_self"&gt;this KB article&lt;/A&gt;, the GET request should be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://CENSORED/api/?key=CENSORED&amp;amp;type=config&amp;amp;action=override&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/network/tunnel/ipsec/entry[@name='CENSORED']&amp;amp;element=&lt;/LI-CODE&gt;&lt;P&gt;But that gives me the error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;response status="error" code="400"&amp;gt;
&amp;lt;result&amp;gt;
&amp;lt;msg&amp;gt;Missing value for parameter "element".&amp;lt;/msg&amp;gt;
&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;If I remove the&amp;nbsp;&lt;EM&gt;element&amp;nbsp;&lt;/EM&gt;parameter it gives me the same error, and any value I specify for the element parameter gives me the error&amp;nbsp;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;response status="error" code="12"&amp;gt;
&amp;lt;msg&amp;gt;
&amp;lt;line&amp;gt;Request doesn't have an object to be added&amp;lt;/line&amp;gt;
&amp;lt;/msg&amp;gt;
&amp;lt;/response&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 26 Aug 2021 17:13:00 GMT</pubDate>
    <dc:creator>MattBurnett</dc:creator>
    <dc:date>2021-08-26T17:13:00Z</dc:date>
    <item>
      <title>Problems overriding a Panorama template via the XML API</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/problems-overriding-a-panorama-template-via-the-xml-api/m-p/429462#M53</link>
      <description>&lt;P&gt;I'm trying to disable via the XML API a IPSEC tunnel on a firewall which was configured using Panorama. I can manage to disable a locally created tunnel with the following GET request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://CENSORED/api/?key=CENSORED&amp;amp;type=config&amp;amp;action=edit&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/network/tunnel/ipsec/entry[@name='CENSORED']/disabled&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;However when I change the &lt;EM&gt;action&lt;/EM&gt; from &lt;EM&gt;edit&lt;/EM&gt; to &lt;EM&gt;override&lt;/EM&gt; it gives me a seemingly nonsensical and contradictory error:&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;response status="error" code="12"&amp;gt;
&amp;lt;msg&amp;gt;
&amp;lt;line&amp;gt;Object cannot be overridden &amp;lt;/line&amp;gt;
&amp;lt;/msg&amp;gt;
&amp;lt;/response&amp;gt;​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation, error code 12 means an invalid &lt;EM&gt;xpath&lt;/EM&gt; or &lt;EM&gt;element&lt;/EM&gt;. I dont think this is accurate considering that the &lt;EM&gt;xpath&lt;/EM&gt; and &lt;EM&gt;element&lt;/EM&gt; work fine when the action is&amp;nbsp;&lt;EM&gt;edit&lt;/EM&gt;. And the message doesnt make sense considering that I can override this object via the web UI. Is anyone here familiar with doing overrides via the XML API and know what i'm doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if I use the&amp;nbsp;&lt;EM&gt;debug cli on&lt;/EM&gt; on command and create an override via the CLI, it tells me XML request is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;request cmd="override" obj="/config/devices/entry[@name='localhost.localdomain']/network/tunnel/ipsec/entry[@name='Azure-DR']" cookie="9297669682826545"&amp;gt;&amp;lt;/request&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;According to &lt;A href="https://supportcases.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClS1CAK" target="_self"&gt;this KB article&lt;/A&gt;, the GET request should be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://CENSORED/api/?key=CENSORED&amp;amp;type=config&amp;amp;action=override&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/network/tunnel/ipsec/entry[@name='CENSORED']&amp;amp;element=&lt;/LI-CODE&gt;&lt;P&gt;But that gives me the error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;response status="error" code="400"&amp;gt;
&amp;lt;result&amp;gt;
&amp;lt;msg&amp;gt;Missing value for parameter "element".&amp;lt;/msg&amp;gt;
&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;If I remove the&amp;nbsp;&lt;EM&gt;element&amp;nbsp;&lt;/EM&gt;parameter it gives me the same error, and any value I specify for the element parameter gives me the error&amp;nbsp;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;response status="error" code="12"&amp;gt;
&amp;lt;msg&amp;gt;
&amp;lt;line&amp;gt;Request doesn't have an object to be added&amp;lt;/line&amp;gt;
&amp;lt;/msg&amp;gt;
&amp;lt;/response&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Aug 2021 17:13:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/problems-overriding-a-panorama-template-via-the-xml-api/m-p/429462#M53</guid>
      <dc:creator>MattBurnett</dc:creator>
      <dc:date>2021-08-26T17:13:00Z</dc:date>
    </item>
  </channel>
</rss>

