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
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
rahvee
Mar 07, 2023Cirrus
Thanks 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.