- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-22-2021 07:32 PM
04-23-2021 09:54 AM
Predefined objects are retrieved from the predefined
namespace that is attached to the Panorama and Firewall namespaces. Also when invoking the refreshall_*
methods, they don't return results like object refreshall
functions, you have to access the results from the appropriate param on the predefined namespace itself:
from panos.panorama import Panorama
pano = Panorama("192.168.1.1", "admin", "admin")
pano.predefined.refreshall_applications()
print("Applications: {0}".format(
pano.predefined.application_objects.keys()),
)
print("Application Containers: {0}".format(
pano.predefined.application_container_objects.keys()),
)
04-23-2021 09:54 AM
Predefined objects are retrieved from the predefined
namespace that is attached to the Panorama and Firewall namespaces. Also when invoking the refreshall_*
methods, they don't return results like object refreshall
functions, you have to access the results from the appropriate param on the predefined namespace itself:
from panos.panorama import Panorama
pano = Panorama("192.168.1.1", "admin", "admin")
pano.predefined.refreshall_applications()
print("Applications: {0}".format(
pano.predefined.application_objects.keys()),
)
print("Application Containers: {0}".format(
pano.predefined.application_container_objects.keys()),
)
04-23-2021 11:48 AM
Thank you Gfreeman. I was able to retrieve the predefined application.
Pretty excited that that the forum is alive - got the help pretty quick!!.
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 LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!