Forum Discussion
Mike_Biancaniel
Nov 23, 2016Nimbostratus
1) An update does not perform a "deep" or recursive update on a resource. It is similar to a dict.update() in python. i.e. it replaces each attribute: e.g. old[LoadBalancingMode] = update[LoadBalancingMode], old[members] = new[members], &c.
This is standard for REST implementations. If you want to update the members, you need to send an update request to each member resource (
/pool//members//
)
2) Notice I said "update" instead of PUT or PATCH. At least as of v11.5.4, PUT works as an update. Essentially, PUT and PATCH seem to be identical. This is bad. PUT is supposed to be "replace", not "update". That's what PATCH is for.
That being said, even PATCH is not typically going to be recursive, although that is up to how it is implemented.