Forum Discussion
mvo_65102
Jan 30, 2017Nimbostratus
Native 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...
Eric_Flores_131
Feb 03, 2017Cirrostratus
Here is an example of bash over REST -
$ curl -sk -u 'admin:admin' -H 'Content-Type: application/json' -X POST \
-d '{"command": "run", "utilCmdArgs": "-c \"date -u\""}' \
https://$HOST/mgmt/tm/util/bash | jq .
{
"kind": "tm:util:bash:runstate",
"command": "run",
"utilCmdArgs": "-c \"date -u\"",
"commandResult": "Fri Feb 3 01:11:56 UTC 2017\n"
}
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