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