跳到主要内容

GET – BIOS 资源

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

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/Bios

请求正文

响应正文

字段类型描述

Id

字符串

“Bios”。

Name

字符串

“Bios”。

Description

字符串

“System Bios”

AttributeRegistry

字符串

“BiosAttributeRegistry.1.0.0”。

Attributes

对象

这是特定于制造商/提供商的 BIOS 属性列表。

Actions

对象

已展开

 

#Bios.ChangePassword

对象

已展开

  

@Redfish.ActionInfo

链接

/redfish/v1/Systems/1/Bios/ChangePasswordActionInfo

  

PasswordName@Redfish.AllowableValues

数组

项:字符串

项数:2

   

PasswordName@Redfish.AllowableValues[0]

字符串

“UefiAdminPassword”。

   

PasswordName@Redfish.AllowableValues[1]

字符串

“UefiPowerOnPassword”。

 

#Bios.ResetBios

对象

已展开。

@Redfish.Settings

对象

已展开。

 

Messages

数组

项:对象。

  

Messages[N]

对象

已展开

   

MessageId

字符串

“RebootRequired”。

   

RelatedProperties

数组

项:字符串。

    

RelatedProperties[N]

字符串

BIOS 属性的设置名称。格式将为“#/Attributes/”+ 属性名称。

   

Severity

字符串

“Warning”。

   

Message

字符串

“Changes completed successfully, but these changes will not take effect until next reboot.”

   

Resolution

字符串

“Reboot the computer system for the changes to take effect.”

 

SettingsObject

链接

/redfish/v1/Systems/1/Bios/Pending/

 

Time

字符串

指示上次应用属性的时间。

 

SupportedApplyTimes

数组

项:字符串

项数:1

  

SupportedApplyTimes[0]

字符串

“OnReset”。

Links

对象

已展开

 

ActiveSoftwareImage

链接

/redfish/v1/UpdateService/FirmwareInventory/UEFI

 

SoftwareImages

数组

项:字符串

项数:1

  

SoftwareImages[1]

链接

/redfish/v1/UpdateService/FirmwareInventory/UEFI

 

SoftwareImages@odata.count

数字

1

状态代码

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

示例

返回以下示例 JSON 响应:

{
"@odata.type": "#Bios.v1_0_6.Bios",
"Actions": {
"#Bios.ResetBios": {
"target": "/redfish/v1/Systems/1/Bios/Actions/Bios.ResetBios",
"title": "ResetBios"
},
"#Bios.ChangePassword": {
"PasswordName@Redfish.AllowableValues": [
"UefiAdminPassword",
"UefiPowerOnPassword"
],
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/ChangePasswordActionInfo",
"target": "/redfish/v1/Systems/1/Bios/Actions/Bios.ChangePassword",
"title": "ChangePassword"
}
},
"Id": "Bios",
"AttributeRegistry": "BiosAttributeRegistry.1.0.0",
"Attributes": {


},
"Name": "Bios",
"@odata.id": "/redfish/v1/Systems/1/Bios",
"@odata.etag": "\"610e10e486e3486d2a50c5b9e6750559\"",
"Description": "System Bios",
"@Redfish.Settings": {
"@odata.type": "#Settings.v1_2_1.Settings",
"SettingsObject": {
"@odata.id": "/redfish/v1/Systems/1/Bios/Pending"
},
"Messages": [],
"SupportedApplyTimes": [
"OnReset"
],
"Time": "2019-11-28T10:07:08+00:00"
},
"Links": {
"ActiveSoftwareImage": {
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/UEFI"
},
"SoftwareImages": [
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/UEFI"
}
],
"SoftwareImages@odata.count": 1
}
}