跳到主要内容

GET – BMC 诊断日志的服务

使用 GET 方法检索服务器的诊断日志服务资源中的属性。

请求 URL

GET https://<BMC_IPADDR>/redfish/v1/Systems/1/LogServices/DiagnosticLog

请求正文

响应正文

字段类型描述

Id

字符串在日志服务资源集合中唯一标识此资源。始终设置为“DiagnosticLog”。

Name

字符串资源或数组元素的名称。

DateTimeLocalOffset

字符串当前 DateTime 属性值以“+HH:MM”格式包含的 UTC 偏移量。

MaxNumberOfRecords

数字2(Manager(FFDC)和 OS(故障屏幕))

DateTime

字符串日志服务的当前日期时间(含偏移量),用于设置或读取时间。

ServiceEnabled

布尔指示是否启用此服务。

LogEntryType

字符串“Multiple”

Entries

对象日志条目集合的引用。

OverWritePolicy

字符串枚举字符串“WrapsWhenFull”

Description

字符串“This resource is used to represent a log service for a Redfish implementation.”

Actions

对象已展开
 

#LogService.CollectDiagnosticData

对象 

状态代码

HTTP 状态代码错误消息 ID
500InternalError

示例

返回以下示例 JSON 响应:

{
"MaxNumberOfRecords": 5,
"Name": "LogService",
"ServiceEnabled": true,
"@odata.id": "/redfish/v1/Systems/1/LogServices/SaLog",
"@odata.etag": "\"3a50669a211526668eb\"",
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"DateTime": "2022-08-15T03:21:35+00:00",
"DateTimeLocalOffset": "+00:00",
"LogEntryType": "Multiple",
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/SaLog/Entries"
},
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"@odata.type": "#LogService.v1_3_0.LogService",
"Id": "SaLog"
}
{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"Id": "DiagnosticLog",
"Name": "LogService",
"@odata.type": "#LogService.v1_3_0.LogService",
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog",
"@odata.etag": "\"5a4bfe416e7227ec46e\"",
"LogEntryType": "Multiple",
"DateTime": "2022-08-15T04:35:43+00:00",
"Entries": {
"@odata.id": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Entries"
},
"DateTimeLocalOffset": "+00:00",
"OverWritePolicy": "WrapsWhenFull",
"MaxNumberOfRecords": 2,
"Description": "This resource is used to represent a log service for a Redfish implementation.",
"ServiceEnabled": true,
"Actions": {
"#LogService.CollectDiagnosticData": {
"title": "CollectDiagnosticData",
"target": "/redfish/v1/Systems/1/LogServices/DiagnosticLog/Actions/LogService.CollectDiagnosticData"
}
}
}