跳到主要内容

GET – BMC 以太网接口属性集合

使用 GET 方法检索 BMC 的以太网接口或主机接口集合资源中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Managers/1/EthernetInterfaces

请求正文

响应正文

字段类型描述

Name

字符串

EthernetInterfaceCollection

Description

字符串“A collection of EthernetInterface resource instances.”

Members

数组

项:EthernetInterface 元素的引用链接。

项数:1~N(取决于组件)

 Members[N]链接用户角色资源实例的链接。

状态代码

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

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#EthernetInterfaceCollection.EthernetInterfaceCollection",
"@odata.etag": "\"D822CA20\"",
"@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces",
"@odata.type": "#EthernetInterfaceCollection.EthernetInterfaceCollection",
"Description": "A collection of EthernetInterface resource instances.",
"Members": [
{
"@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces/NIC"
},
{
"@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces/ToHost"
}
],
"Members@odata.count": 2,
"Name": "EthernetInterfaceCollection"
}