<?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: XML API: Do we need to specify &amp;quot;localhost.localdomain&amp;quot; in the Device entry name? Why can we leave Device entry name as blank? in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-do-we-need-to-specify-quot-localhost-localdomain-quot-in/m-p/470501#M2965</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/89131"&gt;@HermanEdwards&lt;/a&gt;, the best way to validate anything with 100% conclusive proof is to export/backup the XML config file and look at it in a text editor/viewer. Here you will be able to see the configuration elements.&lt;/P&gt;
&lt;P&gt;Certainly in recent PAN-OS releases (per screenshot below for Panorama, where I have collapsed a lot of the lines of XML config), a large amount of config lives under the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;devices/entry[@name='localhost.localdomain']&lt;/FONT&gt; element, including Device Groups, Templates and stacks, Log Collectors, etc etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-03-04 at 12.07.45.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39481i8EAEBB21B6C182C1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-03-04 at 12.07.45.png" alt="Screenshot 2022-03-04 at 12.07.45.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In non-Panorama, therefore NGFW directly, it is slightly different, but still has the localhost.localdomain: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-03-04 at 12.20.23.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39483iE8FAE892175B82C8/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-03-04 at 12.20.23.png" alt="Screenshot 2022-03-04 at 12.20.23.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to your questions:&lt;/P&gt;
&lt;P&gt;When do we need to specify the name of the device entry? (e.g. 'localhost.localdomain') - Always&lt;BR /&gt;Is this value consistent across all Panorama versions? - Yes&lt;BR /&gt;By leaving it blank, does the value default to something?&amp;nbsp; - No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 12:21:10 GMT</pubDate>
    <dc:creator>JimmyHolland</dc:creator>
    <dc:date>2022-03-04T12:21:10Z</dc:date>
    <item>
      <title>XML API: Do we need to specify "localhost.localdomain" in the Device entry name? Why can we leave Device entry name as blank?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-do-we-need-to-specify-quot-localhost-localdomain-quot-in/m-p/468918#M2955</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt; While reading the &lt;A href="https://docs.paloaltonetworks.com/content/dam/techdocs/en_US/pdf/pan-os/10-1/pan-os-panorama-api/pan-os-panorama-api.pdf" target="_self"&gt;10.1 Guide&lt;/A&gt; and &lt;A href="https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-panorama-api/pan-os-xml-api-request-types/run-operational-mode-commands-api.html" target="_self"&gt;XML API guide&lt;/A&gt;, I see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Case1: actions where "&lt;SPAN&gt;localhost.localdomain" is included as the Device entry name in the xpath (e.g. "/config/devices/entry[@name=&lt;STRONG&gt;'localhost.localdomain'&lt;/STRONG&gt;]/device-group/entry[@name='paul']")&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Case2: actions where the entry name is ignored completely (e.g. "/config/devices/entry/vsys/entry[@name='vsys1']")&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;See how there is no [@name=&amp;lt;entry_name&amp;gt;] for "&lt;SPAN&gt;devices/entry"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;You can find more examples in this page&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-panorama-api/pan-os-xml-api-request-types/configuration-api/set-configuration.html" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-panorama-api/pan-os-xml-api-request-types/configuration-api/set-configuration.html&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When do we need to specify the name of the device entry? (e.g.&amp;nbsp;&lt;SPAN&gt;'localhost.localdomain')&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Is this value consistent across all Panorama versions?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;By leaving it blank, does the value default to something? I don't think this is the case, as xpath should represent a path to an object.&lt;UL&gt;&lt;LI&gt;I tried leaving the Device entry name as blank when doing Operation mode (see &lt;A href="https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-panorama-api/pan-os-xml-api-request-types/run-operational-mode-commands-api.html" target="_self"&gt;example&lt;/A&gt;), the update is successful. However, the update is applied to the wrong path, resulting in no effect on Panoroma UI.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 02:16:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-do-we-need-to-specify-quot-localhost-localdomain-quot-in/m-p/468918#M2955</guid>
      <dc:creator>HermanEdwards</dc:creator>
      <dc:date>2022-02-26T02:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: XML API: Do we need to specify "localhost.localdomain" in the Device entry name? Why can we leave Device entry name as blank?</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-do-we-need-to-specify-quot-localhost-localdomain-quot-in/m-p/470501#M2965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/89131"&gt;@HermanEdwards&lt;/a&gt;, the best way to validate anything with 100% conclusive proof is to export/backup the XML config file and look at it in a text editor/viewer. Here you will be able to see the configuration elements.&lt;/P&gt;
&lt;P&gt;Certainly in recent PAN-OS releases (per screenshot below for Panorama, where I have collapsed a lot of the lines of XML config), a large amount of config lives under the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;devices/entry[@name='localhost.localdomain']&lt;/FONT&gt; element, including Device Groups, Templates and stacks, Log Collectors, etc etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-03-04 at 12.07.45.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39481i8EAEBB21B6C182C1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-03-04 at 12.07.45.png" alt="Screenshot 2022-03-04 at 12.07.45.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In non-Panorama, therefore NGFW directly, it is slightly different, but still has the localhost.localdomain: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-03-04 at 12.20.23.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39483iE8FAE892175B82C8/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-03-04 at 12.20.23.png" alt="Screenshot 2022-03-04 at 12.20.23.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to your questions:&lt;/P&gt;
&lt;P&gt;When do we need to specify the name of the device entry? (e.g. 'localhost.localdomain') - Always&lt;BR /&gt;Is this value consistent across all Panorama versions? - Yes&lt;BR /&gt;By leaving it blank, does the value default to something?&amp;nbsp; - No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:21:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-do-we-need-to-specify-quot-localhost-localdomain-quot-in/m-p/470501#M2965</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-03-04T12:21:10Z</dc:date>
    </item>
  </channel>
</rss>

