Forum Discussion
ASM Export JSON - size Limit ?
Hello Thanks for you reply,
I ended up at the same conclusion,
F5 Bigip API cannot manage large file and
I needs to upload or download file in 1024kb chunks parts.
Haven't find how to do it with ansible,
so I did it in shellwith:
url= "https://{{ inventory_hostname }}/mgmt/tm/asm/file-transfer/downloads/{{ export_filename }}"
output="{{ export_filename }}"
taille={{ task_status.json.result.fileSize }}
chunk=1048576
debut=0
fin=1048575
while [ $debut -lt $taille ]; do
if [ $fin -ge $taille ]; then
fin=$(($taille - 1))
fi
curl -s -H "Content-Range: $debut-$fin/$chunk" -o /tmp/partie_$debut -H "Content-Type: application/json" -H "X-F5-Auth-Token: {{ extracted_auth_token }}" $url
debut=$(($debut + $chunk))
fin=$(($fin + $chunk))
done
cat /tmp/partie_* > {{ dest_dir }}/{{ export_filename }}
if someone else have a better way to do it, I'm interrested...
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