Forum Discussion
RHird_220962
Nimbostratus
Sep 07, 2018Pool unexpected argument when trying to patch pool member
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 admi...
Satoshi_Toyosa1
Sep 11, 2018Ret. Employee
Unless you have a very specific need for a custom role, I would suggest you to use a ready-made role. Find the one most appropriate from Manual Chapter: User Roles. If you really want to use a custom role, take a look at iControl REST Fine-Grained Role Based Access Control. Because it's tricky, you may want to contact F5 Professional Services for consultation.
For your information, here's a curl command for creating a new user with the role "operator".
curl https:///mgmt/tm/auth/user -X POST -H "Content-type: application/json" \
-d '{"name":"newUser", "password":"newPassword", \
"shell":"tmsh", "partitionAccess":[{"name":"all-partitions", "role":"operator"}]}'
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects