跳到主要内容

GET – 服务器 Ethernet over USB 属性

使用 GET 方法检索服务器与管理器之间的以太网接口资源中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/EthernetInterfaces/ToManager

请求正文

响应正文

响应是包含以下参数的 JSON 对象:

字段类型描述

Id

字符串

ToManager

SpeedMbps

字符串

此 XCC2 接口的当前速度(单位:Mbps,即 Mbit/s)

InterfaceEnabled

布尔

指示是否启用此接口的布尔值。

MACAddress

字符串

(逻辑端口)接口当前配置的 MAC 地址。

PermanentMACAddress

字符串

分配给此接口(端口)的永久 MAC 地址。

Name

字符串

“Host Ethernet Interface”

LinkStatus

字符串

此接口(端口)的链路状态。“LinkUp”:“此链路可用于此接口上的通信。”、“NoLink”:“在此接口上未检测到任何链路或连接。”、“LinkDown”:“此接口上没有链路,但接口已连接。”

Status

对象

展开

 

State

字符串

“Enabled”

 

Health

字符串

Null

Links

对象

展开

 

Chassis

链接

此值是对表示物理容器的资源“Chassis”的引用。

 

HostInterface

链接

对资源“HostInterface”(表示主机用于与管理器通信的接口)的引用。

Description

字符串

“Host Network Interface”

FQDN

字符串

“”(空字符串)

HostName

字符串

“”(空字符串)

NameServers

字符串

数组

空数组

IPv4Addresses

数组

空数组

状态代码

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

示例

返回以下示例 JSON 响应:

{
"FQDN": "",
"Id": "ToManager",
"NameServers": [],
"SpeedMbps": 100,
"HostName": "",
"IPv4Addresses": [],
"Description": "Host Network Interface",
"Status": {
"State": "Enabled",
"Health": null
},
"MACAddress": "7e:d3:0a:ed:bb:1b",
"Name": "Host Ethernet Interface",
"InterfaceEnabled": true,
"@odata.type": "#EthernetInterface.v1_5_1.EthernetInterface",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/1"
},
"HostInterface": {
"@odata.id": "/redfish/v1/Managers/1/HostInterfaces/1"
}
},
"LinkStatus": "LinkUp",
"@odata.etag": "\"4524b3cedd2525a9e6c\"",
"PermanentMACAddress": "7e:d3:0a:ed:bb:1b",
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/ToManager"
}