Forum Discussion
Jad_Tabbara__J1
Oct 27, 2017Cirrostratus
Hello Puri,
You can achieve this using the following command :
To create the ifile use:
curl -sk -u admin:admin -H "Content-Type: application/json" -X POST https://x.x.x.x/mgmt/tm/sys/file/ifile -d '{"name":"ifile_name","source-path":"file:/path/of/file"}'
To update the ifile use:
curl -sk -u admin:admin -H "Content-Type: application/json" -X PUT https://x.x.x.x/mgmt/tm/sys/file/ifile/ifile_name -d '{"source-path":"file:/path/of/newFile"}'
Please let me know if it works for you.
I've already tested in my lab.
Waiting for your update.
Regards