ListSystemLogs - 获取系统日志

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

调试

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

授权信息

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

请求语法

GET /api/v2/systemlogs HTTP/1.1

请求参数

名称类型必填描述示例值
InstanceIdstring

DSW 实例 Id。

dsw-730xxxxxxxxxx
SourceRequestIdstring

出问题的请求 RequestId。

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

排序字段:支持以下字段

  • GmtCreateTime
  • GmtModifiedTime
GmtCreateTime
Orderstring

排序方向:

  • ASC 升序
  • DESC 降序
ASC
LogLevelstring

日志等级,目前支持

  • Error
Error
GmtStartTimestring

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

2020-11-08T16:00:00Z
GmtEndTimestring

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

2020-12-08T16:00:00Z
ProblemCategorystring

问题分类

  • InstanceStartFailed
  • InstanceTerminating
  • InstanceCreateFailed
InstanceStartFailed

返回参数

名称类型描述示例值
object

系统日志。

SystemLogsarray<object>

系统日志列表。

TagResourcesobject

系统日志。

Contentstring

日志内容。

You are using******
GmtCreateTimestring

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

2020-10-08T16:00:00Z
Levelstring

日志级别。

Error。

示例

正常返回示例

JSON格式

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

错误码

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