代码仓
中
SoftwareInventory
更新时间: 2026/10/28
在AtomGit上查看源码

ResourceDefinition ​

uris ​

  • /redfish/v1/Sms/1/UpdateService/SoftwareInventory/{item}

properties ​

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-指定升级服务资源模型的OData描述信息
@odata.idstringtrue-指定升级服务资源的访问路径
@odata.typestringtrue-指定升级服务资源的类型
Oem {objecttrue-自定义属性
Oem.Public {objecttrue-自定义属性
Oem.Public.BDFNumber {objecttrue-BDF编号
Oem.Public.BDFNumber.RootBDFnulltrue-RootBDF
Oem.Public.BDFNumber.BDFnulltrue-BDF
}
Oem.Public.Modelstringtrue-型号
Oem.Public.VendorIDstringtrue-厂商ID
Oem.Public.DeviceIDstringtrue-设备ID
Oem.Public.SubsystemDeviceIDstringtrue-子厂商ID
Oem.Public.SubsystemVendorIDstringtrue-子设备ID
Oem.Public.BoardIDstringtrue-NPU单板ID,仅用于匹配houp基线NPU驱动的升级包;仅Linux下有该字段(iBMA 2.2.0.7及以上版本支持)
}
}
Idstringtrue-指定资源的ID
DeviceNamestringtrue-设备名称
DeviceSilkScreenstringtrue-设备丝印
Statusstringtrue-状态
Versionstringtrue-软件版本
Descriptionstringtrue-软件描述
SoftwareIdstringtrue-软件ID
Namestringtrue-软件名称
DeviceLocationstringtrue-设备位置

supported_methods ​

  • GET

HTTP methods ​

GET ​

命令功能

查询指定带内升级软件资源信息

命令格式

URL: https://device_ip/redfish/v1/Sms/1/UpdateService/SoftwareInventory/{item}

请求头:

text

X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

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

使用指南

无

使用实例

请求样例:

http
GET <https://device_ip/redfish/v1/Sms/1/UpdateService/SoftwareInventory/Sofeware_xxx>

请求头:

text

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
"@odata.context": "/redfish/v1/Sms/1/UpdateService/SoftwareInventory/$entity",
"@odata.id": "/redfish/v1/Sms/1/UpdateService/SoftwareInventory/Sofeware_xxx",
"@odata.type": "#SoftwareInventory.v1_0_0.SoftwareInventory",
"Oem": {
"Public": {
"BDFNumber": {
"RootBDF": null,
"BDF": null
},
"Model": null,
"VendorID": null,
"DeviceID": null,
"SubsystemDeviceID": null,
"SubsystemVendorID": null,
"BoardID": null
}
},
"Id": "Software",
"Description": null,
"Name": null,
"Status": null,
"SoftwareId": null,
"Version": null,
"DeviceName": null,
"DeviceSilkScreen": null,
"DeviceLocation": null
}

响应码:200