- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-30-2018 06:06 AM
Hi,
I need to automate downloading dynamic and software updates for my licensed products.
Is there any API provided by PaloAlto to download updates?
best regards
01-30-2018 10:34 AM
/api/?type=op&cmd=<request><system><software><install><version>version_number</version></install></software></system></request>
will start an install assuming the version you have the version downloaded.
/api/?type=op&cmd=<request><system><software><download><version>version_number</version></download></software></system></request>
will start a download.
Both of those calls return a job ID, which can be queried with:
/api/?type=op&cmd=<show><jobs><id>JOB_ID</id></jobs></show>
That should cover most of the useful calls. Definitely check out the XML API guide below as well as the API browser (https://IP/api on a firewall from a browser).
https://www.paloaltonetworks.com/documentation/80/pan-os/xml-api
01-30-2018 10:35 AM
Hello @marcin.sek,
I used my browser to go to my firewall at https://192.168.1.46/api.
I think that you may be interested in this xpath to start with
/config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/update-schedule
I got here by selecting, in this order:
Once you are on that page, you will see that you can futher explore the current settings associated with that which we would find in the UI under Device > Dynamic Updates.
I was not able to find in the API where one can view the software download information. I would caution against trying to schedule a software update, although I do understand that you might want to be able to remotely download, install, and reboot a firewall throught the API after you have identified a software version to which you want to upgrade.
02-23-2018 05:56 AM - edited 02-23-2018 06:06 AM
You answered how to download updates from firewall.
Thanks but not really helped.
Paloalto Firewall will be in closed network without access to internet. I have to write a script to automate updates. Script will download updates directly from producer and then manually moved (by cd or pendrive) to closed closed network and firewall should import those updates (also by script).
I need to download updates directly from "paloaltonetworks" and then import them to my firewall.
So is there any API that I could download software updates?
Best regards,
Andrzej Grymkowski
02-23-2018 02:28 PM
Hello,
Not sure if this would help, but will the PAN's be managed by a Panorama? Maybe have the Panorama have access to the internet and the PAN's get access only to the Panorama?
Just a thought.
02-26-2018 01:17 AM
No, there wont by any Panorama.
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!