跳到主要内容

GET – 主机接口属性

使用 GET 方法检索服务器的 HostInterface 资源中的属性。

请求 URL

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

请求正文

响应正文

字段

类型

描述

Id

字符串

唯一标识机箱集合中的资源。始终设置为“1”。

Name

字符串

主机接口

Description

字符串

提供 HostInterface 资源的描述。

HostInterfaceType

字符串

NetworkHostInterface

ExternallyAccessible

布尔

始终设置为 false

InterfaceEnabled

布尔

指示是否启用此接口。

HostEthernetInterfaces

链接

系统用于与主机接口进行网络通信的以太网接口集合的引用链接。

Links

对象

已展开。

 

ComputerSystems

数组

连接到此主机接口的计算机系统的引用数组。

  

ComputerSystems[0]

链接

计算机系统资源的引用链接

 

CredentialBootstrappingRole

链接

相关角色的链接,此角色包含为此接口创建的引导程序帐户的权限。

通过 IPMI 命令创建引导程序帐户后将生成此链接。

ManagerEthernetInterface

链接

管理器用于与主机接口进行网络通信的单个以太网接口的引用链接。

NetworkProtocol

链接

管理器控制的网络服务及其设置的引用链接。

CredentialBootstrapping

对象

已展开。

 

Enabled

布尔

指示是否为此接口启用凭证引导。

 

EnableAfterReset

布尔

指示是否为此接口在重置后启用凭证引导。

 

RoleId

字符串

管理员

状态代码

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

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#HostInterface.HostInterface",
"@odata.etag": "\"1BCBEB34\"",
"@odata.id": "/redfish/v1/Managers/1/HostInterfaces/1",
"@odata.type": "#HostInterface.v1_3_0.HostInterface",
"CredentialBootstrapping": {
"EnableAfterReset": true,
"Enabled": true,
"RoleId": ""
},
"Description": "This resource shall be used to represent Host Interface resources as part of the Redfish specification.",
"ExternallyAccessible": false,
"HostEthernetInterfaces": {
"@odata.id": "/redfish/v1/Managers/1/HostInterfaces/1/HostEthernetInterfaces"
},
"HostInterfaceType": "NetworkHostInterface",
"Id": "1",
"InterfaceEnabled": false,
"Links": {
"ComputerSystems": [
{
"@odata.id": "/redfish/v1/Systems/1"
}
]
},
"ManagerEthernetInterface": {
"@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces/ToHost"
},
"Name": "Host Interface",
"NetworkProtocol": {
"@odata.id": "/redfish/v1/Managers/1/NetworkProtocol"
}
}