Hi everybody.
Could you please explain me how can I update only one of 15 existing portrules at LB without changing/deleting/modifying all of them and without need to place all rules in POST in array?
Can I put in POST only one portrule and in this case only one rule will be updated and other 14 will still exist without any changes?
You can’t. The array of rules is one field on the resource and you either don’t send it at all (to not change it) or provide a new complete value on PUT.
Thank you Vincent
So if I will send PUT to my lb, for example, only with new -lbConfig.config field(for HAproxy) then only this field will be updated and portRules still exist w/o changes and vise versa?
That’s a different question then you originally asked but didn’t with for the same reason… Only the top level keys you provide are updated on put, but this doesn’t apply recursively. So to change something inside lbConfig you need to send an entire new lbConfig.