I’ve been putting together some scripts to control our f5 via the iControl REST API but have run into some issues around permissions. I am trying to set a pool member to disabled. If I run as an admin account this all works but I’ve tried to set up a lesser privileged account to use instead. Every time I try and PATCH the object I get the following error
{ “code”: 400, “message”: “\“pool\” unexpected argument”, “errorStack”: [], “apiError”: 26214401 }
I have setup a new user and a new role. I’ve assigned the existing “iControl/REST ltm resources edit” and “iControl/REST ltm resources read” resource groups to the new role, and the new user to this role. From what I can see this should give full access over the pool members.
I am sending a PATCH request to ; with the following body {“state”: “user-up”,“session”: “user-disabled”} as well as Content-Type and X-F5-Auth-Token headers.
Version: BIG-IP 12.1.3
Any help would be greatly appreciated.