Forum Discussion
iAzhar
Nimbostratus
May 20, 2021REST API Query
I would like to get the status of the pool and web servers [online/offline] via rest API. I’ve gone through the API documentation but couldn’t figure out what should be my API call. Can someone...
- May 21, 2021
Hi,
Have you seen this one? https://devcentral.f5.com/s/question/0D51T00006i7Yj4/icontrol-rest-getting-pool-member-status
Basically, this should be your curl request (change the name of the pool/IP and add user/pass):
curl --request GET --url 'https://192.168.10.31/mgmt/tm/ltm/pool/~Common~wiki-pool/members/stats'
DNSgeek_90802
Nimbostratus
Dec 28, 2009You rock dude. Thanks a bunch.
AhmedGalal219_3
Nimbostratus
Sep 26, 2018accept his answer if it work
- Which LTM version are you running? For 9.4.4+ you should remove the $:: prefix from the datagroup name references in the iRule. If you're on v10, you could also change matchclass to 'class match' to improve the efficiency of the iRule:
- Here is what I ended up with.
- That looks good. One small correction: you're missing the square braces around HTTP::path: