查询以太网集合资源的信息。
操作类型:GET
URL:https://device_ip/redfish/v1/Systems/EthernetInterfaces
请求头:
X-Auth-Token: auth_value
请求消息体:无
无
请求样例:
GET https://10.10.10.10/redfish/v1/Systems/EthernetInterfaces
请求头:
X-Auth-Token: auth_value
请求消息体:无
响应样例:
{ "@odata.type": "#EthernetInterfaceCollection.EthernetInterfaceCollection", "@odata.context": "/redfish/v1/$metadata#Systems/Members/EthernetInterfaces/$entity", "@odata.id": "/redfish/v1/Systems/EthernetInterfaces", "Name": "Ethernet Interface Collection", "Description": "System NICs on Servers", "Members@odata.count": 2, "Members": [ { "@odata.id": "/redfish/v1/Systems/EthernetInterfaces/GMAC1" }, { "@odata.id": "/redfish/v1/Systems/EthernetInterfaces/GMAC0" } ] }
响应码:200
字段 |
类型 |
说明 |
---|---|---|
@odata.context |
字符串 |
网口集合资源模型的OData描述信息。 |
@odata.id |
字符串 |
网口集合资源的访问路径。 |
@odata.type |
字符串 |
网口集合资源类型。 |
Name |
字符串 |
网口集合资源的名称。 |
Description |
字符串 |
网口描述信息。 |
Members@odata.count |
数字 |
当前网口资源数量。 |
Members |
数组 |
网口资源列表。 |
Members.@odata.id |
字符串 |
单个网口资源节点的访问路径。 |