GET – 服务器以太网接口属性
使用 GET 方法检索服务器的以太网接口资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/EthernetInterfaces/NIC{N}
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Description | 字符串 | “External Network Interface” | |||
Id | 字符串 | NIC{N} | |||
LinkStatus | 字符串 | 此接口(端口)的链路状态。 LinkUp:此链路可用于此接口上的通信。 NoLink:在此接口上未检测到任何链路或连接。 LinkDown:此接口上没有链路,但接口已连接。 | |||
Links | 对象 | 已展开。 | |||
Chassis | 链接 | 此值是对表示物理容器的资源“Chassis”的引用。 | |||
PermanentMACAddress | 字符串 | 分配给此接口(端口)的永久 MAC 地址。 | |||
SpeedMbps | 字符串 | 此 XCC3 接口的当前速度(单位:Mbit/s) | |||
Status | 对象 | 已展开。 | |||
State | 字符串 | 此以太网接口的状态。 | |||
Health | 字符串 | 此以太网接口的运行状况。 | |||
Name | 字符串 | External Ethernet Interface | |||
FQDN | 字符串 | “”(空字符串) | |||
HostName | 字符串 | “”(空字符串) | |||
NameServers | 字符串 数组 | 空数组 | |||
IPv4Addresses | 数组 | 空数组 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#EthernetInterface.EthernetInterface",
"@odata.etag": "\"62C4509A\"",
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/NIC1",
"@odata.type": "#EthernetInterface.v1_9_0.EthernetInterface",
"Description": "External Ethernet Interface",
"FQDN": "",
"FibreChannel": {
"AssociatedWorldWideNames": [
"210034800D725642"
]
},
"HostName": "",
"IPv4Addresses": [],
"Id": "NIC1",
"LinkStatus": "LinkDown",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/1"
}
},
"MACAddress": "210034800D725642",
"Name": "External Ethernet Interface",
"NameServers": [],
"PermanentMACAddress": "210034800D725642",
"SpeedMbps": 0,
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
提供反馈