GET – 服务器网络接口集合
使用 GET 方法检索服务器的网络接口集合资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/NetworkInterfaces
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Members | 数组 | 项:NetworkInterfaces 元素的引用链接。 | |||
Name | 字符串 | NetworkInterfacesCollection。 | |||
Description | 字符串 | “A collection of NetworkInterfaces resource instances.” |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
请求成功时,将返回类似于以下内容的消息正文:
{
"@odata.context": "/redfish/v1/$metadata#NetworkInterfaceCollection.NetworkInterfaceCollection",
"@odata.etag": "\"F8EB33BA\"",
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces",
"@odata.type": "#NetworkInterfaceCollection.NetworkInterfaceCollection",
"Description": "A collection of NetworkInterface resource instances.",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/1"
},
{
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/2"
},
{
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/3"
},
{
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/4"
},
{
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/5"
},
{
"@odata.id": "/redfish/v1/Systems/1/NetworkInterfaces/6"
}
],
"Members@odata.count": 6,
"Name": "NetworkInterfaceCollection"
}
提供反馈