Forum Discussion

Andy_Edwards_25's avatar
Andy_Edwards_25
Icon for Nimbostratus rankNimbostratus
May 01, 2016

Using iControlREST version 11.6 how can I get a gtm pool member's IP address

As I am looking through the documentation it seems that 'address' is one of the fields that is typically returned from the API. When I request the pool member there is no address key at all in the returned JSON.

Example of the JSON:

        {
            "enabled": true,
            "fullPath": "/Common/BigIP:www-v6-site",
            "generation": 2735,
            "kind": "tm:gtm:pool:members:membersstate",
            "limitMaxBps": 0,
            "limitMaxBpsStatus": "disabled",
            "limitMaxConnections": 0,
            "limitMaxConnectionsStatus": "disabled",
            "limitMaxPps": 0,
            "limitMaxPpsStatus": "disabled",
            "monitor": "default",
            "name": "BigIP:www-v6-site",
            "order": 2,
            "partition": "Common",
            "ratio": 1,
            "selfLink": "https://localhost/mgmt/tm/gtm/pool/~Common~www-site-pool/members/~Common~BigIP:www-v6-site?ver=11.6.0"
        }

I would really like to be able to use the information in the address key but I do not know how to have that included in the returned data. It certainly seems to be included by default in the ltm methods but not in the gtm as you can see above.

Thanks for your time

  • The address is part of the gtm server virtual servers object, not the gtm pool. The pool simply refers to the gttm server, and the name of the virtual on that gtm server

     

    In this case the fullpath is "/Common/BigIP:www-v6-site". If you pull the properties of /Common/BigIP, and iterate through the virtual servers associated with it, you should find www-v6-site, which will have a list of one or more addresses.

     

  • How can I find the same info in version 13.1.1.4? I tried but that still does not give the GTM pool member ip address(s).