<?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: pan-os-python trying to pull list of security polices from  panorama using a specific device group in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/571437#M2059</link>
    <description>&lt;P&gt;If anybody interested in working with PanOS Python and Panorama -&amp;nbsp;&lt;A href="https://www.packetswitch.co.uk/palo-alto-pan-os-python-sdk-panorama/" target="_blank"&gt;https://www.packetswitch.co.uk/palo-alto-pan-os-python-sdk-panorama/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 11:22:23 GMT</pubDate>
    <dc:creator>vsurresh</dc:creator>
    <dc:date>2024-01-02T11:22:23Z</dc:date>
    <item>
      <title>pan-os-python trying to pull list of security polices from  panorama using a specific device group</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/566269#M2007</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;# This defines how we will connect to panorama&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;mypanorama&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;panorama&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Panorama&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;device&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;api_key&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;auth_key&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;# This defines the device group we will be connecting to&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;palo_device_group&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;panorama&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DeviceGroup&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;devicegroup&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;mypanorama&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;palo_device_group&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;=&lt;/SPAN&gt; &lt;SPAN&gt;PreRulebase&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;palo_device_group&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;rulebase&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;existing_policies&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;SecurityRule&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;refreshall&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;palo_device_group&lt;/SPAN&gt;&lt;SPAN&gt;)&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;the code above resutls in an empty object existing_policies&amp;nbsp; &amp;nbsp; anyone know what im missing ? im not sure ...&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Nov 2023 13:44:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/566269#M2007</guid>
      <dc:creator>JohnCrubaugh</dc:creator>
      <dc:date>2023-11-19T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: pan-os-python trying to pull list of security polices from  panorama using a specific device group</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/566729#M2016</link>
      <description>&lt;P&gt;here is the code i got working&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;# This defines how we will connect to panorama&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;mypanorama&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;panorama&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Panorama&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;device&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;api_key&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;auth_key&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;# This defines the device group we will be connecting to&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;palo_device_group&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;panorama&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DeviceGroup&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;devicegroup&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;mypanorama&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;palo_device_group&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;=&lt;/SPAN&gt; &lt;SPAN&gt;PreRulebase&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;palo_device_group&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;rulebase&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;existing_policies&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;SecurityRule&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;refreshall&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;rulebase&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Nov 2023 16:06:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/566729#M2016</guid>
      <dc:creator>JohnCrubaugh</dc:creator>
      <dc:date>2023-11-22T16:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: pan-os-python trying to pull list of security polices from  panorama using a specific device group</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/571437#M2059</link>
      <description>&lt;P&gt;If anybody interested in working with PanOS Python and Panorama -&amp;nbsp;&lt;A href="https://www.packetswitch.co.uk/palo-alto-pan-os-python-sdk-panorama/" target="_blank"&gt;https://www.packetswitch.co.uk/palo-alto-pan-os-python-sdk-panorama/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 11:22:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/571437#M2059</guid>
      <dc:creator>vsurresh</dc:creator>
      <dc:date>2024-01-02T11:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: pan-os-python trying to pull list of security polices from  panorama using a specific device group</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/573589#M2080</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to panorama apis. While I was following your snippet I got this error can you please help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pano = Panorama(panorma_url,api_key=panorma_api_key)&lt;BR /&gt;dg = DeviceGroup("Shared")&lt;BR /&gt;pano.add(dg)&lt;BR /&gt;rulebase = PostRulebase()&lt;BR /&gt;dg.add(rulebase)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;error is:&lt;/P&gt;
&lt;P&gt;[ERROR] 2024-01-19T05:21:37.944Z 88d3f5f9-8a4d-445d-86aa-e0dc5f3d8d46 Lambda failed with the error:'URLError: reason: [Errno -2] Name or service not known'&lt;BR /&gt;2024-01-19 05:21:37,944 - root - ERROR - Lambda failed with the error:'URLError: reason: [Errno -2] Name or service not known'&lt;BR /&gt;END RequestId: 88d3f5f9-8a4d-445d-86aa-e0dc5f3d8d46&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 05:28:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/pan-os-python-trying-to-pull-list-of-security-polices-from/m-p/573589#M2080</guid>
      <dc:creator>shanmukha.pss</dc:creator>
      <dc:date>2024-01-19T05:28:39Z</dc:date>
    </item>
  </channel>
</rss>

