Forum Discussion
upload bash script to f5 via API
Hi, I am sending sample curl used for uploading and updating external file.
curl -sk -u user:passwd https:///mgmt/tm/sys/file/data-group -H 'Content-Type: application/json' -X POST -d '{"name":"file_name","separator":";","source-path":"file:/var/tmp/file_name","type":"string"}'
curl -sk -u username:passwd https:///mgmt/tm/sys/file/data-group/file_name -H 'Content-Type: application/json' -X PUT -d '{"source-path":"file:/var/tmp/file_name"}'
This article is also very helpful; https://devcentral.f5.com/articles/icontrol-rest-101-getting-started
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
