Skip to main content

GET – Network port properties

Use the GET method to retrieve properties in network port resource for Redfish service.

Request URL

GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/NetworkAdapters/{Location}/NetworkPorts/{1-N}

{Location}: Location of the corresponding NetworkAdapter device. {Location}=ob-X or slot-Y. ob stands for onboard device and slot stands for add-on card. X is the sequence number for onboard device starting from 1. Y is the slot number of add-on card.

{1-N}: Index of network physical port.

Request body

None

Response body

The response is a JSON object that contains the following parameters:

FieldTypeDescription

Id

StringIndex.

ActiveLinkTechnology

StringNetwork Port Active Link Technology

AssociatedNetworkAddresses

ArrayThe array of configured network addresses (MAC or WWN) that are associated with this Network Port

CurrentLinkSpeedMbps

NumberNetwork port current link speed.

Description

StringA Network Port represents a discrete physical port capable of connecting to a network.

LinkStatus

StringThe status of the link between this port and its link partner

Name

String"Physical Port X" (X = the Id value)

NetDevFuncMaxBWAlloc

ArrayThe array of minimum bandwidth allocation percentages for the Network Device Functions associated with this port
 

NetDevFuncMaxBWAlloc[]

ObjectExpanded
  

MaxBWAllocPercent

NumberThe maximum bandwidth allocation percentage allocated to the corresponding network device function instance
  

NetworkDeviceFunction

LinkLink to a NetworkDeviceFunction

PhysicalPortNumber

StringThe physical port number label for this port

PortMaximumMTU

NumberThe maximum transmission unit (MTU) that can be configured for this network port

Status

ObjectExpand
 

State

StringEnabled
 

Health

StringOK
 

HealthRollup

StringThis represents the health state of this resource and its dependent resources

SupprtedLinkCapabilities

ObjectExpanded
 

CapableLinkSpeedMbps[0]

ArrayThe set of link speed capabilities of this port.

Status code

HTTP Status CodeError Message ID
500InternalError

Response example

The following example JSON response is returned:

{
"AssociatedNetworkAddresses": [
"B02628C5541C"
],
"NetDevFuncMaxBWAlloc": [
{
"NetworkDeviceFunction": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/NetworkDeviceFunctions/1.1"
},
"MaxBWAllocPercent": null
}
],
"SupportedLinkCapabilities": {
"CapableLinkSpeedMbps": [
10737418240
]
},
"Id": "1",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"Name": "Physical Port 1",
"CurrentLinkSpeedMbps": null,
"ActiveLinkTechnology": "Ethernet",
"@odata.type": "#NetworkPort.v1_2_3.NetworkPort",
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/NetworkPorts/1",
"PortMaximumMTU": 72000,
"@odata.etag": "\"53ae26592e452ae923e\"",
"PhysicalPortNumber": "1",
"Description": "A Network Port represents a discrete physical port capable of connecting to a network."
}