curl -GET https://10.10.10.10/redfish/v1/Chassis -k -u admin:Admin123
{
"Members":[{
"@odata.id":"/redfish/v1/Chassis/1"
}],
"@odata.type":"#Chassis.1.0.0.ChassisCollection",
"@odata.id":"/redfish/v1/Chassis",
"Name":"Chassis Collection",
"[email protected]":"1",
"@odata.context":"/redfish/v1/$metadata#Chassis"
}
{
"SerialNumber":"FCH2005V1EN",
"Links":{
"PoweredBy":["/redfish/v1/Chassis/1/Power"],
"CooledBy":["/redfish/v1/Chassis/1/Thermal"],
"ComputerSystems":["/redfish/v1/Systems/FCH2005V1EN"],
"ManagedBy":["/redfish/v1/Managers/CIMC"]
},
"@odata.id":"/redfish/v1/Chassis/1",
"Status":{
"State":"Enabled",
"Health":"Warning"
},
"AssetTag":"Unknown",
"Thermal":{
"@odata.id":"/redfish/v1/Chassis/1/Thermal"
},
"@odata.context":"/redfish/v1/$metadata#Chassis/Members/$entity",
"Power":{
"@odata.id":"/redfish/v1/Chassis/1/Power"
},
"LogServices":{
"@odata.id":"/redfish/v1/Chassis/1/LogServices"
},
"@odata.type":"#Chassis.1.0.0.Chassis",
"ChassisType":"Rack",
"Actions":{
"#Chassis.Reset":{
"Target":"/redfish/v1/Chassis/1/Actions/Chassis.Reset",
"[email protected]":["On","ForceOff"]
}
},
"IndicatorLED":"Off",
"Model":"UCS C240 M4S",
"Id":"1"
}
Retrieving Chassis Power Details
Request:
curl -GET https://10.10.10.10/redfish/v1/Chassis/1/Power -k -u
admin:Admin123
{
"Voltages":[{
"@odata.id":"/redfish/v1/Chassis/1/Power#/Voltages/PSU1_VOUT",
"Status":{
"State":"Enabled",
"Health":"OK"
},
"Name":"PSU1_VOUT",
Cisco UCS C-Series Servers REST API Programmer's Guide
14
Cisco IMC REST API Examples
Examples of Server Tasks