I’m trying to create and download a ucs via icontrol so we can have on-demand backups however i’ve run into a roadblock - I can’t seem to figure out how to download a ucs.
I can see in the UI that it’s been created however I haven’t found any documentation about how to actually download the ucs. Anyone have an idea about how to do this via curl or otherwise?
You can either use SSH to get the file, or use the iControl System.ConfigSync.download_configuration(). I wrote a perl example that illustrated how to use the file chunked APIs in the System.ConfigSync interface in the Perl Config Sync CodeShare sample.
It is possible to download via REST, but only from the /shared/images folder. So you should first move the file there with POST to /mgmt/tm/util/bash and then download the file using GET to /mgmt/cm/autodeploy/software-image-downloads using the content-range headers as has been showing in iControl Article DevCentral - An F5 Technical Community