Officially supported method for Panorama backup through API

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Officially supported method for Panorama backup through API

L3 Networker

Dear Team, 

It's look like there are 2 methods for Panorama backup through API.

curl -o {{server_backup_file}} -k https://{{Panorama_IP_@}}/api/?type=export&category=configuration&key={{Panorama_API_key>}}


curl -k https://{{Panorama_IP_@}}/api/?type=op&cmd=<save><config><to>{{Panorama_backup_file}}</to></config></save>&key={{Panorama_API_key}}

then retrieve the file through SCP

But the outputs look different:

[admin@elkrsg01 ~]$ file backup*
backup_API80.xml: UTF-8 Unicode text, with very long lines
backup_SCP80.xml: XML 1.0 document, ASCII text

[admin@elkrsg01 ~]$ wc -lwc backup*
1112 1439 126998 backup_API80.xml
3986 4313 177296 backup_SCP80.xml
5098 5752 304294 total

Customer would like to know which method is fully supported?



Sam Prabhu


Cyber Elite
Cyber Elite

Hi @sprabhu


Does it need to be done by an API call? If not, probably the best way is the scheduled config export ( ). This way panorama daily saves the panorama configuration and all the configurations of the managed firewalls to an SCP or FTP server.

With the API I would use the export which you already mentionned or this one for the panorama config:


And the running config of the firewalls with the same save command but add this to the url to get the firewall running config:



Hi ,


Thank you for your response.


Since they plan to automate the solution with API, they'd like to do all things by API.

SCP or FTP scheduling on Panorama is not an option. They want to trigger by an orchestration server the backup. 

They just need to know which command is the best and if there is some issue later be sure that it will be supported.



Sam Prabhu

L4 Transporter

Sorry to hit the way-back machine on this post, but I need to do this and have no idea how to start.  Can anyone step me though it?

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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!