GET – 网络端口集合
使用 GET 方法检索 Redfish 服务的 NetworkPort 集合中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/NetworkAdapters/{Location}/NetworkPorts
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Name | 字符串 | “NetworkPortsCollection”。 | |||
Members | 数组 | 项:NetworkPorts 元素的引用链接。 | |||
Description | 字符串 | “A Collection of NetworkPort resource instances.” |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"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."
}
提供反馈