跳到主要内容

GET – 固件更新服务的属性

使用 GET 方法检索 Redfish 服务的更新服务资源。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/UpdateService

响应正文

字段类型描述

Id

字符串

UpdateService

Name

字符串

Update Service

Description

字符串

“Lenovo firmware update service.”

Actions

对象

已展开。

 

#UpdateService.SimpleUpdate

对象

已展开。

  

@Redfish.ActionInfo

链接

/redfish/v1/UpdateService/SimpleUpdateActionInfo

  

@Redfish.OperationApplyTimeSupport

对象

已展开。

   

SupportedValues

数组

“Immediate”

“OnReset”

“OnStartUpdateRequest”

  

Targets@Redfish.AllowableValues

链接

/redfish/v1/UpdateService/FirmwareInventory/BMC-Backup

  

TransferProtocol @Redfish.AllowableValues

数组

SimpleUpdate 操作的允许值

项:字符串

项数:2

  

target

字符串

/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate

  

title

字符串

SimpleUpdate

 

#UpdateService.StartUpdate

对象

已展开。

  

@Redfish.ActionInfo

链接

已展开。

  

target

字符串

/redfish/v1/UpdateService/Actions/UpdateService.StartUpdate

  

title

字符串

StartUpdate

FirmwareInventory

对象

服务器上的固件信息的 URI

MaxImageSizeBytes

整数

838860800(800MB)

MultipartHttpPushUri

字符串

用于通过分段式请求正文对服务执行 HTTPS 推送更新的 URI;值为“/redfish/v1/UpdateService/update”。

MultipartHttpPushUri@Redfish.OperationApplyTimeSupport

对象

已展开。

 

SupportedValues

数组

字符串

“Immediate”

“OnReset”

“OnStartUpdateRequest”

ServiceEnabled

布尔

True:

VerifyRemoteServerCertificate

布尔

指示在发送传输请求之前此服务是否会验证 SimpleUpdate 中 ImageURI 属性引用的 HTTPS 服务器的证书。

默认值为 false。

状态代码

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

示例

返回以下示例 JSON 响应:

{
"@odata.context": "/redfish/v1/$metadata#UpdateService.UpdateService",
"@odata.etag": "\"05C6DF5C\"",
"@odata.id": "/redfish/v1/UpdateService",
"@odata.type": "#UpdateService.v1_11_1.UpdateService",
"Actions": {
"#UpdateService.SimpleUpdate": {
"@Redfish.ActionInfo": "/redfish/v1/UpdateService/SimpleUpdateActionInfo",
"@Redfish.OperationApplyTimeSupport": {
"@odata.type": "#Settings.v1_3_5.OperationApplyTimeSupport",
"SupportedValues": [
"Immediate",
"OnStartUpdateRequest",
"OnReset"
]
},
"Targets@Redfish.AllowableValues": [
"/redfish/v1/UpdateService/FirmwareInventory/BMC-Backup"
],
"TransferProtocol@Redfish.AllowableValues": [
"TFTP",
"SFTP",
"HTTP",
"HTTPS"
],
"target": "/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate",
"title": "SimpleUpdate"
},
"#UpdateService.StartUpdate": {
"@Redfish.ActionInfo": "/redfish/v1/UpdateService/StartUpdateActionInfo",
"target": "/redfish/v1/UpdateService/Actions/UpdateService.StartUpdate",
"title": "StartUpdate"
},
"Oem": {
...
}
}
},
"Description": "Service for Software Update",
"FirmwareInventory": {
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory"
},
"Id": "UpdateService",
"MaxImageSizeBytes": 838860800,
"MultipartHttpPushUri": "/redfish/v1/UpdateService/update",
"MultipartHttpPushUri@Redfish.OperationApplyTimeSupport": {
"@odata.type": "#Settings.v1_3_5.OperationApplyTimeSupport",
"SupportedValues": [
"Immediate",
"OnReset",
"OnStartUpdateRequest"
]
},
"Name": "Update Service",
"Oem": {
...
}
},
"ServiceEnabled": true,
"VerifyRemoteServerCertificate": false
}