GET – 服务器以太网接口集合
使用 GET 方法检索服务器的以太网接口集合资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/EthernetInterfaces
请求正文
无
响应正文
响应是包含以下参数的 JSON 对象:
| 字段 | 类型 | 描述 | |||
|---|---|---|---|---|---|
Members  | 数组 | 项:EthernetInterface 元素的引用链接。  | |||
Name  | 字符串 | EthernetInterfaceCollection。  | |||
Description  | 字符串 | “A collection of EthernetInterface resource instances.”  | |||
状态代码
| HTTP 状态代码 | 错误消息 ID | 
|---|---|
| 500 | InternalError | 
响应示例
请求成功时,将返回类似于以下内容的消息正文:
{
    "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces",
    "Name": "EthernetInterfaceCollection",
    "@odata.context": "/redfish/v1/$metadata#EthernetInterfaceCollection.EthernetInterfaceCollection",
    "Members": [
        {
            "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/ToManager"
        },
        {
            "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/NIC1"
        },
        {
            "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/NIC2"
        }
    ],
    "@odata.type": "#EthernetInterfaceCollection.EthernetInterfaceCollection",
    "@odata.etag": "\"796d097492fa96e3f9e0be275beba605\"",
    "Members@odata.count": 3,
    "Description": "A collection of EthernetInterface resource instances."
}
提供反馈