Forum Discussion
sreebarcl_36723
Nimbostratus
Jul 20, 2018Backup of Configs in F5
I am trying to create a python script using iControl REST to create a backup(ucs file) of the F5 configs and then download the file using tftp to another server.
The API endpoint that I am using...
Samir_Jha_52506
Noctilucent
Jul 21, 2018Try with below commands, hope it will work.
POST /mgmt/tm/sys { "command":"save", "options":[{"ucs":"lab_backup_july21.ucs"}]}
Below syntax worked perfectly with V11.5
curl -v -sk -u admin:admin https://10.10.1.5/mgmt/tm/sys/ucs -H "Content-Type: application/json" -X POST -d '{"command":"save","name":"test_backup.ucs"}'
curl -sk -u admin:admin https://10.10.1.5/mgmt/tm/sys/ucs/ -H "Content-Type: application/json" -X POST -d '{"command":"save","options":[{"test21_july":""}]}' | python -m json.tool
Samir_Jha_52506
Noctilucent
Jul 25, 2018Don't see any issue with Script. Check the if any extra variable has added n creating issue.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
