API Guide

Table Of Contents
/api/AccountService/Roles
This URI represents the user roles.
GET method for Roles
This method returns a list of roles and the respective privileges.
Description Returns a list of user roles and respective privileges.
Privilege VIEW
HTTP response
codes
200
Example
response body
{
"@odata.context": "$metadata#Collection(AccountService.Role)",
"@odata.count": 5,
"value": [
{
"@odata.id": "/api/AccountService/Roles('10')",
"Id": "10",
"Description": "Privileges to do all operations",
"Name": "CHASSIS_ADMINISTRATOR",
"IsPredefined": true,
"AssignedPrivileges": [],
"OemPrivileges": [
"VIEW",
"APPLIANCE_SETUP",
"SECURITY_SETUP",
"MONITORING_SETUP",
"POWER_CONTROL",
"DEVICE_CONFIGURATION",
"OPERATING_SYSTEM_DEPLOYMENT",
"DEVICE_UPDATE",
"TEMPLATE_MANAGEMENT",
"BASELINE_MANAGEMENT",
"POWER_MANAGEMENT"
]
}
Table 25. Attributes
Attribute Description
Id Role record ID.
Description Role description.
Name Name for the role.
IsPredefined Indicates if the role is a predefined role.
AssignedPrivileges List of assigned privileges.
OemPrivileges List of OEM privileges for the role.
48 Application settings