ResourceDefinition
uris
/redfish/v1/UpdateService/LocalImageStore/{id}
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 本地固件资源模型的OData描述信息 |
| @odata.id | string | true | - | 本地固件资源的访问路径 |
| @odata.type | string | true | - | 本地固件资源的类型 |
| Oem | object | true | - | 自定义属性 |
| Oem.HuaweiPublic | object | true | - | 自定义属性 |
| Oem.HuaweiPublic.FirmwareVersionConsistent | string | true | Unknown,Consistent,Inconsistent | 用于标识本地固件仓版本与运行固件版本的一致性 ● Unknown:未知 ● Consistent:版本一致 ● Inconsistent:版本不一致 |
| Id | string | true | - | 本地固件资源的ID |
| Name | string | true | - | 本地固件资源的名称 |
| Status | object | true | - | 本地固件资源的状态 ● State:使能状态 ● Health:健康状态 |
| Version | string | true | - | 固件版本 |
| Updateable | boolean | true | true,false | 是否可更新 |
| RelatedItem | array | true | - | 导航资源:关联的部件资源 |
| ReleaseDate | string | true | - | 当前固件的发布时间 |
| SoftwareId | string | true | - | 固件ID |
| Staged | boolean | true | true,false | 固件是否暂存 ● true:当前固件是暂存固件 ● false:当前固件不是暂存固件 说明:E9000U机型不支持此功能 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询指定本地固件仓资源信息
命令格式
URL: https://device_ip/redfish/v1/UpdateService/LocalImageStore/id
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 执行该GET请求时,必须在"Headers"中携带"X-Auth-Token"值用于鉴权 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
| id | 本地固件资源的ID | 可通过本地固件仓集合资源获得 |
使用指南
无
使用实例
请求样例1:
GET https://device_ip/redfish/v1/UpdateService/LocalImageStore/Bios请求头:
X-Auth-Token: 123456789***********************响应样例:
{
"@odata.context": "/redfish/v1/$metadata#SoftwareInventory.SoftwareInventory",
"@odata.id": "/redfish/v1/UpdateService/LocalImageStore/Bios",
"@odata.type": "#SoftwareInventory.v1_13_0.SoftwareInventory",
"Id": "Bios",
"Name": "Bios",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Version": "32.20",
"ReleaseDate": "11/26/2025",
"Updateable": true,
"RelatedItem": [
"/redfish/v1/Systems/1/Bios"
],
"SoftwareId": "BIOS-BIOS",
"Staged": false,
"Oem": {
"HuaweiPublic": {
"FirmwareVersionConsistent": "Inconsistent"
}
}
}响应码:200
请求样例2:
GET https://device_ip/redfish/v1/UpdateService/LocalImageStore/VRD_BCU_010101请求头:
X-Auth-Token: 123456789***********************响应样例:
{
"@odata.context": "/redfish/v1/$metadata#SoftwareInventory.SoftwareInventory",
"@odata.id": "/redfish/v1/UpdateService/LocalImageStore/VRD_BCU_010101",
"@odata.type": "#SoftwareInventory.v1_13_0.SoftwareInventory",
"Id": "VRD_BCU_010101",
"Name": "CpuBoard1 VRD",
"Status": {
"State": "Enabled",
"Health": "OK"
},
"Version": "",
"ReleaseDate": "",
"Updateable": true,
"RelatedItem": [
"/redfish/v1/Chassis/1/Boards/BCU1CpuBoard1"
],
"SoftwareId": "VRD-BC83AMDA",
"Staged": false
}响应码:200

