<?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: Api to disable specific policy in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532345#M109756</link>
    <description>&lt;P&gt;Hello Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to pass parameters as suggested above. But I still observe the below error:&lt;/P&gt;
&lt;P&gt;ERROR: "Could not get schema node for xpath"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also i browsed by&amp;nbsp;&lt;SPAN&gt;"https: //FIREWALL_IP/api/?key=API_KEY&amp;amp;type&lt;/SPAN&gt;&lt;SPAN&gt;=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain'&lt;/SPAN&gt;&lt;SPAN&gt;], to check the XML shema but it looks very complicated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please suggest if there is PAN-OS restapi&amp;nbsp; to disable the specific rule?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 13:13:23 GMT</pubDate>
    <dc:creator>Shruthi123</dc:creator>
    <dc:date>2023-02-27T13:13:23Z</dc:date>
    <item>
      <title>Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532271#M109745</link>
      <description />
      <pubDate>Sat, 25 Feb 2023 00:23:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532271#M109745</guid>
      <dc:creator>Shruthi123</dc:creator>
      <dc:date>2023-02-25T00:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532276#M109746</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/276010"&gt;@Shruthi123&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the bottom of this doc -&amp;gt; &lt;A href="https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/pan-os-xml-api-request-types/configuration-api/set-configuration#id52c0a29e-5573-4a40-bccf-5585fee352f3" target="_blank" rel="noopener"&gt;https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/pan-os-xml-api-request-types/configuration-api/set-configuration#id52c0a29e-5573-4a40-bccf-5585fee352f3&lt;/A&gt;.&amp;nbsp; It works.&amp;nbsp; I tested it with curl.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The API browser is missing the &amp;amp;action=set parameter.&amp;nbsp; I guess it browses only.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&amp;nbsp; You can also make the change with the REST API, but the URL is different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 03:02:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532276#M109746</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-02-26T03:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532303#M109749</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much for helping in providing the API details. I tried to disable a specific policy using the API provided. I think I am not passing the value correctly.&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;api_url&lt;/SPAN&gt;&lt;SPAN&gt;=f&lt;/SPAN&gt;&lt;SPAN&gt;"https://&amp;lt;FIREWALL IP&amp;gt;/api/?key=&amp;lt;apikey&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain'&lt;/SPAN&gt;&lt;SPAN&gt;]/vsys/entry[@name='&lt;SPAN class="hljs-tag"&gt;&amp;lt;&lt;SPAN class="hljs-name"&gt;vsys1&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;]/rulebase/security/rules/entry[@name=&amp;lt;rule_&lt;/SPAN&gt;&lt;SPAN&gt;name&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;response1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;requests&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"GET"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;api_url&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;verify&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;response1&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ERROR:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;======&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&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&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I am confused as to what details to pass for the below :&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;entry[@name='localhost.localdomain']&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;entry[@name='&lt;SPAN class="hljs-tag"&gt;&amp;lt;&lt;SPAN class="hljs-name"&gt;vsys1&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;']&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Can you please guide me?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Feb 2023 22:03:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532303#M109749</guid>
      <dc:creator>Shruthi123</dc:creator>
      <dc:date>2023-02-26T22:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532304#M109750</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/276010"&gt;@Shruthi123&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Certainly!&amp;nbsp; Here is the URL without the &amp;lt; or &amp;gt; surrounding the variables.&amp;nbsp; Variables are now in UPPER_CASE and need to replaced.&amp;nbsp; if there are spaces in the rule name, you need the single quotes.&amp;nbsp; The &amp;lt; and &amp;gt; around the disabled are XML and remain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"https: //FIREWALL_IP/api/?key=API_KEY&amp;amp;type&lt;/SPAN&gt;&lt;SPAN&gt;=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain'&lt;/SPAN&gt;&lt;SPAN&gt;]/vsys/entry[@name='&lt;SPAN class="hljs-tag"&gt;&lt;SPAN class="hljs-name"&gt;vsys1&lt;/SPAN&gt;&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;]/rulebase/security/rules/entry[@name='RULE_NAME'&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These entries are most likely correct as is since they are default.&amp;nbsp; Notice the &amp;lt; and &amp;gt; around vsys1 have been removed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;entry[@name='localhost.localdomain'] = default local NGFW name&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;entry[@name='&lt;SPAN class="hljs-tag"&gt;&lt;SPAN class="hljs-name"&gt;vsys1&lt;/SPAN&gt;&lt;/SPAN&gt;'] = default vsys&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;FYI You can verify your XML Paths with the API browser on the NGFW, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;https: //FIREWALL_IP/api, &lt;SPAN&gt;and clicking through the menu.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;PS I put spaces after the https: so that it wouldn't automatically create a hyperlink.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2023 00:02:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532304#M109750</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-02-27T00:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532345#M109756</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to pass parameters as suggested above. But I still observe the below error:&lt;/P&gt;
&lt;P&gt;ERROR: "Could not get schema node for xpath"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also i browsed by&amp;nbsp;&lt;SPAN&gt;"https: //FIREWALL_IP/api/?key=API_KEY&amp;amp;type&lt;/SPAN&gt;&lt;SPAN&gt;=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain'&lt;/SPAN&gt;&lt;SPAN&gt;], to check the XML shema but it looks very complicated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please suggest if there is PAN-OS restapi&amp;nbsp; to disable the specific rule?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 13:13:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532345#M109756</guid>
      <dc:creator>Shruthi123</dc:creator>
      <dc:date>2023-02-27T13:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532346#M109757</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/276010"&gt;@Shruthi123&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The REST API will be more complicated.&amp;nbsp; For the API browser, don't put the other stuff in the URL.&amp;nbsp; Browse to https: //FIREWALL_IP/api.&amp;nbsp; Then you can drill down on the links to verify the correct.&amp;nbsp; There is no shortcut.&amp;nbsp; You have to verify the XML Path is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:02:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532346#M109757</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-02-27T14:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532404#M109764</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to find the Xpath from the below code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;fw&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;panos&lt;/SPAN&gt;&lt;SPAN&gt;.firewall.Firewall('hostname',user,password&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;rulebase&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;panos&lt;/SPAN&gt;&lt;SPAN&gt;.policies.Rulebase()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;fw&lt;/SPAN&gt;&lt;SPAN&gt;.add(&lt;/SPAN&gt;&lt;SPAN&gt;rulebase&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;rule&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SecurityRule&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'test-rule'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;rulebase&lt;/SPAN&gt;&lt;SPAN&gt;.add(&lt;/SPAN&gt;&lt;SPAN&gt;rule&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;val&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;rule&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;xpath&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;val&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;OUTPUT:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;=======&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='test-rule']&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Later i tried to execute as below but again got the same error:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;api_url&lt;/SPAN&gt;&lt;SPAN&gt;=f&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://10.101.1.10/api/?key=" target="_blank" rel="noopener"&gt;https://10.101.1.10/api/?key=&lt;/A&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;key&lt;/SPAN&gt;&lt;SPAN&gt;}&amp;amp;type=config&amp;amp;action=set&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='test-rule']&amp;amp;element=&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;response1&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;requests&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;api_url&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;verify&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;response1&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;OUTPUT:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;======&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;response status="error" code="3"&amp;gt;&amp;lt;msg&amp;gt;&amp;lt;line&amp;gt;Could not get schema node for xpath /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='test-rule']&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Please help me on this.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 00:27:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532404#M109764</guid>
      <dc:creator>Shruthi123</dc:creator>
      <dc:date>2023-02-28T00:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532409#M109765</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/276010"&gt;@Shruthi123&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The XPath looks correct.&amp;nbsp; This is a tough one.&amp;nbsp; I would verify the XPath with the curl command just like in the documentation.&amp;nbsp; Then you should be able to narrow it down to the URL or the Python script you are using.&amp;nbsp; If the curl command fails, it is the URL.&amp;nbsp; Your script is good, but you can also browse to https: //FIREWALL_IP/api.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 01:44:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532409#M109765</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-02-28T01:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532561#M109780</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/276010"&gt;@Shruthi123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Do you have experience scripting in any language? There's plenty of libraries that exist that may make this easier, but not knowing what you have experience in the API is going to be the default suggestion from people that we expect the requester to have some experience with. If you have a preferred scripting language you're used to working in, that may be easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the REST API, that documentation is available directly on the device at &lt;A href="https://&amp;lt;firewallip&amp;gt;/restapi-doc/" target="_blank"&gt;https://&amp;lt;firewallip&amp;gt;/restapi-doc/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You're looking to disable the rule which would be an edit, so you'll look under Policies/SecurityRules under PUT. Keep in mind that if you use the REST API you'll still need to use the XML API to actually commit the change if you want this process to be automated. The REST API still isn't feature complete, which is why any API discussion is going to generally default to the XML API.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 21:55:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/532561#M109780</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2023-02-28T21:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Api to disable specific policy</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/533710#M109906</link>
      <description>&lt;P&gt;I was able to disable the policy by making few changes to xpath as per the configuration setup in our environment .&lt;/P&gt;
&lt;P&gt;But when i try to disable and enable fields while testing i observe the "disable" field entry in the XML getting vanished.&lt;/P&gt;
&lt;P&gt;i.e. &amp;lt;dsabled&amp;gt;yes&amp;lt;disabled&amp;gt;&amp;nbsp; --&amp;gt; This field is getting vanished in XML&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 01:31:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-to-disable-specific-policy/m-p/533710#M109906</guid>
      <dc:creator>Shruthi123</dc:creator>
      <dc:date>2023-03-09T01:31:46Z</dc:date>
    </item>
  </channel>
</rss>

