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'
nhoh0ft, I don't have a 4.x unit to test on. claretian, you should be able to log server_addr to get the VIP address:
rule log_client_address {
log local0. "Client IP: " + client_addr + ", Server IP: " + server_addr
use pool corp_ldap_3895
}
Aaron
- 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:
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects