Forum Discussion
d2_21508
Nimbostratus
Oct 07, 2016upload bash script to f5 via API
Hi, I'm using v11.6.x of F5 BIG IP (LTM). Is there a way to use curl in order to upload shell script that will be later on used to create external monitor? Such upload can be done via System->File Ma...
TayF5un
Nimbostratus
Oct 08, 2016Hi, 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
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects