GET – 主机接口属性
使用 GET 方法检索服务器的 HostInterface 资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Managers/1/HostInterfaces/1
请求正文
无
响应正文
响应是包含以下参数的 JSON 对象:
| 字段 | 类型 | 描述 | |||
|---|---|---|---|---|---|
Id  | 字符串 | 唯一标识机箱集合中的资源。始终设置为“1”。  | |||
Description  | 字符串 | 提供 HostInterface 资源的描述。  | |||
ExternallyAccessible  | 布尔 | 始终设置为 false  | |||
HostEthernetInterfaces  | 链接 | 由系统用于与主机接口进行网络通信的以太网接口集合的引用链接。  | |||
HostInterfaceType  | 字符串 | “NetworkHostInterface”  | |||
InterfaceEnabled  | 布尔 | 指示是否启用此接口。  | |||
Links  | 对象 | 已展开  | |||
ComputerSystems  | 数组 | 连接到此主机接口的计算机系统的引用数组。  | |||
ComputerSystems[0]  | 链接 | 计算机系统资源的引用链接  | |||
ManagerEthernetInterface  | 链接 | 由管理器用于与主机接口进行网络通信的单个以太网接口的引用链接。  | |||
Name  | 字符串 | 主机接口资源的名称。始终设置为“Host Interface”。  | |||
NetworkProtocol  | 链接 | 管理器控制的网络服务及其设置的引用链接。  | |||
状态代码
| HTTP 状态代码 | 错误消息 ID | 
|---|---|
| 500 | InternalError | 
响应示例
请求成功时,将返回类似于以下内容的消息正文:
{
    "HostInterfaceType": "NetworkHostInterface",
    "NetworkProtocol": {
        "@odata.id": "/redfish/v1/Managers/1/NetworkProtocol"
    },
    "Id": "1",
    "InterfaceEnabled": true,
    "Links": {
        "ComputerSystems": [
            {
                "@odata.id": "/redfish/v1/Systems/1"
            }
        ]
    },
    "Name": "Host Interface",
    "@odata.context": "/redfish/v1/$metadata#HostInterface.HostInterface",
    "@odata.etag": "\"173c848afdf17b76c0b2defce1f48be7\"",
    "@odata.type": "#HostInterface.v1_2_0.HostInterface",
    "ManagerEthernetInterface": {
        "@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces/ToHost"
    },
    "@odata.id": "/redfish/v1/Managers/1/HostInterfaces/1",
    "ExternallyAccessible": false,
    "HostEthernetInterfaces": {
        "@odata.id": "/redfish/v1/Managers/1/HostInterfaces/1/HostEthernetInterfaces"
    },
    "Description": "This resource shall be used to represent Host Interface resources as part of the Redfish specification."
}
提供反馈