跳到主要内容

GET – 安全引导属性

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

请求 URL

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

请求正文

响应正文

字段类型描述

Id

字符串

SecureBoot

Name

字符串

安全引导

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

状态代码

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

示例

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

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