iControl REST 101: Getting Started
So you’ve heard of this iControl REST thing, have you? You’re excited at the idea of a simple, light weight API that allows you programmatic access via tried and true tmsh commands with which you may...
Published Feb 13, 2014
Version 1.0Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Josh_Jacobson_4
Aug 02, 2016Altostratus
Since there's a little collection of one-liners, here's what the json parsing looks like in php ... you could use var_dump() instead of print_r(), or of course assign it to a variable and then do whatever to it -
curl -sk -u admin:admin "https://x.x.x.x/mgmt/tm/ltm" | php -r 'print_r(json_decode(stream_get_contents(STDIN)));'