Skip to main content

GET – Collection of network ports

Use the GET method to retrieve properties in NetworkPort collection for Redfish service.

Request URL

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

Request body

None

Response body

FieldTypeDescription

Name

String“NetworkPortsCollection”.

Members

ArrayItems: A reference link to an element of NetworkPorts.

Description

StringA Collection of NetworkPort resource instances.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/NetworkPorts/1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/NetworkPorts/2"
}
],
"@odata.type": "#NetworkPortCollection.NetworkPortCollection",
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/NetworkPorts",
"Members@odata.count": 2,
"@odata.etag": "\"8e527250b8722a01098e15a8e56f0aa4\"",
"Name": "NetworkPortCollection",
"Description": "A collection of NetworkPort resource instances."
}