Forum Discussion
VuongLe76_31178
Nimbostratus
May 09, 2017Limited rights for user API
How I can limited rights with user that use for API ? I want user API can only access:
/ --> GET
/* --> GET,PATCH
//* --> GET, PATCH, DELETE.
When I create new user via tmsh or GUI --> minimun righ...
Arnaud_Lemaire
Employee
Jun 07, 2017Yes you can do it exclusively through the rest API. here is an example of icontrol role creation.
POST https://192.168.142.17/mgmt/shared/authz/roles/
{
"name": "my_icontrol_group",
"userReferences": [
{
"link": "https://localhost/mgmt/shared/authz/users/my_rest_user"
}
],
"resources": [
{
"resourceMask": "/mgmt/tm/ltm/pool/~Common~pool_turnkey/members",
"restMethod": "GET"
},
{
"resourceMask": "/mgmt/tm/ltm/pool/~Common~pool_turnkey/members/*",
"restMethod": "PUT"
},
{
"resourceMask": "/mgmt/tm/ltm/pool/~Common~pool_turnkey/members/*",
"restMethod": "PATCH"
}
]
}
- Where my_icontrol_group is the name of the role.
- user references point to a group of users or here a single (or list of) user.
- resources define which uri in the API are available with which method.
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