/Subscriptions/351357385644ea45d8544885d7655a8d -u
admin:password --insecure
Response:
Note:
curl with verbose option enabled receives an
http response '200 OK' for the above query.
Testing if an Event Receiver is Ready
Request:
curl -XPOST https://10.10.10.10/redfish/v1/EventService/Actions
/EventService.SubmitTestEvent -d'{"Protocol":"redfish",
"Destination":10.10.10.10","EventType":["Alert"],"Context":"mike-alert"} -u
admin:Admin123
Response:
{"EventType":"Alert","MessageId":"F000",
"Message":"Test event from Cisco IMC Redfish Engine",
"Context":"mike-alert"
}
Retrieving OEM Specific Actions
Request:
curl -GET https://10.10.10.10/redfish/v1/Managers/CIMC --insecure -u
admin:password
Response:
{
"DateTimeLocalOffset":"UTC+0530",
"Id":"CIMC",
"Links":{
"ManagerForChassis":["/redfish/v1/Chassis/1"],
"ManagerForServers":["/redfish/v1/Systems/FCH2005V1E4"]
},
"ManagerType":"CIMC",
"@odata.context":"/redfish/v1/$metadata#Managers/Members/$entity",
"@odata.id":"/redfish/v1/Managers/CIMC",
"VirtualMedia":{
"@odata.id":"/redfish/v1/Managers/CIMC/VirtualMedia"
},
"Description":"",
"LogServices":{
"@odata.id":"/redfish/v1/Managers/CIMC/LogServices"
},
"SerialInterfaces":{
"@odata.id":"/redfish/v1/Managers/CIMC/SerialInterfaces"
},
"FirmwareVersion":"3.0(1S8)",
"UUID":"E320FC46-31AC-4D93-BA64-C7FE5A139628",
Cisco UCS C-Series Servers REST API Programmer's Guide
26
Cisco IMC REST API Examples
Examples of Server Tasks