跳到主要内容

POST – 开始更新固件

此操作可以更新软件映像文件(位于 ImageURI 参数引用的 URI 中)包含的已安装软件组件。

请求 URL

https://<SMM_IPADDR>/redfish/v1/UpdateService/Actions/UpdateService.StartUpdate

请求正文

字段

类型

描述

Actions

对象

必需;要更新的固件的 URI。
  • SMM3 固件更新:“/redfish/v1/Managers/bmc”。

  • 电源模块固件更新:“/redfish/v1/Chassis/chassis1/PowerSubsystm/PowerSupplies”

 

#UpdateService.StartUpdate

对象

  

target

字符串

 

OEM

对象

不是必需;指示刷写当前或备用引导分区。

  

Lenovo

对象

   

RecoverAltboot

布尔

响应正文

不适用

示例

推送更新示例:

直接 POST:
curl -k -H <Authentication> -H "Content-Type: application/json"-X POST -d '{"target": <update target>}'https://${SMM3 port}/redfish/v1/UpdateService/Actions/UpdateService.StartUpdate
  • <Authentication>
    • BasicAuth(例如:-u user:password 或 -H“X-Auth-Token: Basic <encoding string>”)
    • X-Auth-Token(例如:-H“X-Auth-Token: <token string>”)
  • <update target>
    • 例如:“/redfish/v1/Managers/bmc”或“/redfish/v1/Chassis/chassis1/PowerSubsystm/PowerSupplies”