<?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 refreshall() method usage in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/refreshall-method-usage/m-p/361850#M2495</link>
    <description>&lt;P&gt;Trying to understand the correct usage of the refreshall method&lt;/P&gt;&lt;P&gt;per documentation:&lt;/P&gt;&lt;P&gt;refreshall()&lt;BR /&gt;Refresh all Predefined Objects&lt;BR /&gt;This method refreshes all predefined objects. This includes applications, application containers, services,&lt;BR /&gt;and tags.&lt;BR /&gt;CAUTION: This method requires a lot of overhead on the device api to respond. Response time will vary&lt;BR /&gt;by platform, but know that it will generally take longer than a normal api request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pano = panos.panorama.Panorama(hostname=HOSTNAME, api_key=APIKEY)&lt;/P&gt;&lt;P&gt;pano.about()&lt;BR /&gt;{'hostname': '10.10.10.1'}&lt;BR /&gt;pano.refreshall()&lt;/P&gt;&lt;P&gt;*** TypeError: refreshall() missing 1 required positional argument: 'parent'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation doesn't seem to indicate an argument is required for the method? What am i doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Python version is 3.6.8&lt;/P&gt;&lt;P&gt;thanks R&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 07:29:23 GMT</pubDate>
    <dc:creator>risc527</dc:creator>
    <dc:date>2020-11-10T07:29:23Z</dc:date>
    <item>
      <title>refreshall() method usage</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/refreshall-method-usage/m-p/361850#M2495</link>
      <description>&lt;P&gt;Trying to understand the correct usage of the refreshall method&lt;/P&gt;&lt;P&gt;per documentation:&lt;/P&gt;&lt;P&gt;refreshall()&lt;BR /&gt;Refresh all Predefined Objects&lt;BR /&gt;This method refreshes all predefined objects. This includes applications, application containers, services,&lt;BR /&gt;and tags.&lt;BR /&gt;CAUTION: This method requires a lot of overhead on the device api to respond. Response time will vary&lt;BR /&gt;by platform, but know that it will generally take longer than a normal api request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pano = panos.panorama.Panorama(hostname=HOSTNAME, api_key=APIKEY)&lt;/P&gt;&lt;P&gt;pano.about()&lt;BR /&gt;{'hostname': '10.10.10.1'}&lt;BR /&gt;pano.refreshall()&lt;/P&gt;&lt;P&gt;*** TypeError: refreshall() missing 1 required positional argument: 'parent'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation doesn't seem to indicate an argument is required for the method? What am i doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Python version is 3.6.8&lt;/P&gt;&lt;P&gt;thanks R&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:29:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/refreshall-method-usage/m-p/361850#M2495</guid>
      <dc:creator>risc527</dc:creator>
      <dc:date>2020-11-10T07:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: refreshall() method usage</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/refreshall-method-usage/m-p/366006#M2505</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The refreshall() is used to return info from the device.&lt;/P&gt;&lt;P&gt;The argument you have to provide is the parent of the object type you are looking to get info on.&lt;/P&gt;&lt;P&gt;Assume you want to get address objects:&lt;/P&gt;&lt;P&gt;pano.add(ADDR)&lt;/P&gt;&lt;P&gt;ADDR = panos.objects.AddressObject()&lt;/P&gt;&lt;P&gt;ADDR_LIST = ADDR.refreshall(pano)&lt;/P&gt;&lt;P&gt;The result is a list of all shared address objects in panorama.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 16:41:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/refreshall-method-usage/m-p/366006#M2505</guid>
      <dc:creator>mrzepa2</dc:creator>
      <dc:date>2020-11-27T16:41:06Z</dc:date>
    </item>
  </channel>
</rss>

