Lists the logs of a scheduled task for a specific data source.
Operation description
Before calling this operation, ensure you understand the billing methods and pricing for the data transfer service, exclusive resource groups, and elastic reserved computing resources.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/mms/datasources/{sourceId}/timers/{timerId}/logs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sourceId |
integer |
No |
The ID of the data source. |
2000015 |
| timerId |
integer |
No |
The ID of the scheduled task. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| pageNum |
integer |
No |
The page number. |
1 |
| pageSize |
integer |
No |
The number of entries per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API response. |
||
| requestId |
string |
The request ID. |
0b87b7e716665825896565060e87a4 |
| data |
object |
The returned data. |
|
| total |
integer |
The total number of records. |
100 |
| objectList |
array<object> |
The list of logs. |
|
|
object |
A log entry. |
||
| id |
integer |
The ID of the asynchronous task for the migration job created by the scheduled task. |
1003476 |
| sourceId |
integer |
The ID of the data source. |
200018 |
| status |
string |
The status of the migration job created by the scheduled task. |
DOING |
| action |
string |
The logged action for the migration job created by the scheduled task. |
start job |
| msg |
string |
A detailed message about the action. |
start job success |
| createTime |
string |
The creation time of the log entry. |
2024-12-17 15:44:17 |
| pageNum |
integer |
The page number. |
1 |
| pageSize |
integer |
The number of entries per page. |
10 |
Examples
Success response
JSON format
{
"requestId": "0b87b7e716665825896565060e87a4",
"data": {
"total": 100,
"objectList": [
{
"id": 1003476,
"sourceId": 200018,
"status": "DOING",
"action": "start job",
"msg": "start job success",
"createTime": "2024-12-17 15:44:17\n"
}
],
"pageNum": 1,
"pageSize": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.