Forum Discussion

patrickdaj_7040's avatar
patrickdaj_7040
Icon for Nimbostratus rankNimbostratus
Dec 19, 2014

expandSubcollections=true on iControl REST 11.4

Is there some trick to getting expandSubcollections to work on 11.4? I have been unsuccessful in getting the expansion to take place using the following:

!/usr/bin/python3
import json, requests
bigip_user = 'admin'
bigip_pass = 'my_password'
bigip_ip = '1.1.1.1'
bigip_virtual = 'test-v'

url = 'https://' + bigip_ip + '/mgmt/tm/ltm/virtual/' + bigip_virtual + '?expandSubcollections=true'
r = requests.get(url, auth=(bigip_user, bigip_pass), verify=False)
print(r.json()) 

I get a profilesReference and rulesReference but they don't expand as I saw in the REST 11.5 guide. I also, tried it with "&ver=11.5.0" with no better result. Perhaps this isn't available on 11.4?

2 Replies

  • I don't think it is. There is a way around this though but its somewhat time consuming. Essentially you need to use BIG-IQ to update the REST framework on the device.

     

    If you can get a trial license from your local SE this will do the trick and you should be able to do this from the BIG-IQ GUI as part of discovering the device.

     

    Alternatively, you can download and fire up BIG-IQ VE and still do this even if its not licensed. However, you'll need to use the /usr/lib/dco/packages/upd-adc/update_bigip.sh CLI script rather than the GUI. I had problems using it but got it working once I changed the admin password to match the default root password.

     

  • Thanks for the tip. I still can't seem to get expandSubcollections to work but it seems the upgrade provided some new APIs that have given me per-member stats without iterating through each member in a pool which takes a long time. I assume these are specifically for Big-IQ. Do you know if those are available on 11.5 and above or only on those upgraded from Big-IQ?

     

    {'link': 'https://localhost/mgmt/tm/cloud/ltm/node-addresses'}, {'link': 'https://localhost/mgmt/tm/cloud/ltm/pool-members'}, {'link': 'https://localhost/mgmt/tm/cloud/ltm/pools'}, {'link': 'https://localhost/mgmt/tm/cloud/ltm/virtual-servers'},