GET – BMC 日志条目集合
使用 GET 方法检索服务器的日志条目资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/{PlatformLog, AuditLog, ActiveLog, MaintenanceLog, SaLog, SEL, DiagnosticLog}/Entries
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Name | 字符串 | 日志服务集合的名称。 | |||
Members | 数组 | 包含日志服务集合的成员。 | |||
Description | 字符串 | “A collection of LogService resource instances.” |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#LogEntryCollection.LogEntryCollection",
"@odata.etag": "\"DCE55E4D\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/MaintenanceLog/Entries",
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"Description": "A collection of LogEntryMaintenanceLogEntry resource instances.",
"Members": [
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.etag": "\"C5CB9B84\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/MaintenanceLog/Entries/1",
"@odata.type": "#LogEntry.v1_13_0.LogEntry",
"Created": "2024-12-03T20:35:54+00:00",
"Description": "This resource is used to represent a log entry for log services for a Redfish implementation.",
"EntryType": "Oem",
"EventGroupId": 0,
"Id": "1",
"Message": "Backup BMC firmware is updated to IHX407Y by Redfish.",
"Name": "LogEntry",
"Oem": {
...
}
},
"OemRecordFormat": "Lenovo",
"Severity": null
},
...
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.etag": "\"EB9325D6\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/MaintenanceLog/Entries/6",
"@odata.type": "#LogEntry.v1_13_0.LogEntry",
"Created": "2024-12-04T02:41:49+00:00",
"Description": "This resource is used to represent a log entry for log services for a Redfish implementation.",
"EntryType": "Oem",
"EventGroupId": 0,
"Id": "6",
"Message": "Primary BMC firmware is activated to IHX407Y.",
"Name": "LogEntry",
"Oem": {
...
}
},
"OemRecordFormat": "Lenovo",
"Severity": null
}
],
"Members@odata.count": 6,
"Name": "LogEntryMaintenanceLogEntryCollection"
}
提供反馈