跳到主要内容

GET – 端口集合

使用 GET 方法检索 Redfish 服务的端口集合中的属性。

请求 URL

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

请求正文

响应正文

字段类型描述

Name

字符串“PortsCollection”

Members

数组项:端口元素的引用链接

Description

字符串“A Collection of Port resource instances.”

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"@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"
}