代码仓
中
NICsCollection
更新时间: 2026/11/04
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Managers/manager_id/NICs

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-NIC集合资源模型的OData描述信息
@odata.idstringtrue-NIC集合资源的访问路径
@odata.typestringtrue-NIC集合资源类型
Descriptionstringtrue-资源描述
Members [ {arraytrue-NIC资源列表
Members[].@odata.idstringtrue-成员资源节点的访问路径
} ]
Namestringtrue-NIC集合资源的名称
Members@odata.countnumberfalse-NIC资源数量

supported_methods ​

  • GET

HTTP methods ​

GET ​

命令功能

查询 NIC 集合资源

命令格式

URL: https://device_ip/redfish/v1/Managers/manager_id/NICs

请求头:

text
X-Auth-Token: auth_value

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

openUBMC 25.12 LTS及以上版本支持

使用实例

请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/NICs

X-Auth-Token: auth_value 请求消息体:无

响应样例:

json
{
"@odata.context": "/redfish/v1/$metadata#EthernetInterfaceCollection.EthernetInterfaceCollection",
"@odata.id": "/redfish/v1/Managers/1/NICs",
"@odata.type": "#EthernetInterfaceCollection.EthernetInterfaceCollection",
"Name": "Ethernet Network Interface Collection",
"Description": "Collection of EthernetInterfaces for this Manager",
"Members@odata.count": 5,
"Members": [
{
"@odata.id": "/redfish/v1/Managers/1/NICs/DedicatedPort1"
},
{
"@odata.id": "/redfish/v1/Managers/1/NICs/LOMPort1"
},
{
"@odata.id": "/redfish/v1/Managers/1/NICs/LOMPort2"
},
{
"@odata.id": "/redfish/v1/Managers/1/NICs/LOMPort3"
},
{
"@odata.id": "/redfish/v1/Managers/1/NICs/LOMPort4"
}
]
}

响应码:200