跳到主要内容

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”

  

target

字符串

redfish/v1/Systems/1/Bios/Actions/Bios.ChangePassword

  

title

字符串

ChangePassword

 

#Bios.ResetBios

对象

已展开。

  

target

字符串

/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios

  

title

字符串

ResetBios

@Redfish.Settings

对象

已展开。

 

Messages

数组

项:对象。

  

Messages[N]

对象

已展开。

   

MessageId

字符串

“Base.1.16.0.ResetRequired”

   

RelatedProperties

数组

项:字符串。

    

RelatedProperties[N]

字符串

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

 

SettingsObject

链接

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

 

SupportedApplyTimes

数组

项:字符串

项数:1

  

SupportedApplyTimes[0]

字符串

“OnReset”

 

Time

字符串

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

Links

对象

已展开。

 

ActiveSoftwareImage

链接

/redfish/v1/UpdateService/FirmwareInventory/UEFI

 

SoftwareImages

数组

项:字符串

项数:1

  

SoftwareImages[N]

链接

/redfish/v1/UpdateService/FirmwareInventory/UEFI

 

SoftwareImages@odata.count

数字

1

状态代码

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

示例

返回以下示例 JSON 响应:

{
"@Redfish.Settings": {
"@odata.type": "#Settings.v1_3_5.Settings",
"Messages": [],
"SettingsObject": {
"@odata.id": "/redfish/v1/Systems/1/Bios/Pending"
},
"SupportedApplyTimes": [
"OnReset"
],
"Time": "2024-12-03T22:34:35+00:00"
},
"@odata.context": "/redfish/v1/$metadata#Bios.Bios",
"@odata.etag": "\"7277A030\"",
"@odata.id": "/redfish/v1/Systems/1/Bios",
"@odata.type": "#Bios.v1_2_0.Bios",
"Actions": {
"#Bios.ChangePassword": {
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/Bios/ChangePasswordActionInfo",
"PasswordName@Redfish.AllowableValues": [
"UefiAdminPassword",
"UefiPowerOnPassword"
],
"target": "/redfish/v1/Systems/1/Bios/Actions/Bios.ChangePassword",
"title": "ChangePassword"
},
"#Bios.ResetBios": {
"target": "/redfish/v1/Systems/1/Bios/Actions/Bios.ResetBios",
"title": "ResetBios"
},
"Oem": {}
},
"AttributeRegistry": "BiosAttributeRegistry.1.0.0",
"Attributes": {
"AdvancedRAS_DIMMDisablePolicy": "DisableFaultyDIMMPersistently",
...
"iSCSI_TargetPort_8": 3260
},
"Description": "System Bios",
"Id": "Bios",
"Links": {
"ActiveSoftwareImage": {
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/UEFI"
},
"SoftwareImages": [
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/UEFI"
}
],
"SoftwareImages@odata.count": 1
},
"Name": "Bios",
"Oem": {
...
}
}
}