Forum Discussion
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
- Arnaud_Lemaire
Employee
Hi zero, which version of bigip are you running ?
- R_Marc
Nimbostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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