Forum Discussion
API Calls to F5 limited to 1024 KB download
I know. The call is tricky. The API for 'tmsh run util' is shown in the iControl REST User Guide Version 14.1 (PDF). Grab the file and look for the section "Using the run command".
For example, to move /tmp/sat (on the Unix filesystem) to /tmp/sat2, run this.
curl -sku admin:<pass> https://<host>/mgmt/tm/util/unix-mv \
-X POST -H "Content-Type: application/json" \
-d '{"command":"run", "utilCmdArgs": "/tmp/sat /tmp/sat2"}'
- saidshowJul 29, 2019Cirrus
You're a champion . That works. Thank you so much. .
I had a working script to automate the asm policy backups - the only catch was that it did not work on files over 1MB. Now to support the couple files that are over 1MB I know what I need to change.
- export policies
- move policies to /shared/images
- within my current download loop, add a nested loop that will check the web response code and adjust the byte range as required.
I'll park this shortly as I have spent more time than intended on this hold up. I will post my solution once i get it working. Thanks again for your assistance.
Recent Discussions
Related Content
* 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