Forum Discussion
Satoshi_Toyosa1
Apr 01, 2019Employee
iControl REST way.
GET /mgmt/tm/ltm/virtual-address
for getting virtual addresses: e.g.,
curl -sku : https:///mgmt/tm/ltm/virtual-address
If you only want the addresses, pipe the output to
| python -c 'import sys,json; o=json.load(sys.stdin); oo = [vip["address"] for vip in o["items"]]; print("\n".join(oo))'
GET /mgmt/tm/net/self
for getting the self IP addresses: e.g.,
curl -sku : https:///mgmt/tm/net/self
Pipe the output to the same python filter for getting the addresses.
I guess you don't need to get the management address since you have already used it in the above calls (
), however, to satisfy your curiousity, it is GET /mgmt/tm/sys/management-ip
.