跳到主要内容

GET – 安全引导属性

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

请求 URL

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

请求正文

状态代码

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

响应正文

响应是包含以下参数的 JSON 对象:

字段类型描述

Id

字符串

“SecureBoot”。

Name

字符串

“Secure Boot”。

Description

字符串

“UEFI Secure Boot Configuration”。

SecureBootEnable

布尔、Null

启用或禁用 UEFI 安全引导(在下次引导时生效)。

SecureBootCurrentBoot

字符串、Null

当前引导周期中的安全引导状态。

SecureBootMode

字符串、Null

当前安全引导模式

属性值:
  • “UserMode”

  • “SetupMode”

  • “AuditMode”

  • “DeployedMode”

Actions

对象

已展开。

 

#SecureBoot.ResetKeys

对象

请参阅“Post”部分。

  

@Redfish.ActionInfo

链接

/redfish/v1/Systems/1/SecureBoot/ResetKeysActionInfo。

响应示例

请求成功时,将返回类似于以下内容的消息正文:

{
"SecureBootCurrentBoot": "Disabled",
"@odata.id": "/redfish/v1/Systems/1/SecureBoot",
"Name": "Secure Boot",
"@odata.context": "/redfish/v1/$metadata#SecureBoot.SecureBoot",
"Id": "SecureBoot",
"@odata.type": "#SecureBoot.v1_0_4.SecureBoot",
"SecureBootEnable": true,
"SecureBootMode": "SetupMode",
"@odata.etag": "\"95230d5e00821715e4de6085f28c564e\"",
"Actions": {
"#SecureBoot.ResetKeys": {
"target": "/redfish/v1/Systems/1/SecureBoot/Actions/SecureBoot.ResetKeys",
"title": "ResetKeys",
"@Redfish.ActionInfo": "/redfish/v1/Systems/1/SecureBoot/ResetKeysActionInfo"
}
},
"Description": "UEFI Secure Boot Configuration"
}