GET – BMC 审核事件日志条目
使用 GET 方法检索服务器的审核日志条目中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/AuditLog/Entries/X
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Id | 字符串 | 在日志条目集合中唯一标识该资源。 | |||
Name | 字符串 | 资源或数组元素的名称。始终设置为“LogEntry”。 | |||
Description | 字符串 | “A collection of Platform LogEntry resource instances.” | |||
Severity | 字符串 | 日志条目的严重性。 | |||
Created | 字符串 | 创建日志条目的时间。 | |||
EntryType | 字符串 | 日志条目的类型。始终设置为“OEM”。 | |||
OemRecordFormat | 字符串 | 如果条目类型为 OEM,则将包含有关 OEM 中的记录格式的详细信息。始终设置为 Lenovo。 | |||
Message | 字符串 | 实际日志条目。 | |||
MessageArgs | 数组 | 消息的参数。 | |||
MessageArgs[N] | 数组 | 消息的参数。 | |||
EventId | 字符串 | 事件的唯一实例标识符。 | |||
EventGroupId | 字符串 | 用于将同一原因的事件关联起来的标识符。始终设置为 0。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.etag": "\"0DC64599\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/AuditLog/Entries/489",
"@odata.type": "#LogEntry.v1_13_0.LogEntry",
"Created": "2024-12-01T11:30:39+00:00",
"Description": "This resource is used to represent a log entry for log services for a Redfish implementation.",
"EntryType": "Oem",
"EventGroupId": 0,
"EventId": "FQXSPSE4032I",
"Id": "489",
"Links": {
"OriginOfCondition": {
"@odata.id": "/redfish/v1/Managers/1"
}
},
"Message": "Login ID: USERID from CLI at IP address 10.245.43.250 has logged off.",
"MessageArgs": [
"USERID",
"CLI",
"10.245.43.250"
],
"Name": "LogEntry",
"Oem": {
...
}
},
"OemRecordFormat": "Lenovo",
"Severity": "OK"
}
提供反馈