<?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 Performing a push to Shared using panos panorama gives error PanDeviceXapiError: commit-all is missing 'commit-all' in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/performing-a-push-to-shared-using-panos-panorama-gives-error/m-p/545673#M3383</link>
    <description>&lt;P&gt;Hi All, I'm trying to create a shared address object using panos.panorama. However I'm not able to proceed with pushing the configuration to the firewalls. I could create objects within device groups and push them successfully to the firewalls under the device group, but I haven't been successful with shared yet. Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from panos.panorama import Panorama
from panos.objects import AddressObject

if __name__ == "__main__":
    panorama = "10.0.0.1"
    username = "USERNAME"
    password = "PASSWORD"

    pano = Panorama(panorama,username, password)
    obj = AddressObject("Sample_Shared_Object", "1.1.1.1")
    pano.add(obj)
    obj.create()

    pano.commit_all(sync=True, sync_all=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the error on line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pano.commit_all(sync=True, sync_all=True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exception has occurred: PanDeviceXapiError commit-all is missing 'commit-all' pan.xapi.PanXapiError: commit-all is missing 'commit-all' During handling of the above exception, another exception occurred: File "C:\palo_alto_python_panos_scripts\Address_Objects\createAddressObjectInShared.py", line 47, in &amp;lt;module&amp;gt; pano.commit_all(sync=True, sync_all=True) panos.errors.PanDeviceXapiError: commit-all is missing 'commit-all'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read about the method&amp;nbsp;&lt;SPAN&gt;panorama.PanoramaCommitAll() where you could define the device groups where it will be pushed. However what I'm trying to do is to push on shared only. Does anyone know a solution to push Shared via panos.panorama? Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 01:18:53 GMT</pubDate>
    <dc:creator>Asurion_NetOps</dc:creator>
    <dc:date>2023-06-13T01:18:53Z</dc:date>
    <item>
      <title>Performing a push to Shared using panos panorama gives error PanDeviceXapiError: commit-all is missing 'commit-all'</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/performing-a-push-to-shared-using-panos-panorama-gives-error/m-p/545673#M3383</link>
      <description>&lt;P&gt;Hi All, I'm trying to create a shared address object using panos.panorama. However I'm not able to proceed with pushing the configuration to the firewalls. I could create objects within device groups and push them successfully to the firewalls under the device group, but I haven't been successful with shared yet. Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from panos.panorama import Panorama
from panos.objects import AddressObject

if __name__ == "__main__":
    panorama = "10.0.0.1"
    username = "USERNAME"
    password = "PASSWORD"

    pano = Panorama(panorama,username, password)
    obj = AddressObject("Sample_Shared_Object", "1.1.1.1")
    pano.add(obj)
    obj.create()

    pano.commit_all(sync=True, sync_all=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the error on line&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pano.commit_all(sync=True, sync_all=True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exception has occurred: PanDeviceXapiError commit-all is missing 'commit-all' pan.xapi.PanXapiError: commit-all is missing 'commit-all' During handling of the above exception, another exception occurred: File "C:\palo_alto_python_panos_scripts\Address_Objects\createAddressObjectInShared.py", line 47, in &amp;lt;module&amp;gt; pano.commit_all(sync=True, sync_all=True) panos.errors.PanDeviceXapiError: commit-all is missing 'commit-all'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read about the method&amp;nbsp;&lt;SPAN&gt;panorama.PanoramaCommitAll() where you could define the device groups where it will be pushed. However what I'm trying to do is to push on shared only. Does anyone know a solution to push Shared via panos.panorama? Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 01:18:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/performing-a-push-to-shared-using-panos-panorama-gives-error/m-p/545673#M3383</guid>
      <dc:creator>Asurion_NetOps</dc:creator>
      <dc:date>2023-06-13T01:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Performing a push to Shared using panos panorama gives error PanDeviceXapiError: commit-all is missing 'commit-all'</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/performing-a-push-to-shared-using-panos-panorama-gives-error/m-p/547823#M3388</link>
      <description>&lt;P&gt;Tried a workaround to only apply the commit and push to device groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I obtained the list of device groups via rest api, then crafted a function/method that would only select the device groups with firewalls under them. The reason for doing that is because the commit and push via panos did not work when I tried on parent device groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There might be a better approach, I just haven't spent time trying to push to a parent device group successfully.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 23:41:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/performing-a-push-to-shared-using-panos-panorama-gives-error/m-p/547823#M3388</guid>
      <dc:creator>Asurion_NetOps</dc:creator>
      <dc:date>2023-06-29T23:41:13Z</dc:date>
    </item>
  </channel>
</rss>

