<?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: With XML API, How does &amp;quot;Require audit comment on policies&amp;quot; check work? ( Panorama -&amp;gt; Management tab) in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/468936#M2958</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My bad. I miss the path in the error messages... the Policy update involves empty Device entry as you can see in the message.&lt;/LI&gt;&lt;LI&gt;Manually update the Audit comment via Web browser is done at&amp;nbsp;/config/devices/&lt;STRONG&gt;entry[@name='localhost.localdomain']&lt;/STRONG&gt;/device-group/entry[@name='paul']/pre-rulebase/security/rules/entry[@name='paul-feb-24']&lt;UL&gt;&lt;LI&gt;Here, the Web browser specified the name for the Device entry.&lt;/LI&gt;&lt;LI&gt;As a result, updating the one on Web does not resolve the error.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Follow-up: While reading through XML API, some endpoints include Device entry name and some don't.&amp;nbsp;&lt;BR /&gt;If anyone know when the Device entry name should be ignored, please feel free to share.&lt;BR /&gt;For more info, examples where Device entry name gets ignored can be found at&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;/P&gt;&lt;P&gt;&lt;BR /&gt;So far, when editing the config of a Policy rule, I believe a device entry name should always be specified. This is b/c API explorer always shows it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Feb 2022 05:12:56 GMT</pubDate>
    <dc:creator>HermanEdwards</dc:creator>
    <dc:date>2022-02-26T05:12:56Z</dc:date>
    <item>
      <title>With XML API, How does "Require audit comment on policies" check work? ( Panorama -&gt; Management tab)</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/468931#M2957</link>
      <description>&lt;H3&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;I believe adding/updating an Audit comment of a Policy rule is independent from making changes to the policies.&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Operational command: Audit comment Update (type='op')&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;set audit-comment comment "paul manual edit" xpath​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Configuration command: Making changes to a Policy rule (type='config')&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;'/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='paul']/pre-rulebase/security/rules/entry[@name='paul-feb-24']'​&lt;/LI-CODE&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="HermanEdwards_1-1645848389351.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39355iED9AFC7CD197C799/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HermanEdwards_1-1645848389351.png" alt="HermanEdwards_1-1645848389351.png" /&gt;&lt;/span&gt;&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="HermanEdwards_0-1645848250022.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39354i488906AD5208A0B8/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HermanEdwards_0-1645848250022.png" alt="HermanEdwards_0-1645848250022.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;From Panorama -&amp;gt; Management tab&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HermanEdwards_2-1645848602426.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39356i42CF9C6ED13ED2D8/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HermanEdwards_2-1645848602426.png" alt="HermanEdwards_2-1645848602426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With enabled "Require audit comment on policies", I keep getting this Error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;OrderedDict([('response', OrderedDict([('@status', 'success'), ('@code', '13'), ('msg', \"Audit comments are missing for policy configuration being committed. Please add audit comments and try again.\\nList of xpaths:\\n/config/devices/entry/device-group/entry[@name='paul']/pre-rulebase/security/rules/entry[@name='paul-audit-comment-create-feb-24']\\n/config/devices/entry/device-group/entry[@name='paul']/pre-rulebase/security/rules/entry[@name='paul-feb-24']\")]))]) "&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Seeing that adding comments and making changes to a Policy rule requires 2 independent API calls, how can we make change both changes in one API call?&lt;UL&gt;&lt;LI&gt;I believe we just need to do 2 requests: (1) Update Audit comment =&amp;gt; (2) Update Policy rule =&amp;gt; (3) Commit&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Despite manually set the Audit comment of a rule to some texts, the Commit operation is still failing with the error message. Has anyone run into this before?&lt;UL&gt;&lt;LI&gt;Am I doing the updates properly?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;It's worth noting that I can manually commit via Web Browser though. It looks like committing via Web browser does not care about the Audit comment at all. I tried committing without any comment, and it still passes...&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Attempts&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Manually update the Audit comment of the Policy rule before committing,&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HermanEdwards_3-1645850461552.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39357iBB612291A3B7A03A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HermanEdwards_3-1645850461552.png" alt="HermanEdwards_3-1645850461552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Commit API calls will still fail with the error message I post above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 04:50:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/468931#M2957</guid>
      <dc:creator>HermanEdwards</dc:creator>
      <dc:date>2022-02-26T04:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: With XML API, How does "Require audit comment on policies" check work? ( Panorama -&gt; Management tab)</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/468936#M2958</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My bad. I miss the path in the error messages... the Policy update involves empty Device entry as you can see in the message.&lt;/LI&gt;&lt;LI&gt;Manually update the Audit comment via Web browser is done at&amp;nbsp;/config/devices/&lt;STRONG&gt;entry[@name='localhost.localdomain']&lt;/STRONG&gt;/device-group/entry[@name='paul']/pre-rulebase/security/rules/entry[@name='paul-feb-24']&lt;UL&gt;&lt;LI&gt;Here, the Web browser specified the name for the Device entry.&lt;/LI&gt;&lt;LI&gt;As a result, updating the one on Web does not resolve the error.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Follow-up: While reading through XML API, some endpoints include Device entry name and some don't.&amp;nbsp;&lt;BR /&gt;If anyone know when the Device entry name should be ignored, please feel free to share.&lt;BR /&gt;For more info, examples where Device entry name gets ignored can be found at&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;/P&gt;&lt;P&gt;&lt;BR /&gt;So far, when editing the config of a Policy rule, I believe a device entry name should always be specified. This is b/c API explorer always shows it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 05:12:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/468936#M2958</guid>
      <dc:creator>HermanEdwards</dc:creator>
      <dc:date>2022-02-26T05:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: With XML API, How does "Require audit comment on policies" check work? ( Panorama -&gt; Management tab)</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/470512#M2967</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;, yes, per &lt;A href="https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-do-we-need-to-specify-quot-localhost-localdomain-quot-in/m-p/470501" target="_self"&gt;the other thread&lt;/A&gt;, the localhost.localdomain is required. You will see it in the XML config file, in the API explorer, and other observable places (debugs, etc). I have requested that the documentation is changed to reflect this.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:29:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/470512#M2967</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2022-03-04T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: With XML API, How does "Require audit comment on policies" check work? ( Panorama -&gt; Management tab)</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/478154#M2983</link>
      <description>&lt;P&gt;just my two cents here.&amp;nbsp; The audit comment feature is very buggy and there are / have been a number of issues with it.&amp;nbsp; If you are looking to use it as an a way for auditing change, you may be better suited to look to something outside of this feature.&amp;nbsp; We're told things are fixed in some newer releases but we've hit a number of issues.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 00:14:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/with-xml-api-how-does-quot-require-audit-comment-on-policies/m-p/478154#M2983</guid>
      <dc:creator>RyanBess</dc:creator>
      <dc:date>2022-04-05T00:14:57Z</dc:date>
    </item>
  </channel>
</rss>

