代码仓
LocalImageStore
更新时间: 2026/09/04
在AtomGit上查看源码

ResourceDefinition

uris

  • /redfish/v1/UpdateService/LocalImageStore/{id}

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-本地固件资源模型的OData描述信息
@odata.idstringtrue-本地固件资源的访问路径
@odata.typestringtrue-本地固件资源的类型
Oemobjecttrue-自定义属性
Oem.HuaweiPublicobjecttrue-自定义属性
Oem.HuaweiPublic.FirmwareVersionConsistentstringtrueUnknown,Consistent,Inconsistent用于标识本地固件仓版本与运行固件版本的一致性
● Unknown:未知
● Consistent:版本一致
● Inconsistent:版本不一致
Idstringtrue-本地固件资源的ID
Namestringtrue-本地固件资源的名称
Statusobjecttrue-本地固件资源的状态
● State:使能状态
● Health:健康状态
Versionstringtrue-固件版本
Updateablebooleantruetrue,false是否可更新
RelatedItemarraytrue-导航资源:关联的部件资源
ReleaseDatestringtrue-当前固件的发布时间
SoftwareIdstringtrue-固件ID
Stagedbooleantruetrue,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:

http
GET https://device_ip/redfish/v1/UpdateService/LocalImageStore/Bios

请求头:

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

响应样例:

json
{
  "@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:

http
GET https://device_ip/redfish/v1/UpdateService/LocalImageStore/VRD_BCU_010101

请求头:

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

响应样例:

json
{
  "@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