ListSystemLogs - 获取系统日志

获取系统日志(待下线,请不要使用)

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /api/v2/systemlogs HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

InstanceId

string

DSW 实例 Id。

dsw-730xxxxxxxxxx

SourceRequestId

string

出问题的请求 RequestId。

473469C7-******5-B3DB-A3DC0DE3C83E

Offset

string

SortBy

string

排序字段:支持以下字段

  • GmtCreateTime

  • GmtModifiedTime

GmtCreateTime

Order

string

排序方向:

  • ASC 升序

  • DESC 降序

ASC

LogRepository

string

LogLevel

string

日志等级,目前支持

  • Error

Error

GmtStartTime

string

起始 UTC 时间,日期格式 iso8601。

2020-11-08T16:00:00Z

GmtEndTime

string

结束 UTC 时间,日期格式 iso8601。

2020-12-08T16:00:00Z

ProblemCategory

string

问题分类

  • InstanceStartFailed

  • InstanceTerminating

  • InstanceCreateFailed

InstanceStartFailed

LifecycleId

string

返回参数

名称

类型

描述

示例值

object

系统日志。

SystemLogs

array<object>

系统日志列表。

object

系统日志。

Content

string

日志内容。

You are using******

GmtCreateTime

string

起始 UTC 时间,日期格式 iso8601。

2020-10-08T16:00:00Z

Level

string

日志级别。

Error。

Offset

string

示例

正常返回示例

JSON格式

{
  "SystemLogs": [
    {
      "Content": "You are using******",
      "GmtCreateTime": "2020-10-08T16:00:00Z\n",
      "Level": "Error。"
    }
  ],
  "Offset": ""
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情