Forum Discussion
Get serverside.curConns with Rest API
Hello,
I have seen this question asked a few times on the thread here but have not been able to find the answer I am looking for.
I am trying to use the Rest API to get the total amount of connections per pool or per node. So far, I have the following:
curl -sk -u username:password https:/nameOfMyF5/mgmt/tm/ltm/pool/~Common~poolname/stats
The above command will give me all of the stats for that pool, one of which will be serverside.curConns and its value. However, I would like to use this in a script and I want the RestAPI to only give me the curConns as a result.
Anyway to do this?
Thank you! Any help will be greatly appreciated, I am very new to using the Rest API.
4 Replies
- Brad_Parker
Cirrus
curl -sk -u username:password https:/nameOfMyF5/mgmt/tm/ltm/pool/~Common~poolname/stats?$select=serverside.curConns - mhouston_213290
Nimbostratus
Thank you Brad!!! That worked perfectly!
- JRahm
Admin
For other filter options available to you: https://devcentral.f5.com/s/articles/demystifying-icontrol-rest-part-3-how-to-pass-query-parameters-and-tmsh-options
- Amanpreet_Singh
Cirrostratus
Awesome guys ! Do you know how I can build the front-end (a web page, maybe) for displaying such information. Actually, I want to build a portal or a page which can show all the server connections in real-time, for monitoring reasons.
Thanks in advance !
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