I am trying to add a member to F5 using the below CURLs. Both of them fail with the error copied below
curl -u<username>:<password> -sk -XPOST -H "Content-type: application/json" -d '{"state": "present", "name": "myapp01", "host": "192.168.98.73", "port": "80", "pool": "deploypool", "partition": "Common", "monitor_state": "yes", "description": "First microservice", "connection_limit": 0, "rate_limit": 0, "ratio": 1}' 'https://192.168.60.50/mgmt/tm/ltm/pool/deploypool/members'
{"code":400,"message":"Found invalid JSON body in the request.","errorStack":[],"apiError":1}
curl -u<username>:<password> -sk -XPOST -H "Content-type: application/json" -d '{"members":[{"state: "present", "name": "myapp01", "host": "192.168.98.73", "port": "80", "pool": "deploypool", "partition": "Common", "monitor_state": "yes", "description": "First microservice", "connection_limit": 0, "rate_limit": 0, "ratio": 1}]}' 'https://192.168.60.50/mgmt/tm/ltm/pool/deploypool'
{"code":400,"message":"Found invalid JSON body in the request.","errorStack":[],"apiError":1}
To list node & pool member info
To add a pool member
To delete a pool member, delete the pool member & node
Hope this helps those in need