Retrieving Network Ports Collection
Request:
curl -k -u admin:password
https://10.10.10.10/redfish/v1/Chassis/1/NetworkAdapter/MLOM/NetworkPorts
Response:
{
"Members":[{
"@odata.id":"/redfish/v1/Chassis/1/NetworkAdapter/MLOM/NetworkPorts/Port-0"
},{
"@odata.id":"/redfish/v1/Chassis/1/NetworkAdapter/MLOM/NetworkPorts/Port-1"
}],
"Description":"Collection of NetworkPort resource instances for this system",
"@odata.type":"#Cisco_NetworkPortCollection",
"@odata.id":"/redfish/v1/Chassis/1/NetworkAdapter/MLOM/NetworkPorts",
"[email protected]":2,
"Name":"NetworkPort Collection",
"@odata.context":"/redfish/v1/$metadata#Chassis/Members/$entity/NetworkAdapter/Members/$entity/NetworkPorts"
}
Retrieving Network Ports
Request:
curl -k -u admin:password
https://10.10.10.10/redfish/v1/Chassis/1/NetworkAdapter/MLOM/NetworkPorts/Port-0
Response:
{
"AssociatedNetworkAddresses":"00:78:88:F0:94:BA",
"@odata.id":"/redfish/v1/Chassis/1/NetworkAdapter/MLOM/NetworkPorts/Port-0",
"Name":"Port-0",
"@odata.context":"/redfish/v1/$metadata#Chassis/Members/$entity/NetworkAdapter/Members/$entity/NetworkPorts/Members/$entity",
"@odata.type":"#Cisco_NetworkPort",
"LinkStatus":"Down",
"Id":"0",
"SupportedLinkCapabilities":{
"LinkSpeedMbps":"-",
"LinkNetworkTechnology":"Ethernet"
},
"PhysicalPortNumber":"0"
}
Retrieving Update Service
Request:
curl -k -u admin:password https://10.10.10.10/redfish/v1/UpdateService
Response:
Cisco UCS C-Series Servers REST API Programmer's Guide
76
Cisco IMC REST API Examples
Examples of Server Tasks for 3.1(3)