- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Add access-role argument help
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add access-role argument help
Trying to create a batch of Access Roles and add a user group to them at the same time. I've got the "add access-role" set up to create the ARs, but I run into issues when I try to add the user group to the access role. Newbie to the new API and scripting engine for R80.10 I guess.
add access-role name FW_AR machines "any" networks "any" remote-access-clients "any" users "????????"
The group I want to add is an internal user group, everything else is very vanilla.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The users field if being specific needs to be an 'object'. So we will access the internal users keys source and selection with users.source, and users.selection.
Example:
#mgmt_cli add access-role name "<access-role-name>" machines "any" networks "any" remote-access-clients "any" users.source "Internal User Groups" users.selection "<name-of-internal-group>"
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The users field if being specific needs to be an 'object'. So we will access the internal users keys source and selection with users.source, and users.selection.
Example:
#mgmt_cli add access-role name "<access-role-name>" machines "any" networks "any" remote-access-clients "any" users.source "Internal User Groups" users.selection "<name-of-internal-group>"
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct, and in the case of several users, you should use a list notation -
users.1.source "src1" users.1.selection "sel1" users.2.source "src2" users.2.selection "sel2" etc.
Robert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Robert, I didn't realize that I would need this until you mentioned it. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Boom, that's exactly what I was looking for. Thanks!
