curl -GET https://10.10.10.10/redfish/v1/AccountService/Roles/admin -k -u
admin:Admin123
{
"IsPredefined":true,
"@odata.id":"/redfish/v1/AccountService/Roles/admin",
"AssignedPrivileges":["Login","ConfigureManager","ConfigureUsers","Con
figureSelf","ConfigureComponents"],
"Name":"User Role",
"@odata.context":"/redfish/v1/$metadata#AccountService/Roles/Members/$
entity",
"@odata.type":"#Role.1.0.0",
"OEMPrivileges":["OemClearLog","OemPowerControl"],
"Id":"admin",
"Description":"Admin User Role"
}
curl -GET https://10.10.10.10/redfish/v1/AccountService/Roles/user -k -u
admin:Admin123
{
"IsPredefined":true,
"@odata.id":"/redfish/v1/AccountService/Roles/user",
"AssignedPrivileges":["Login","ConfigureSelf","ConfigureComponents"],
"Name":"User Role",
"@odata.context":"/redfish/v1/$metadata#AccountService/Roles/Members/$
entity",
"@odata.type":"#Role.1.0.0",
"OEMPrivileges":[],
"Id":"user",
"Description":"User Role"
}
curl -GET https://10.10.10.10/redfish/v1/AccountService/Roles/read-only -
k -u admin:Admin123
{
"IsPredefined":true,
"@odata.id":"/redfish/v1/AccountService/Roles/read-only",
"AssignedPrivileges":["Login"],
"Name":"User Role",
"@odata.context":"/redfish/v1/$metadata#AccountService/Roles/Members/$
entity",
"@odata.type":"#Role.1.0.0",
"OEMPrivileges":[],
"Id":"read-only",
"Description":"ReadOnly User Role"
}
Logservices
Request:
curl -GET https://10.10.10.10/redfish/v1/Chassis/1/LogServices/SEL/Entries\?\$
top=2 -k -u admin:Admin123
{
"Members":[{
"@odata.id":"/redfish/v1/Managers/1/LogSerivce/SEL/Entries/1250",
"Id":"1250",
"EntryType":"SEL",
"Severity":"Normal",
"Message":"Node Manager: Operational Capabilities, Policy
Interface:Available Monitoring:Available Power Limiting:Available ",
Cisco UCS C-Series Servers REST API Programmer's Guide
40
Cisco IMC REST API Examples
Examples of Server Tasks