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
Field | Type | Description | |||
---|---|---|---|---|---|
Name | String | “NetworkPortsCollection”. | |||
Members | Array | Items: A reference link to an element of NetworkPorts. | |||
Description | String | A Collection of NetworkPort resource instances. |
Status code
HTTP Status Code | Error Message ID |
---|---|
500 | InternalError |
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."
}
Give documentation feedback