调用ListExecutionLogs获取执行的详细日志。

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String ListExecutionLogs

系统规定参数。取值:ListExecutionLogs

ExecutionId String exec-xxx

执行ID

RegionId String cn-hangzhou

地域ID

TaskExecutionId String exec-1234567zxcvb.t0010

任务执行ID

LogType String System

日志类型

MaxResults Integer 50

分页大小

NextToken String MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB

翻页标记的Token

返回数据

名称 类型 示例值 描述
ExecutionLogs Array

执行日志

LogType String System

日志类型

Message String The task CheckDiskCategory completed.

详细信息

TaskExecutionId String exec-1234567zxcvb.t0010

任务执行ID

Timestamp String 2019-05-24T:02:29:07Z

时间戳

IsTruncated Boolean true

局部展示

MaxResults Integer 50

分页大小

NextToken String gAAAAABdpsGWjX8dJ-a6dl_pvoS7AFxNHSNJKHLCAJ:J0ylgA53nWW5V4HTEZKCYTaEPNOrxFir4z43UTOjE150cFr8AGTifA==

翻页标记的Token

RequestId String 14A07460-EBE7-47CA-9757-12CC4761D47A

请求ID

示例

请求示例

http(s)://oos.cn-hangzhou.aliyuncs.com/?Action=ListExecutionLogs
&ExecutionId=exec-xxx
&<公共请求参数>

正常返回示例

XML 格式

<code>200</code>
<data>
    <NextToken>gAAAAABdpsY7X-3ZUoNUxqiny_gx3zXfJ3HHHSKJDq3UAp6dQ-p7qJ2ZLtivu2LhpMiPe0P9eVP_76cO0cUgF5jFFj5Ut6g==</NextToken>
    <RequestId>0ABABABA-68A0-4DF2-8DCB-1DB8FE3A1CF1</RequestId>
    <ExecutionLogs>
        <Message>The task waitDataRecover waiting. Sleep estimated finish time (2019-10-16 07:27:35.615945)</Message>
        <LogType>System</LogType>
        <Timestamp>2019-10-16T07:26:35Z</Timestamp>
        <TaskExecutionId>exec-00eb84dd8143440da047.t0001</TaskExecutionId>
    </ExecutionLogs>
    <ExecutionLogs>
        <Message>The task waitDataRecover started.</Message>
        <LogType>System</LogType>
        <Timestamp>2019-10-16T07:26:35Z</Timestamp>
        <TaskExecutionId>exec-00eb84dd8143440da047.t0001</TaskExecutionId>
    </ExecutionLogs>
    <MaxResults>20</MaxResults>
    <IsTruncated>true</IsTruncated>
</data>
<requestId>04ABABAAB5-68A0-4DF2-8DCB-1DB8FE3A1CF1</requestId>
<successResponse>true</successResponse>

JSON 格式

{
    "code": 200,
    "data": {
        "NextToken": "gAAAAABdpsY7X-3ZUoNUxqiny_gx3zXfJ3HHHSKJDq3UAp6dQ-p7qJ2ZLtivu2LhpMiPe0P9eVP_76cO0cUgF5jFFj5Ut6g==",
        "RequestId": "0ABABABA-68A0-4DF2-8DCB-1DB8FE3A1CF1",
        "ExecutionLogs": [
            {
                "Message": "The task waitDataRecover waiting. Sleep estimated finish time (2019-10-16 07:27:35.615945)",
                "LogType": "System",
                "Timestamp": "2019-10-16T07:26:35Z",
                "TaskExecutionId": "exec-00eb84dd8143440da047.t0001"
            },
            {
                "Message": "The task waitDataRecover started.",
                "LogType": "System",
                "Timestamp": "2019-10-16T07:26:35Z",
                "TaskExecutionId": "exec-00eb84dd8143440da047.t0001"
            }
        ],
        "MaxResults": 20,
        "IsTruncated": true
    },
    "requestId": "04ABABAAB5-68A0-4DF2-8DCB-1DB8FE3A1CF1",
    "successResponse": true
}

错误码

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