Forum Discussion
Arindam_Majumd1
Nimbostratus
Apr 17, 2019what is the rest api details to load the entire configuration from a bigip device
I am looking for a rest api to read the entire configuration out of a big ip device.
- Satoshi_Toyosa1Ret. Employee
You can generate a UCS file and download.
Generate
curl -sku admin: https:///mgmt/tm/sys/ucs \ -X POST -H "Content-Type: application/json" \ -d '{"command":"save", "name":"/shared/images/sat.ucs"}'
By default, ucs files are saved under
. Here,/var/local/ucs
is specified because it is the location where you can download files via iControl REST./shared/images
Get the size of the file
curl -sku admin: https:///mgmt/tm/util/unix-ls \ -X POST -H "Content-Type: application/json" \ -d '{"command":"run", "utilCmdArgs":"-l /shared/images"}'
Download the file
curl -sku admin: https:///mgmt/cm/autodeploy/software-image-downloads/sat.ucs \ -H "Content-Type: application/octet-stream" \ -H "Content-Range: 0-41609/41610" -o sat.ucs
Specify the size of the file in
header: Start (0) - Last (size -1) / Total size.Content-Range
See Demystifying iControl REST Part 5: Transferring Files for more on iControl REST file transfer methods.
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