<?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: Enable/Disable security rules via XML API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14192#M353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Answer ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 19:40:39 GMT</pubDate>
    <dc:creator>hshah</dc:creator>
    <dc:date>2015-05-07T19:40:39Z</dc:date>
    <item>
      <title>Enable/Disable security rules via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14190#M351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;is it possible to enable / disable an existing security rule via XML API ?&lt;/P&gt;&lt;P&gt;Looking at the documentation (both the XML config guide and the api on the firewall) I found no useful informations on this topic &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://live.paloaltonetworks.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank's !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 10:43:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14190#M351</guid>
      <dc:creator>LCMember4164</dc:creator>
      <dc:date>2014-12-31T10:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Enable/Disable security rules via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14191#M352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do so using the following command:&lt;/P&gt;&lt;P&gt;To disable:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ip&amp;gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='&amp;lt;rule-name&amp;gt;']&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To enable:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;ip&amp;gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='&amp;lt;rule-name&amp;gt;']&amp;amp;element=&amp;lt;disabled&amp;gt;no&amp;lt;/disabled&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 21:47:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14191#M352</guid>
      <dc:creator>bat</dc:creator>
      <dc:date>2014-12-31T21:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Enable/Disable security rules via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14192#M353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Answer ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 19:40:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14192#M353</guid>
      <dc:creator>hshah</dc:creator>
      <dc:date>2015-05-07T19:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Enable/Disable security rules via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14193#M354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/u1/28201"&gt;bat&lt;/A&gt; thank you for being awesome.&amp;nbsp; question: any idea why a get on the same xpath (without the element arg) won't simply return an XML object with the state of a security rule?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;A href="https://172.19.78.2/api/?type=config&amp;amp;action=get&amp;amp;xpath=%2Fconfig%2Fdevices%2Fentry%5B%40name%3D%27localhost.localdomain%27%5D%2Fvsys%2Fentry%5B%40name%3D%27vsys1%27%5D%2Frulebase%2Fsecurity%2Frules%2Fentry%5B%40name%3D%27block+all+the+things%27%5D%2Fmember%5B%40name%3D%27disabled%27%5D&amp;amp;REST_API_TOKEN=2063850327" title="https://172.19.78.2/api/?type=config&amp;amp;action=get&amp;amp;xpath=%2Fconfig%2Fdevices%2Fentry%5B%40name%3D%27localhost.localdomain%27%5D%2Fvsys%2Fentry%5B%40name%3D%27vsys1%27%5D%2Frulebase%2Fsecurity%2Frules%2Fentry%5B%40name%3D%27block+all+the+things%27%5D%2Fmember%5B%40name%3D%27disabled%27%5D&amp;amp;REST_API_TOKEN=2063850327"&gt;https://firewall/api/?type=config&amp;amp;action=get&amp;amp;xpath=%2Fconfig%2Fdevices%2Fentry%5B%40name%3D%27localhost.localdomain%2…&lt;/A&gt; returns something completely useless, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="line" style="color: #000000; font-family: monospace; font-size: 13px;"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;response&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;status&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;success&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="html-attribute"&gt; &lt;SPAN class="html-attribute-name"&gt;code&lt;/SPAN&gt;="&lt;SPAN class="html-attribute-value"&gt;19&lt;/SPAN&gt;"&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line" style="color: #000000; font-family: monospace; font-size: 13px;"&gt;&lt;SPAN class="html-tag"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;result/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line" style="color: #000000; font-family: monospace; font-size: 13px;"&gt;&lt;SPAN class="html-tag"&gt;&amp;lt;/response&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="line"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;What the deuce does that tell me?&amp;nbsp; Neither the status or the code change based on the state of the rule, so... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 00:25:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14193#M354</guid>
      <dc:creator>CoreySteele</dc:creator>
      <dc:date>2015-06-26T00:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enable/Disable security rules via XML API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14194#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://live.paloaltonetworks.com/u1/24344"&gt;cjsteele&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know the status of rule query should be:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #006595;"&gt;https://&lt;/A&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;&amp;lt;ip&amp;gt;/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='&amp;lt;rule-name&amp;gt;']/disabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3b3b3b;"&gt;Let me know if this is what you are looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 00:34:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/enable-disable-security-rules-via-xml-api/m-p/14194#M355</guid>
      <dc:creator>bat</dc:creator>
      <dc:date>2015-06-26T00:34:23Z</dc:date>
    </item>
  </channel>
</rss>

