SDWAN: NITRO API command to export configuration

How to export SDWAN configuration through NITRO API ?

Please use the below command to export SDWAN configuration through NITRO API:

NOTE: The configuration export NITRO API command is available only from 10.2 build.

First login to SDWAN device through NITRO API using below command .Then Export the configuration of SDWAN using the below command

To login:

————–

curl -X POST -c /tmp/cookies.txt -H “Content-Type:application/json” –insecure https://<MCN_IP>/sdwan/nitro/v1/config/login -d'{“login”:{“username”:”<username>”,”password”:”<password>”}}’ -v


To export a configuration:

————————————–

curl -X POST -b /tmp/cookies.txt -H “Content-Type: application/json” –insecure ‘https://<MCNIP>/sdwan/nitro/v1/config/config_package_export’ –data ‘{“config_package_export”: {“package_name”: “<pacakge name>”}}’ > (destination directory/Outputfilename.zip)

Related:

  • No Related Posts

Leave a Reply