curl -GET https://10.10.10.10/redfish/v1/AccountService/Accounts/1 -k -u
admin:Admin123
{
"@odata.id":"/redfish/v1/AccountService/Accounts/1",
"Links":{
"Role":["/redfish/v1/AccountService/Roles/admin"]
},
"Name":"User Account",
"@odata.context":"/redfish/v1/$metadata#AccountService/Accounts/Member
s/$entity",
"@odata.type":"#ManagerAccount.1.0.0",
"RoleId":"admin",
"Description":"User Account",
"Id":"1",
"Enabled":true,
"Locked":false,
"UserName":"admin"
}
curl -GET https://10.10.10.10/redfish/v1/AccountService/Accounts/2 -k -u
admin:Admin123
{
"@odata.id":"/redfish/v1/AccountService/Accounts/2",
"Links":{
"Role":["/redfish/v1/AccountService/Roles/user"]
},
"Name":"User Account",
"@odata.context":"/redfish/v1/$metadata#AccountService/Accounts/Member
s/$entity",
"@odata.type":"#ManagerAccount.1.0.0",
"RoleId":"user",
"Description":"User Account",
"Id":"2",
"Enabled":true,
"Locked":false,
"UserName":"username"
}
Roles
Request:
curl -GET https://10.10.10.10/redfish/v1/AccountService/Roles -k -u
admin:Admin123
{
"Members":[{
"@odata.id":"/redfish/v1/AccountService/Roles/admin"
},{
"@odata.id":"/redfish/v1/AccountService/Roles/user"
},{
"@odata.id":"/redfish/v1/AccountService/Roles/read-only"
}],
"@odata.type":"#RoleCollection.1.0.0.RoleCollection",
"@odata.id":"/redfish/v1/AccountService/Roles",
"Name":"Roles Collection",
"@odata.context":"/redfish/v1/$metadata#AccountService/Roles"
}
Cisco UCS C-Series Servers REST API Programmer's Guide
39
Cisco IMC REST API Examples
Examples of Server Tasks