Prefix all commands with
https://10.1.1.1/api/?key=API_KEY
&type=op&cmd=<revert><config></config></revert>
&type=op&cmd=<load><config><from>running_config.xml</from></config></load>
&type=commit&cmd=<commit></commit>
&type=commit&cmd=<request><commit-lock><remove></remove></commit-lock></request>
Output will be a Gzipped TAR file.
&type=export&category=device-state
Add » device_state.tgz to cURL commands to send output to file.
Output will be a XML file.
&type=export&category=configuration
Add » running_config.xml to cURL commands to send output to file.
The code to upload a file in cURL is –form file=@running_config.xml which goes before the URL as a parameter
&type=import&category=configuration