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/{Location}/Ports

Request body

None

Response body

FieldTypeDescription

Name

String“PortsCollection”

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",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/Ports/1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/Ports/2"
},
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/Ports/3"
},
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/Ports/4"
}
],
"Description": "A collection of Port resource instances.",
"@odata.type": "#PortCollection.PortCollection",
"@odata.etag": "\"3fc9132f3b512727651\"",
"Name": "PortCollection",
"Members@odata.count": 4,
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot-13/Ports"
}