GET – 服务器网络接口属性
使用 GET 方法检索服务器的网络接口资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/NetworkInterfaces/{id}
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Id | 字符串 | 网络接口的索引。 | |||
Description | 字符串 | “A NetworkInterface contains references linking NetworkAdapter, NetworkPort, and NetworkDeviceFunction resources and represents the functionality available to the containing system.” | |||
Name | 字符串 | 网络接口 X(X=1-N) | |||
Status | 对象 | 已展开。 | |||
State | 字符串 | Enabled | |||
Health | 字符串 | OK | |||
Links | 对象 | 已展开。 | |||
NetworkAdapter | 链接 | 相关 NetworkAdapter 的链接 | |||
Ports | 链接 | 相关 PortCollection 的链接 | |||
NetworkDeviceFunctionCollection | 链接 | 相关 NetworkDeviceFunctionCollection 的链接 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#NetworkInterface.NetworkInterface",
"@odata.etag": "\"98C4EEB6\"",
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/1",
"@odata.type": "#NetworkInterface.v1_2_1.NetworkInterface",
"Description": "A NetworkInterface contains references linking NetworkAdapter, NetworkPort, and NetworkDeviceFunction resources and represents the functionality available to the containing system.",
"Id": "1",
"Links": {
"NetworkAdapter": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot3_0xb0000"
}
},
"Name": "Network Interfaces 1",
"NetworkDeviceFunctions": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot3_0xb0000/NetworkDeviceFunctions"
},
"Ports": {
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/slot3_0xb0000/Ports"
},
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
提供反馈