Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get "global find" functionality with pan-os-python #559

Open
adi105 opened this issue Mar 29, 2024 · 0 comments
Open

How to get "global find" functionality with pan-os-python #559

adi105 opened this issue Mar 29, 2024 · 0 comments

Comments

@adi105
Copy link

adi105 commented Mar 29, 2024

Within PAN GUI, we can utilize the global find feature to identify the references of an object. Is there a way to mimic this behavior with pan-os-python?

As a specific example, let's say we have an AddressObject variable "addr" which points to an AddressObject, and we know that this object is referenced in three security PreRules across three different DeviceGroups in our PAN config. How can we obtain the rules in which this AddressObject is used?

In case there is an easier way to accomplish my end goal: I am trying to perform cleanup of duplicate AddressObjects (different names, same value). To do this, I am finding all duplicates, selecting one to keep, and wanting to replace all references of the old duplicate Address with the master address, then delete it. If there is a simpler way to accomplish the end goal, I am open to it.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant