<?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 rest API rule modification with Panorama in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-rule-modification-with-panorama/m-p/46437#M1054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and thanks for whatever help you can provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a script that will modify one rule from enable to disable and back again via wget. I created a admin user on the panorama box, created a hash based on that user and password. when I run the script I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;response status="error" code="13"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;Could not find schema node for xpath /config/devices/entry[@name='local.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='Dana Test']&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the wget is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;wget --no-check-certificate "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://144.35.0.40/api/?type=config&amp;amp;action=set&amp;amp;key="&gt;https://144.35.0.40/api/?type=config&amp;amp;action=set&amp;amp;key=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;hash&amp;gt;=&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rule&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;s/entry[@name='Dana Test']&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;" --no-http-keep-alive -O output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;wget --no-check-certificate "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://144.35.0.40/api/?type=commit&amp;amp;action=all&amp;amp;cmd="&gt;https://144.35.0.40/api/?type=commit&amp;amp;action=all&amp;amp;cmd=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;commit-all&amp;gt;&amp;lt;shared-policy&amp;gt;&amp;lt;device-group&amp;gt;"Edge Firewall"&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;&amp;amp;key=&amp;lt;hash&amp;gt;=" --no-http-keep-alive -O output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cat output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 15:08:02 GMT</pubDate>
    <dc:creator>DChampine</dc:creator>
    <dc:date>2014-04-17T15:08:02Z</dc:date>
    <item>
      <title>rest API rule modification with Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-rule-modification-with-panorama/m-p/46437#M1054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and thanks for whatever help you can provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a script that will modify one rule from enable to disable and back again via wget. I created a admin user on the panorama box, created a hash based on that user and password. when I run the script I get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;response status="error" code="13"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;Could not find schema node for xpath /config/devices/entry[@name='local.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='Dana Test']&amp;lt;/line&amp;gt;&amp;lt;/msg&amp;gt;&amp;lt;/response&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the wget is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;wget --no-check-certificate "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://144.35.0.40/api/?type=config&amp;amp;action=set&amp;amp;key="&gt;https://144.35.0.40/api/?type=config&amp;amp;action=set&amp;amp;key=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;hash&amp;gt;=&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rule&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;s/entry[@name='Dana Test']&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;" --no-http-keep-alive -O output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;wget --no-check-certificate "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://144.35.0.40/api/?type=commit&amp;amp;action=all&amp;amp;cmd="&gt;https://144.35.0.40/api/?type=commit&amp;amp;action=all&amp;amp;cmd=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;commit-all&amp;gt;&amp;lt;shared-policy&amp;gt;&amp;lt;device-group&amp;gt;"Edge Firewall"&amp;lt;/device-group&amp;gt;&amp;lt;/shared-policy&amp;gt;&amp;lt;/commit-all&amp;gt;&amp;amp;key=&amp;lt;hash&amp;gt;=" --no-http-keep-alive -O output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cat output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 15:08:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/rest-api-rule-modification-with-panorama/m-p/46437#M1054</guid>
      <dc:creator>DChampine</dc:creator>
      <dc:date>2014-04-17T15:08:02Z</dc:date>
    </item>
  </channel>
</rss>

