LogServicesEntriesCollection
更新时间: 2026/07/01
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Managers/manager_id/LogServices/logservice_id/Entries
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | 日志集合资源模型的OData描述信息 | |
| @odata.id | string | true | 日志集合资源的访问路径 | |
| @odata.type | string | true | 日志集合资源的类型 | |
| Name | string | true | 日志集合资源的名称 | |
| Members@odata.count | number | false | 当前日志资源数量 | |
| Members@odata.nextLink | string | false | 下一分页的链接。 说明由于分页限制,每页最多显示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