PANDEVICE in Python to query details of a specific Static Address Group


ATTENTION Customers, All Partners and Employees: The Customer Support Portal (CSP) will be undergoing maintenance and unavailable on Saturday, November 7, 2020, from 11 am to 11 pm PST. Please read our blog for more information.

L0 Member

PANDEVICE in Python to query details of a specific Static Address Group

I am relatively new to using PANOS/PANDEVICE libraries in Python with Panorama.  I am trying to figure out how to get a list of AddressObjects associated with a specific Static AddressGroup in the "Shared" DeviceGroup. 


object_name = "H-i-061d40e4013db52ae"
pano_device_group = panorama.DeviceGroup('shared')
object_list = pano.add(objects.AddressGroup(name=object_name)).refreshall(pano_device_group) 
This just returns a list of all AddressGroups defined in the shared DeviceGroup....
Someone rescue me please....
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!