Forum Discussion
REST API Query
- 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'
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'
Thanks , I am able to use this to get a response.
In the API response, I am assuming the key "monitorStatus" indicates whether the member is down or up, is this correct?
- AlexBCTMay 23, 2021Cumulonimbus
That's correct.
If you look a bit further down in the response, you can also find these entries;
"sessionStatus": {
"description": "user-disabled"
},
"status.availabilityState": {
"description": "offline"
},
"status.enabledState": {
"description": "disabled"
},
"status.statusReason": {
"description": "Forced down"
This is showing you if the member is administratively down (Disabled / Forced Offline) - the example above is showing it with Forced Offline configured.
If you're happy with the answer. Would be great if you can flag the item as "Answered" so it can be closed and may benefit the rest of the community.
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