Skip to main content

GET – Collection of ports

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

Request URL

GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/NetworkAdapters/Id/Ports/

Request body

None

Response body

FieldTypeDescription

Name

StringPortsCollection

Members

ArrayItems: A reference link to an element of Ports

Description

StringA Collection of Port resource instances.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
"@odata.context": "/redfish/v1/$metadata#PortCollection.PortCollection",
"@odata.etag": "\"9F381EA5\"",
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot3_0xb0000/Ports",
"@odata.type": "#PortCollection.PortCollection",
"Description": "Collection of Network Adapter Port",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot3_0xb0000/Ports/1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot3_0xb0000/Ports/2"
}
],
"Members@odata.count": 2,
"Name": "Network Adatpers Ports Collection"
}