GET – 网络设备功能集合
使用 GET 方法检索 Redfish 服务的 NetworkDeviceFunction 集合中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Chassis/1/NetworkAdapters/{Location}/NetworkDeviceFunctions
请求正文
无
响应正文
响应是包含以下参数的 JSON 对象:
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Name | 字符串 | “NetworkDeviceFunctionCollection”。 | |||
Members | 数组 | 项:NetworkDeviceFunction 元素的引用链接。 | |||
Description | 字符串 | “A collection of NetworkDeviceFunction resource instances.” |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.type": "#NetworkDeviceFunctionCollection.NetworkDeviceFunctionCollection",
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/ob-2/NetworkDeviceFunctions",
"Description": "A collection of NetworkDeviceFunction resource instances.",
"@odata.context": "/redfish/v1/$metadata#NetworkDeviceFunctionCollection.NetworkDeviceFunctionCollection",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/ob-2/NetworkDeviceFunctions/1.1"
},
{
"@odata.id": "/redfish/v1/Chassis/1/NetworkAdapters/ob-2/NetworkDeviceFunctions/2.1"
}
],
"@odata.etag": "\"469ebc906d8628a96e9\"",
"Name": "NetworkDeviceFunctionCollection",
"Members@odata.count": 2
}
提供反馈