GET – BMC 活动日志的服务
使用 GET 方法检索服务器的活动日志服务资源中的属性。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/ActiveLog
请求正文
无
响应正文
字段 | 类型 | 描述 | |||
---|---|---|---|---|---|
Id | 字符串 | ActiveLog | |||
Name | 字符串 | 资源或数组元素的名称。 | |||
Description | 字符串 | “This resource is used to represent a log service for a Redfish implementation.” | |||
ServiceEnabled | 布尔 | 指示是否启用此服务。 | |||
MaxNumberOfRecords | 数字 | 此服务可以拥有的最大日志条目数。始终设置为 512。 | |||
DateTimeLocalOffset | 字符串 | 当前 DateTime 属性值以“+HH:MM”格式包含的 UTC 偏移量。 | |||
DateTime | 字符串 | 日志服务的当前日期时间(含偏移量),用于设置或读取时间。 | |||
LogEntryType | 字符串 | 多个 | |||
Entries | 对象 | 日志条目集合的引用。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
500 | InternalError |
示例
返回以下示例 JSON 响应:
{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"@odata.etag": "\"47655F3C\"",
"@odata.id": "/redfish/v1/Systems/1/LogServices/ActiveLog",
"@odata.type": "#LogService.v1_3_1.LogService",
"Actions": {
"Oem": {
...
}
}
},
"DateTime": "2024-12-04T05:05:06+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/ActiveLog/Entries"
},
"Id": "ActiveLog",
"LogEntryType": "Multiple",
"MaxNumberOfRecords": 512,
"Name": "LogService",
"ServiceEnabled": true
}
提供反馈