Demystifying iControl REST Part 2 - Understanding sub collections and how to use them
Published Jun 23, 2015
Version 1.0Was this article helpful?
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.