跳到主要内容

GET – 固件更新作业属性

使用 GET 方法检索 Redfish 服务的 Job 资源中的属性

请求 URL

GET https://<BMC_IPADDR>/v1/JobService/Jobs/FW_Update_{N}

请求正文

响应正文

字段

类型

描述

Id

字符串

FW_Update_{N}

Name

字符串

与 Id 相同。

Description

字符串

“This resource is used to represent a job for a Redfish implementation.”

JobStatus

字符串

此属性应指示作业的运行状况状态。

JobState

字符串

此属性应指示作业的状态。

Messages

数组

指示当前更新消息。

StartTime

字符串

此作业的开始时间。

EndTime

字符串

此作业的结束时间。

PercentComplete

整数

此作业的完成百分比。

Steps

链接

JobCollection 的链接。

StepOrder

数组

项:字符串

项数:分步作业数。

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#Job.Job",
"@odata.etag": "\"776850C7\"",
"@odata.id": "/redfish/v1/JobService/Jobs/FW_Update_1",
"@odata.type": "#Job.v1_1_1.Job",
"Description": "This resource is used to represent a job for a Redfish implementation.",
"EndTime": "2024-12-03T20:35:55+00:00",
"Id": "FW_Update_1",
"JobState": "Completed",
"JobStatus": "OK",
"Messages": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The target device '/redfish/v1/UpdateService/ FirmwareInventory/BMC-Backup' will be updated with image 'lnvgy_fw_xcc-dur_ihx407y-0.80_anyos_comp.uxz'.",
"MessageArgs": [
"/redfish/v1/UpdateService/FirmwareInventory/BMC-Backup",
"lnvgy_fw_xcc-dur_ihx407y-0.80_anyos_comp.uxz"
],
"MessageId": "Update.1.0.1.TargetDetermined",
"MessageSeverity": "OK",
"Resolution": "None."
},
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "Device '/redfish/v1/UpdateService/FirmwareInventory/ BMC-Backup' successfully updated with image 'lnvgy_fw_xcc-dur_ihx407y-0.80_anyos_comp.uxz'.",
"MessageArgs": [
"/redfish/v1/UpdateService/FirmwareInventory/BMC-Backup",
"lnvgy_fw_xcc-dur_ihx407y-0.80_anyos_comp.uxz"
],
"MessageId": "Update.1.0.1.UpdateSuccessful",
"MessageSeverity": "OK",
"Resolution": "None."
}
],
"Name": "FW_Update_1",
"PercentComplete": 100,
"StartTime": "2024-12-03T20:35:39+00:00",
"StepOrder": [
"BMC-Backup"
],
"Steps": {
"@odata.id": "/redfish/v1/JobService/Jobs/FW_Update_1/Steps"
}
}