{
"Members":[{
"@odata.id":"/redfish/v1/AccountService/Roles/admin"
},{
"@odata.id":"/redfish/v1/AccountService/Roles/user"
},{
"@odata.id":"/redfish/v1/AccountService/Roles/read-only"
}],
"Description":"Collection of Roles",
"@odata.type":"#RoleCollection.RoleCollection",
"@odata.id":"/redfish/v1/AccountService/Roles",
"[email protected]":3,
"Name":"Roles Collection",
"@odata.context":"/redfish/v1/$metadata#AccountService/Roles"
}
Request:
curl -k -u admin:Password https://10.10.10.10/redfish/v1/AccountService/Roles/admin
Response:
{
"IsPredefined":true,
"@odata.id":"/redfish/v1/AccountService/Roles/admin",
"AssignedPrivileges":["Login","ConfigureManager","ConfigureUsers",
"ConfigureSelf","ConfigureComponents"],
"Name":"User Role",
"@odata.context":"/redfish/v1/$metadata#AccountService/Roles/Members/$entity",
"RoleId":"admin",
"OemPrivileges":["OemClearLog","OemPowerControl","OemAccessVirtualMedia"],
"@odata.type":"#Role.v1_2_2.Role",
"Id":"admin",
"Description":"Admin User Role"
}
Retrieving Privilege Map
Response:
{
"PrivilegesUsed":["Login","ConfigureManager","ConfigureUsers","ConfigureSelf","ConfigureComponents"],
"Id":"PrivilegeMap",
"Name":"Privilege Registry",
"@odata.context":"/redfish/v1/$metadata#AccountService/PrivilegeMap",
"Mappings":[{
"Entity":"Manager",
"OperationMap":{
"POST":[{
"Privilege":["ConfigureManager","ConfigureUsers","ConfigureSelf","ConfigureComponents"]
}],
"GET":[{
"Privilege":["Login","ConfigureManager","ConfigureUsers","ConfigureSelf",
"ConfigureComponents","OemClearLog","OemPowerControl","OemAccessVirtualMedia"]
}]
}
},{
"Entity":"Chassis",
"OperationMap":{
"PATCH":[{
"Privilege":["ConfigureManager","ConfigureUsers","ConfigureSelf","ConfigureComponents"]
Cisco UCS C-Series Servers REST API Programmer's Guide
86
Cisco IMC REST API Examples
Examples of Server Tasks for 4.0(4)