queryTaskLogs
Request URL: console-rpa.aliyun.com/rpa/openapi/task/queryTaskLogs
HTTP method: GET
Response format: JSON
Description: Retrieves the operational logs of a scheduled task.
Request parameters
Name | Type | Required | Sample value | Description |
taskId | String | Yes | 3226a05a-98b9-4d48-8529-b8fb7e4561c6 | The unique identifier of the task. |
currentPage | integer | No | 1 | The page number. Default value: 1. |
pageSize | integer | No | 1 | The number of records on each page. |
Response parameters
For more information about common response parameters, see Response structure. The following table describes the fields in the data parameter.
Name | Type | Example value | Description |
taskId | String | e6104c63-c7a3-4f56-b81a-8135c4b4e0fa | The unique identifier of the task. |
level | String | info | The log level. |
content | String | hello | Content |
gmtCreate | String | 2020-04-28 13:08:39 | Creation Time |
Examples
Request example:
https://console-rpa.aliyun.com/rpa/openapi/task/queryTaskLogs?<Common request parameters>
&taskId=3226a05a-98b9-4d48-8529-b8fb7e4561c6
¤tPage=1
&pageSize=1Response example:
{
"requestId":"d895f93d-52f0-4020-83b4-a08f6910aadf",
"success":true,
"code":0,
"msg":"The call is successful.",
"msgCode":"result.success",
"data":[
{
"taskId":"e6104c63-c7a3-4f56-b81a-8135c4b4e0fa",
"level":"info",
"content":"hello",
"gmtCreate":"2020-04-28 13:08:39"
}
],
"pager":{
"currentPage":1,
"totalPage":5,
"pageSize":1,
"total":5,
"limit":1,
"offset":0
}
}