Pool member status on F5 DNS objects via iControl REST
The equivalent of show gtm pool is available if /stats is appended to the REST query:
curl -skL --tlsv1 -u admin:admin -X GET https://10.10.10.1/mgmt/tm/gtm/pool/a/testpool/stats | jq .
{
"kind": "tm:gtm:pool:a:astats",
"generation": 195,
"selfLink": "https://localhost/mgmt/tm/gtm/pool/a/testpool/stats?ver=12.1.4.1",
"entries": {
"https://localhost/mgmt/tm/gtm/pool/a/testpool/~Common~testpool:A/stats": {
"nestedStats": {
"kind": "tm:gtm:pool:a:astats",
"selfLink": "https://localhost/mgmt/tm/gtm/pool/a/testpool/~Common~testpool:A/stats?ver=12.1.4.1",
"entries": {
"alternate": {
"value": 0
},
"dropped": {
"value": 0
},
"fallback": {
"value": 0
},
"tmName": {
"description": "/Common/testpool"
},
"poolType": {
"description": "A"
},
"preferred": {
"value": 0
},
"returnFromDns": {
"value": 0
},
"returnToDns": {
"value": 0
},
"status.availabilityState": {
"description": "offline"
},
"status.enabledState": {
"description": "enabled"
},
"status.statusReason": {
"description": "No enabled pool members available"
}
}
}
}
}
}