Forum Discussion

zeroburn_136163's avatar
zeroburn_136163
Icon for Nimbostratus rankNimbostratus
Nov 03, 2014

iControl REST show content.

Following the documentation on page 29 of the REST user guide I am attempting to use the ?$stats=true to show content but can't seem to get it to work. I have tried with and without the backslash before the dollar as per the document. I think the syntax is correct, it certainly matches up with the example provided on p30.

 

xxxx@prometheus:~/vertica_traffic$ curl -k -u admin:xxxxxxx -H "Content-type: application/json" -X GET https://xxxxxxxx/mgmt/tm/ltm/pool/~qa~rmi_80_pool?\$stats=true | jq .

 

{ "code": 400, "message": "Query parameter $stats is invalid.", "errorStack": [] }

 

Pointers are gratefully received!

 

2 Replies

  • R_Marc's avatar
    R_Marc
    Icon for Nimbostratus rankNimbostratus

    Not sure what $stats is s'posed to be in your CLI there, but this is how I do it:

     

    curl -k -u admin -H "Content-type: application/json" -X GET https://bigip/mgmt/tm/ltm/pool/~Common~mypool/stats | python -m json.tool