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 |
---|---|
500 | InternalError |
示例
返回以下示例 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"
}
}
}
提供反馈