curl -GET https://10.10.10.10/redfish/v1/TaskService -u admin:password -k
Response:
{
"Tasks":{
"@odata.id":"/redfish/v1/TaskService/Tasks"
},
"@odata.id":"/redfish/v1/TaskService",
"LifeCycleEventOnTaskStateChange":false,
"Name":"Tasks Service",
"ServiceEnabled":true,
"@odata.type":"#TaskService.1.0.0",
"CompletedTaskOverWritePolicy":"Oldest",
"@odata.context":"/redfish/v1/$metadata#TaskService",
"Id":"TaskService",
"Status":{
"State":"Enabled",
"Health":"OK"
},
"Description":"Tasks Service"
}
Retrieving Tasks
Request:
curl -GET https://10.10.10.10/redfish/v1/TaskService/
Tasks -u admin:password -k
Response:
{
"Members":[{
"@odata.id":"/redfish/v1/TaskService/Tasks/BmcFwUpdate"
},{
"@odata.id":"/redfish/v1/TaskService/Tasks/BiosFwUpdate"
},{
"@odata.id":"/redfish/v1/TaskService/Tasks/BmcTechSupportExport"
},{
"@odata.id":"/redfish/v1/TaskService/Tasks/ImportBmcConfig"
},{
"@odata.id":"/redfish/v1/TaskService/Tasks/ExportBmcConfig"
}],
"Description":"Tasks",
"@odata.type":"#TaskCollection.1.0.0.TaskCollection",
"@odata.id":"/redfish/v1/TaskService/Tasks",
"[email protected]":5,
"Name":"Tasks",
"@odata.context":"/redfish/v1/$metadata#TaskService/Tasks"
}
Updating BIOS Firmware
Request:
Cisco UCS C-Series Servers REST API Programmer's Guide
28
Cisco IMC REST API Examples
Examples of Server Tasks