跳到主要内容

GET – BMC 维护事件日志条目

使用 GET 方法检索服务器的维护日志条目中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/MaintenanceLog/Entries

请求正文

响应正文

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

字段类型描述

Id

字符串

在日志条目集合中唯一标识该资源。

Name

字符串

资源或数组元素的名称。始终设置为“LogEntry”。

Created

字符串

创建日志条目的时间。

EntryType

字符串

日志条目的类型。始终设置为“Oem”。

EventGroupId

字符串

用于将同一原因的事件关联起来的标识符。

OemRecordFormat

字符串

如果条目类型为 Oem,则将包含有关 OEM 中的记录格式的详细信息。始终设置为“Lenovo”。

Message

字符串

实际日志条目。

Description

字符串

“A collection of Platform LogEntry resource instances.”

Severity

字符串

null

状态代码

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

示例

返回以下示例 JSON 响应:

{
"Members": [
{
"@odata.id": "/redfish/v1/Systems/1/LogServices/MaintenanceLog/Entries/3",
"EntryType": "Oem",
"Name": "LogEntry",
"EventGroupId": 1,
"Id": "1",
"Severity": null,
"@odata.type": "#LogEntry.v1_5_0.LogEntry",
"OemRecordFormat": "Lenovo",
"Message": "CPU 2(SKU NO: 01048340) is added.",
"@odata.etag": "\"31ba8a086a922965c8b\"",
"Created": "2019-12-20T01:52:13Z",
"Description": "This resource is used to represent a log entry for log services for a Redfish implementation."
},
...
],
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"@odata.id": "/redfish/v1/Systems/1/LogServices/MaintenanceLog/Entries",
"Members@odata.count": 83,
"@odata.etag": "\"1171e4930e543e359ab966e\"",
"Name": "LogEntryMaintenanceLogEntryCollection",
"Description": "A collection of LogEntryMaintenanceLogEntry resource instances."
}