F5 Rest API: PUT method is removing pool member properties
We are attempting to use the Rest API to update multiple pool members at a time. The way we are attempting to do that is by doing a PUT to a URL similar to this:
PUT
http:///mgmt/tm/ltm/pool/a-chris-test3 { "members" : [ { "name" : "hostname:0", "session" : "user-enabled", "state" : "user-up" , { "name" : "hostname2:0", "session" : "user-disabled", "state" : "user-down" } ] }
Even though the API documentation states “Modifying a configuration object: The PUT method allows modifications to properties of a configuration object without affecting any other properties.“, it looks like modifying the pool members in this way actually runs a “replace-all-with” command on the backend that actually wipes the ratio and other properties in the pool members.
Dec 14 09:19:05 hostname notice tmsh[7389]: 01420002:5: AUDIT - pid=7389 user=wtsltmt folder=/Common module=(tmos) status=[Command OK] cmd_data=modify ltm pool a-chris-test3 { members replace-all-with { hostname:0
Are we running into a bug?