Forum Discussion
mvo_65102
Nimbostratus
Jan 30, 2017Native tmsh/bash commands via REST API
Hi all,
is there a way to execute native tmsh or bash commands using the REST API?
As long as there are not all configurations controllable by REST i would like to execute some commands directly...
Satoshi_Toyosa1
Dec 10, 2018Ret. Employee
You can use the
/mgmt/tm/ltm/node endpoint for node creation instead of calling /mgmt/tm/util/bash to run the tmsh command. The equivalent curl command for tmsh create ltm node TEST3 address 3.3.3.3 is
curl -sku : https:///mgmt/tm/ltm/node \
-X POST -H 'Content-type: application/json' \
-d '{"name":"TEST3", "address":"3.3.3.3"}'
If Python is your choice, you may want to check the F5 Python SDK. See F5 Python SDK Documentation.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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