08-21-2019 01:48 AM
Hi,
In the vManage apidocs, apis are arranged with reference to resource collection. And permission for the apis will be enabled with the reference to feature selection.
Would like to understand for a specific feature, what are all the available APIs. For instance, if we enable Interface Read permission for a user group, then what are all the APIs that user can invoke successfully?
Thanks in advance!
Regards,
Vennila
08-21-2019 02:32 AM
Hi,
RBAC rules are same for GUI and APIs.
For example if user belongs to operator group, user can only view the information and can't do configuration on vManage GUI and similarly the user will not be able to trigger the API calls related to configuration of policies or templates.
Thanks,
Sai
09-01-2019 06:53 AM
09-03-2019 12:42 AM
Hi,
For example if the user-id belongs to user group netadmin or custom user group test, then we can use URI : https://vmanage-ip/dataservice/admin/usergroup and GET request to this returns the RBAC rules in below format.
"data": [ { "groupName": "test",
"tasks": [
{ "feature": "Policy",
"enabled": true,
"read": true,
"write": false },
{ "feature": "Routing",
"enabled": true,
"read": true,
"write": false },
<snip>
Based on above key values for "read" and "write" respective response will be returned as API response. If "write" is false for feature policy and if user tries to edit the policy configuration using API then response would be 403.
Thanks,
Sai
09-03-2019 12:48 AM
09-03-2019 01:37 AM
Hi,
We don't have API call or single doc to find associated API URLs for a RBAC category However, we can use below links to correlate the information.
For example if user has read permission for Interface category then user can run commands like "show interface" , "show arp" etc. ( please check section "User Group Authorization Rules for Operational Commands" in link https://sdwan-docs.cisco.com/Product_Documentation/Software_Features/SD-WAN_Release_16.3/02System_and_Interfaces/01_System_and_Interfaces_Overview/Role-Based_Access_with_AAA )
Now similar we have link ( https://sdwan-docs.cisco.com/Product_Documentation/Command_Reference/Command_Reference/vManage_REST_APIs/Real-Time_Monitoring_APIs/Interface ) which maps the CLI command to API URL.
We can identify the commands available for each RBAC category in the first link and in the second link we can see the API URLs associated for that command.
Thanks,
Sai
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide