PATCH – 配置 AMT 测试选项
使用 PATCH 方法配置 Redfish 服务的 BIOS 资源中的 AMT 测试选项。
注
您可以先在以下 URL 中检索 AMT 测试选项“Memory_AdvMemTestOptions”:https://<BMC_IPADDR>/redfish/v1/Systems/1/Bios。默认设置为 0。
请求 URL
PATCH https://<BMC_IPADDR>/redfish/v1/Systems/1/Bios/Pending
响应
响应返回的内容与 GET 操作相同,但更新了属性。
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
200 | RebootRequired |
403 | InsufficientPrivilege |
500 | InternalError |
503 | ServiceUnavailable |
示例
以下示例是 PATCH 正文。
{
"Attributes": {
"Memory_MemoryTest": "Enabled",
"Memory_AdvMemTestOptions": 0xF0000,
"SystemRecovery_POSTWatchdogTimer": "Disabled"
}
}
成功运行 PATCH 操作后,系统资源查询将返回以下示例 JSON 响应:
{
"Name": "Pending",
"@odata.type": "#Bios.v1_2_0.Bios",
"@odata.id": "/redfish/v1/Systems/1/Bios/Pending",
"@odata.context": "/redfish/v1/$metadata#Bios.Bios",
"AttributeRegistry": "BiosAttributeRegistry.1.0.0",
"@odata.etag": "\"2856be2dd5340359614bb4\"",
"Description": "Bios Pending Setting",
"Attributes": {
"Memory_AdvMemTestOptions": 983040,
"Memory_MemoryTest": "Enabled",
"SystemRecovery_POSTWatchdogTimer": "Disabled"
},
"Id": "Pending",
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_1_2.Message",
"MessageId": "ExtendedError.1.2.RebootRequired",
"Resolution": "Reboot the computer system for the changes to take effect.",
"MessageArgs": [],
"MessageSeverity": "Warning",
"Message": "Changes completed successfully, but these changes will not take effect until next reboot."
}
]
}
提供反馈