Forum Discussion
F5 Rest API: PUT method is removing pool member properties
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com