"Port":443
},
"HostName":"C240-FCH2005V1EN",
"Telnet":{
"ProtocolEnabled":true,
"Port":23
},
"SSH":{
"ProtocolEnabled":true,
"Port":22
},
"IPMI":{
"ProtocolEnabled":false
},
"https":{
"ProtocolEnabled":true,
"Port":80
},
"VirtualMedia":{
"ProtocolEnabled":true
},
"Description":"Manager Network Service"
}
}
Retrieving Ethernet Interfaces Details
Request:
curl -GET https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces
-k -u admin:Admin123
{
"Members":[{
"@odata.id":"/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs"
}],
"@odata.type":"#EthernetInterface.1.0.0.EthernetInterface",
"@odata.id":"/redfish/v1/Managers/CIMC/EthernetInterfaces",
"Description":"Collection of EthernetInterfaces for this Manager",
"Name":"Ethernet Intefaces Collection",
"@odata.context":"/redfish/v1/$metadata#Managers/Members/$entity/Ether
netInterfaces"
}
Retrieving Message Registry Information
Request:
curl -GET https://10.10.10.10/redfish/v1/MessageRegistry -u
admin:password --insecure
Response:
{
"RegistryVersion":"1.0.0",
"OwningEntity":"Cisco Systems Inc.",
"Name":"Message Registry",
"@odata.context":"/redfish/v1/$metadata#MessageRegistry",
"@odata.id":"/redfish/v1/MessageRegistry",
"@odata.type":"#MessageRegistry.1.0.0.MessageRegistry",
Cisco UCS C-Series Servers REST API Programmer's Guide
22
Cisco IMC REST API Examples
Examples of Server Tasks