<?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: Find Single Rule - Pan Os Python in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/find-single-rule-pan-os-python/m-p/437922#M2799</link>
    <description>&lt;P&gt;There's an example script in the pan-os-python repo that shows how to retrieve all the security rules and checks the names for a particular one.&amp;nbsp; This should be a good starting point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/examples/ensure_security_rule.py" target="_blank"&gt;https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/examples/ensure_security_rule.py&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 23:16:10 GMT</pubDate>
    <dc:creator>gfreeman</dc:creator>
    <dc:date>2021-09-30T23:16:10Z</dc:date>
    <item>
      <title>Find Single Rule - Pan Os Python</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/find-single-rule-pan-os-python/m-p/432459#M2774</link>
      <description>&lt;P&gt;We are in the process of renaming all our FW rules.&amp;nbsp; I'd like to run a python script with Pan OS Python.&amp;nbsp; The script would look at a CSV file where in column1 is the current name, column2 is the new name, and column3 is an Audit Comment.&amp;nbsp; I'm able to do the first two tasks but can't for the life of me figure out how to tell python to find the name of a single rule.&amp;nbsp; Anyone know how to tell python to pull in all Security Rules then tell it what rule name to look for.&amp;nbsp; Once I have that I'm done with he code and would be happy to share if someone else is trying to do it this way.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 01:26:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/find-single-rule-pan-os-python/m-p/432459#M2774</guid>
      <dc:creator>RyanBess</dc:creator>
      <dc:date>2021-09-08T01:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Find Single Rule - Pan Os Python</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/find-single-rule-pan-os-python/m-p/437922#M2799</link>
      <description>&lt;P&gt;There's an example script in the pan-os-python repo that shows how to retrieve all the security rules and checks the names for a particular one.&amp;nbsp; This should be a good starting point:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/examples/ensure_security_rule.py" target="_blank"&gt;https://github.com/PaloAltoNetworks/pan-os-python/blob/develop/examples/ensure_security_rule.py&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 23:16:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/find-single-rule-pan-os-python/m-p/437922#M2799</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2021-09-30T23:16:10Z</dc:date>
    </item>
  </channel>
</rss>

