<?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: Panorama: How to Create/Get/Update the field &amp;quot;Audit Comment&amp;quot; of a Security Policy rule? in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/xml-api-panorama-how-to-create-get-update-the-field-quot-audit/m-p/468474#M754</link>
    <description>&lt;P&gt;Look like this should be posted in the API section instead. I will close this one and open a new one there.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 03:29:17 GMT</pubDate>
    <dc:creator>HermanEdwards</dc:creator>
    <dc:date>2022-02-25T03:29:17Z</dc:date>
    <item>
      <title>XML API: Panorama: How to Create/Get/Update the field "Audit Comment" of a Security Policy rule?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/xml-api-panorama-how-to-create-get-update-the-field-quot-audit/m-p/468414#M753</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Panorama version: 10.1 (latest)&lt;/LI&gt;
&lt;LI&gt;When creating/updating a Security Policy rule (see attached images for more info), I'm able to add/update Audit comment for a rule via Web browser by following this guide&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-web-interface-help/policies/audit-comment-archive.html" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-web-interface-help/policies/audit-comment-archive.html&lt;/A&gt;&amp;nbsp;. However, I fail to use XML API to simulate the same behaviours.&lt;/LI&gt;
&lt;LI&gt;On Panorama XML API request, there is no option to get/set the field "audit-comment". I followed this guide&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/explore-the-api/use-the-api-browser.html" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-panorama-api/get-started-with-the-pan-os-xml-api/explore-the-api/use-the-api-browser.html&lt;/A&gt;&amp;nbsp;to explore all fields for a given Policy rule. There is no "comment" or "audit-comment" field.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What's expected:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Similar to how we can edit/read the Description field of a Security Policy rule, we should be able to edit/read the Audit comment field of a rule as well.&lt;/LI&gt;
&lt;LI&gt;I believe we should have xpath like "&lt;SPAN&gt;/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='paul']/pre-rulebase/security/rules/entry[@name='paul-feb-24']/audit-comment" to read or update here.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HermanEdwards_1-1645745621315.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39321i1893152B8E7573E4/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HermanEdwards_1-1645745621315.png" alt="HermanEdwards_1-1645745621315.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;What's happening:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;From viewing Chrome's network tab (see attached), you can see that we should be able to access "audit-comment" for a Policy rule. However, I cannot access that field via XML API browser or manually calling it via curl.&lt;/LI&gt;
&lt;LI&gt;Could you tell me if this is something possible on Panorama?
&lt;UL&gt;
&lt;LI&gt;If yes, How do I access this Audit Comment field?&lt;/LI&gt;
&lt;LI&gt;If yes, Is this feature available from Panorama 8.0 as well?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&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-1645745433474.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/39320i9F051738B4BAF181/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="HermanEdwards_0-1645745433474.png" alt="HermanEdwards_0-1645745433474.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your help is much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 23:38:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/xml-api-panorama-how-to-create-get-update-the-field-quot-audit/m-p/468414#M753</guid>
      <dc:creator>HermanEdwards</dc:creator>
      <dc:date>2022-02-24T23:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: XML API: Panorama: How to Create/Get/Update the field "Audit Comment" of a Security Policy rule?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/xml-api-panorama-how-to-create-get-update-the-field-quot-audit/m-p/468474#M754</link>
      <description>&lt;P&gt;Look like this should be posted in the API section instead. I will close this one and open a new one there.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 03:29:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/xml-api-panorama-how-to-create-get-update-the-field-quot-audit/m-p/468474#M754</guid>
      <dc:creator>HermanEdwards</dc:creator>
      <dc:date>2022-02-25T03:29:17Z</dc:date>
    </item>
  </channel>
</rss>

