GET – BMC 平台事件日志的服务
使用 GET 方法检索服务器的平台日志服务资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/PlatformLog
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Id | 字符串 | 在日志服务资源集合中唯一标识此资源。始终设置为“PlatformLog”。 | |||
Name | 字符串 | 资源或数组元素的名称。 | |||
Description | 字符串 | “This resource is used to represent a log service for a Redfish implementation.” | |||
ServiceEnabled | 布尔 | 指示是否启用此服务。 | |||
MaxNumberOfRecords | 数字 | 此服务可以拥有的最大日志条目数。始终设置为 1024。 | |||
DateTimeLocalOffset | 字符串 | 当前 DateTime 属性值以“+HH:MM”格式包含的 UTC 偏移量。 | |||
DateTime | 字符串 | 日志服务的当前日期时间(含偏移量),用于设置或读取时间。 | |||
LogEntryType | 字符串 | 多个 | |||
OverWritePolicy | 字符串 | 日志已满时发生的此服务的覆盖策略。始终设置为“WrapsWhenFull” – 当日志已满时,日志中的新条目将覆盖以前的条目。 | |||
Entries | 对象 | 日志条目集合的引用。 | |||
Actions | 对象 | 此资源的可用操作。 | |||
#LogService.ClearLog | 对象 | 此操作用于清除所有标准日志条目。 注 仅适用于 AuditLog、PlatformLog 和 SEL。 | |||
title | 字符串 | ClearLog | |||
target | 字符串 | /redfish/v1/Systems/1/LogServices/PlatformLog/Actions/LogService.ClearLog |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"@odata.etag": "\"1EDD878B\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/PlatformLog",
"@odata.type": "#LogService.v1_3_1.LogService",
"Actions": {
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/1/LogServices/PlatformLog/Actions/LogService.ClearLog",
"title": "ClearLog"
},
"Oem": {
...
}
},
"DateTime": "2024-12-04T04:46:25+00:00",
"DateTimeLocalOffset": "+00:00",
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/PlatformLog/Entries"
},
"Id": "PlatformLog",
"LogEntryType": "Multiple",
"MaxNumberOfRecords": 1024,
"Name": "LogService",
"Oem": {
...
}
},
"OverWritePolicy": "WrapsWhenFull",
"ServiceEnabled": true
}
提供反馈