Demystifying iControl REST Part 2 - Understanding sub collections and how to use them
iControl REST. It’s iControl SOAP’s baby brother, introduced back in TMOS version 11.4 as an early access feature but was released fully in version 11.5.
Several articles on basic usage ha...
Published Jun 23, 2015
Version 1.0JRahm
Admin
Christ Follower, Husband, Father, Technologist. I love community and I especially love THIS community. My background is networking, but I've dabbled in all the F5 iStuff, I'm a recovering Perl guy, and am very much a python enthusiast. Learning alongside all of you in this accelerating industry toward modern apps and architectures.JRahm
Admin
Christ Follower, Husband, Father, Technologist. I love community and I especially love THIS community. My background is networking, but I've dabbled in all the F5 iStuff, I'm a recovering Perl guy, and am very much a python enthusiast. Learning alongside all of you in this accelerating industry toward modern apps and architectures.rahvee
Cirrus
Mar 07, 2023Thanks for this, but I have a problem:
I query a virtual server
virtual_server = f5_session.load("/mgmt/tm/ltm/virtual")[0]
It has `profilesReference`, which is a subcollection, and I'm able to load it from the link (remove 'https://localhost' from the beginning). Now I've got a list of the profiles on that virtual server.
I need to remove a profile which has "default for SNI" enabled, and add a different profile that has "default for SNI." But due to the nature of SNI, there must be exactly one. If I try to do the DELETE first, it fails because one profile is needed to have "default for SNI." If I try to do the ADD first, it fails because only one can have "default for SNI." I need to have a way of simultaneously adding & deleting, in a single operation.