}
Adding User
Request:
curl
-XPOST
https://10.10.10.10/redfish/v1/AccountService/Accounts/5 -d
'{"UserName":"test5","Password":"Password123","RoleId":"admin","Enabled":"true"}' -u
admin:Admin@123 --insecure –v
Deleting User
Request:
curl
-XDELETE
https://10.10.10.10/redfish/v1/AccountService/Accounts/5 -u admin:Admin123
--
insecure -v
Modifying User
Request:
curl
-XPATCH
https://10.10.10.10/redfish/v1/AccountService/Accounts/5 -d
'{"UserName":"test5","Password":"Password123","RoleId":"admin","Enabled":"
false
"}' -u
admin:Admin123 --insecure -v
{
"Locked":false,
"RoleId":"admin",
"Id":"5",
"Description":"User Account",
"Enabled":false,
"Name":"User Account",
"UserName":"test5"
}
Powering Off a Server
Request:
curl -vv https://10.10.10.10/redfish/v1/Systems/FCH2005V1EN/Actions/System.Reset -d
'{"ResetType":"ForceOff"}' --insecure -u admin:Admin123
Powering On a Server
Request:
curl -vv https://10.10.10.10/redfish/v1/Systems
/FCH2005V1EN/Actions/System.Reset -d
'{"ResetType":"On"}' --insecure -u admin:Admin123
Clearing an SEL Log
Request:
Cisco UCS C-Series Servers REST API Programmer's Guide
50
Cisco IMC REST API Examples
Examples of Server Tasks