GET – IPMI SEL 日志的服务
使用 GET 方法检索服务器的 IPMI SEL 日志资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/SEL
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Id | 字符串 | 在日志服务资源集合中唯一标识此资源。始终设置为“SEL”。 | |||
Name | 字符串 | 资源或数组元素的名称。 | |||
Description | 字符串 | “This resource is used to represent a log service for a Redfish implementation.” | |||
ServiceEnabled | 布尔 | 指示是否启用此服务。 | |||
DateTimeLocalOffset | 字符串 | 当前 DateTime 属性值以“+HH:MM”格式包含的 UTC 偏移量。 | |||
DateTime | 字符串 | 日志服务的当前日期时间(含偏移量),用于设置或读取时间。 | |||
Actions | 对象 | 已展开。 | |||
#LogService.ClearLog | 对象 | 使用 IPMI 命令清除 SEL 记录。 注 仅适用于 AuditLog、PlatformLog 和 SEL。 | |||
title | 字符串 | ClearLog | |||
target | 字符串 | /redfish/v1/Systems/1/LogServices/SEL/Actions/LogService.ClearLog |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"@odata.etag": "\"7A0A8B9A\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/SEL",
"@odata.type": "#LogService.v1_3_1.LogService",
"Actions": {
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/1/LogServices/SEL/Actions/LogService.ClearLog",
"title": "ClearLog"
}
},
"DateTime": "2024-12-04T05:05:15+00:00",
"DateTimeLocalOffset": "+00:00",
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"Id": "SEL",
"Name": "LogService",
"ServiceEnabled": true
}
提供反馈