GET – 服务器以太网接口属性
使用 GET 方法检索服务器的以太网接口资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/EthernetInterfaces/NIC{1…N}
请求正文
无
响应正文
响应是包含以下参数的 JSON 对象:
| 字段 | 类型 | 描述 | |||
|---|---|---|---|---|---|
Id  | 字符串 | NIC{1..N}  | |||
SpeedMbps  | 字符串 | 此 XCC 接口的当前速度(单位:Mbps,即 Mbit/s)  | |||
InterfaceEnabled  | 布尔 | 指示是否启用此接口的布尔值  | |||
MACAddress  | 字符串 | (逻辑端口)接口当前配置的 MAC 地址。  | |||
PermanentMACAddress  | 字符串 | 分配给此接口(端口)的永久 MAC 地址。  | |||
Name  | 字符串 | “External Ethernet Interface”  | |||
LinkStatus  | 字符串 | 此接口(端口)的链路状态  | |||
Status  | 对象 | 展开  | |||
State  | 字符串 | 此以太网接口的状态。  | |||
Health  | 字符串 | 此以太网接口的运行状况。  | |||
Links  | 对象 | 展开  | |||
Chassis  | 链接 | 此值是对表示物理容器的资源“Chassis”的引用。  | |||
Description  | 字符串 | “External Network Interface”  | |||
FQDN  | 字符串 | “”(空字符串)  | |||
HostName  | 字符串 | “”(空字符串)  | |||
NameServers  | 字符串 数组  | 空数组  | |||
IPv4Addresses  | 数组 | 空数组  | |||
状态代码
| HTTP 状态代码 | 错误消息 ID | 
|---|---|
| 500 | InternalError | 
示例
返回以下示例 JSON 响应:
{
    "FQDN": "",
    "Id": "NIC1",
    "NameServers": [],
    "SpeedMbps": null,
    "HostName": "",
    "IPv4Addresses": [],
    "Description": "Enternal Network Interface",
    "Status": {
        "State": "Enabled",
        "Health": “OK”
    },
    "MACAddress": "7e:d3:0a:ed:bb:1b",
    "Name": "Enternal Ethernet Interface",
    "InterfaceEnabled": true,
    "@odata.type": "#EthernetInterface.v1_5_1.EthernetInterface",
    "Links": {
        "Chassis": {
            "@odata.id": "/redfish/v1/Chassis/1"
        }
    },
    "LinkStatus": "LinkDown",
    "@odata.etag": "\"4524b3cedd2525a9e6c\"",
    "PermanentMACAddress": "7e:d3:0a:ed:bb:1b",
    "@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces/NIC1"
}
提供反馈