LogServicesEntriesCollection
更新时间: 2026/07/01
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Managers/manager_id/LogServices/logservice_id/Entries

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue日志集合资源模型的OData描述信息
@odata.idstringtrue日志集合资源的访问路径
@odata.typestringtrue日志集合资源的类型
Namestringtrue日志集合资源的名称
Members@odata.countnumberfalse当前日志资源数量
Members@odata.nextLinkstringfalse下一分页的链接。 说明由于分页限制,每页最多显示32个成员。

supported_methods

  • GET

HTTP methods

GET

命令功能

查询日志集合资源信息

命令格式

URL: https://device_ip/redfish/v1/Managers/manager_id/LogServices/logservice_id/Entries

请求头:

X-Auth-Token: auth_value

请求消息体: 无

参数说明

参数参数说明取值
device_ip登录设备的IP地址IPv4或IPv6地址
auth_value请求消息的鉴权参数可通过/redfish/v1/SessionService/Sessions创建会话时获得

使用指南

使用实例

请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/LogServices/logservice_id/Entries

X-Auth-Token: auth_value 请求消息体:无

响应样例:

json
{
  "@odata.context": "/redfish/v1/$metadata#Managers/Members/1/LogServices/OperateLog/$entity",
  "@odata.id": "/redfish/v1/Managers/1/LogServices/OperateLog/Entries",
  "@odata.type": "#LogEntryCollection.LogEntryCollection",
  "Name": "Log Service Collection",
  "Description": "Collection of operate Logs for this System",
  "Members@odata.count": 456,
  "Members": [
    {
      "@odata.id": "/redfish/v1/Managers/1/LogServices/OperateLog/Entries/1",
      "@odata.context": "/redfish/v1/$metadata#Managers/Members/1/LogServices/OperateLog/Entries/Members/$entity",
      "@odata.type": "#LogEntry.v1_1_1.LogEntry",
      "Name": "Operate Log",
      "EntryType": "Oem",
      "Id": 1,
      "Created": "2017-01-01 00:00:26",
      "Message": "root(127.0.0.1) login successfully",
      "Oem": {
        "Public": {
          "Interface": "CLI",
          "User": "root",
          "Address": "127.0.0.1"
        }
      }
    }
  ],
  "Members@odata.nextLink": "/redfish/v1/Managers/1/LogServices/OperateLog/Entries?$skip=32&$top=32"
}

响应码:200