Entries
更新时间: 2026/06/26
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Systems/system_id/LogServices/LogService_id/Entries/Entries_id

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue-日志资源模型的OData描述信息
@odata.idstringtrue-日志资源的访问路径
@odata.typestringtrue-日志资源的类型
Namestringtrue-日志资源的名称
Descriptionstringtrue-日志资源描述信息
Severitystringtrue-安全级别
● OK
● Warning
● Critical
Levelstringtrue-自定义安全级别
● Informational
● Minor
● Major
● Critical
Createdstringtrue-日志创建时间
EventTimestampstringtrue-事件发生时间
EntryTypestringtrue-日志类型
● Event
● SEL
● Oem
Messagestringtrue-日志描述信息
EventIdstringtrue-事件码
EventTypestringtrue-事件类型

supported_methods

  • GET

HTTP methods

GET

命令功能

查询 SEL 日志

命令格式

URL: https://device_ip/redfish/v1/Systems/system_id/LogServices/LogService_id/Actions/Oem/Public/LogService.QuerySelLogEntries

请求头:


X-Auth-Token: 123456789***********************

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
system_id系统资源的ID参见源文件参数说明
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

使用实例

请求样例:

http
GET https://device_ip/redfish/v1/Systems/system_id/LogServices/LogService_id/Entries/Entries_id

X-Auth-Token: 123456789***********************

请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
  "@odata.id": "/redfish/v1/Systems/1/LogServices/Log1/Entries/748",
  "@odata.type": "#LogEntry.v1_1_1.LogEntry",
  "Id": "748",
  "Name": "Log Entry 748",
  "Description": "System Event Log",
  "Severity": "OK",
  "Created": "2020-08-19T05:25:26+08:00",
  "EventTimestamp": "2020-08-19T05:25:26+08:00",
  "EntryType": "Event",
  "EventId": "0x1A00000D",
  "EventType": "Alert",
  "Message": "iBMC is restarted after AC power supply is restored.",
  "Oem": {
    "Public": {
      "Level": "Informational"
    }
  }
}

响应码:200