Querying Firmware Update Status
Function
This interface is used to query the firmware update status.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate
Request header:
X-Auth-Token: auth_value
Request message body: None
Parameters
Parameter |
Description |
Value |
---|---|---|
device_ip |
IP address for logging in to a device. |
An IPv4 or IPv6 address |
auth_value |
Authentication parameter contained in the request. |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
Usage Guidelines
None
Instruction
Request:
GET https://10.10.10.10/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body: None
Response:
{
@odata.context: "/redfish/v1/$metadata#TaskService/Tasks/Members/$entity"
@odata.id: "/redfish/v1/TaskService/Tasks/1"
@odata.type: "#Task.v1_0_2.Task"
Id: "1"
KernelVersion: "2.1.0.010"
McuVersion: "1.1.8"
Messages: [{upgradeState: "Upgrade all firmware successfully", upgradeProgress: 100}]
MinidVersion: "1.3.29.887"
Name: "Upgarde Task"
Oem: {Huawei: {TaskPercentage: 100, Version: "2.1.0.010"}}
RootfsVersion: "2.1.0.010"
StartTime: "2019-07-16 17:58:19"
TaskState: "Success"
UbootVersion: "2.1.0.010"
}
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
@odata.context |
Character string |
OData description of the upgrade task resource model |
@odata.id |
Character string |
Access path of the current task resource NOTE:
You can access the resource to obtain the details of the task. |
@odata.type |
Character string |
Type of an update task resource |
Id |
Numeric value |
ID of an update task resource |
Name |
Character string |
Name of an update task resource |
TaskState |
Character string |
Status of an update task resource:
|
StartTime |
Character string |
Start time of an update task |
Messages |
Object |
Information about an update task |
upgradeState |
Character string |
Status of an update task |
upgradeProgress |
Character string |
Update progress |
KernelVersion |
Character string |
OS kernel version |
McuVersion |
Character string |
MCU firmware version |
MinidVersion |
Character string |
Atlas 200 AI Accelerator Module (Model 3000) firmware version |
RootfsVersion |
Character string |
RootFS firmware version |
UbootVersion |
Character string |
U-Boot firmware version |
Oem |
Object |
Custom information |
TaskPercentage |
Character string |
Update progress percentage |
Version |
Character string |
Version of the update package |