Skip to content

How to commit candidate config with pan-os-php #450

Locked Answered by swaschkut
vinne81 asked this question in Q&A
Discussion options

You must be logged in to vote

HI Vincent,
thanks for reaching out.

Create to hear that you are writing your own Script to manipulate a PAN-OS Firewall configuration.

As in the past most of the people tried to avoid writing own scripts, the main focus is still on the predefined UTIL scripts:

  1. based on your example:
    pan-os-php type=address in=api://FIREWALL-MGMT-IP actions=create-addressgroup:GROUPNAME

  2. full commit
    pa_config-commit in=api://FIREWALL-MGMT-IP

The pa_config-commit is still under development, and there is already the plan available to bring this directly into the framework library, so that this can be used in the future with:

$panconf->API_commit_full($paconn)

I suggest to bring this into a FeatureReque…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vinne81
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants