Entries
更新时间: 2026/06/26
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Systems/system_id/LogServices/LogService_id/Entries/Entries_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 日志资源模型的OData描述信息 |
| @odata.id | string | true | - | 日志资源的访问路径 |
| @odata.type | string | true | - | 日志资源的类型 |
| Name | string | true | - | 日志资源的名称 |
| Description | string | true | - | 日志资源描述信息 |
| Severity | string | true | - | 安全级别 ● OK ● Warning ● Critical |
| Level | string | true | - | 自定义安全级别 ● Informational ● Minor ● Major ● Critical |
| Created | string | true | - | 日志创建时间 |
| EventTimestamp | string | true | - | 事件发生时间 |
| EntryType | string | true | - | 日志类型 ● Event ● SEL ● Oem |
| Message | string | true | - | 日志描述信息 |
| EventId | string | true | - | 事件码 |
| EventType | string | true | - | 事件类型 |
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_idX-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