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 |
---|---|
500 | InternalError |
示例
返回以下示例 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"
}
提供反馈