Lists the timers for a specified data source.
Operation description
Before calling this operation, ensure you understand the billing methods and pricing for exclusive resource groups and elastic reserved computing resources for Data Transmission Service.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/mms/datasources/{sourceId}/timers HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| sourceId |
integer |
Yes |
The data source ID. |
2000015 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The timer name. |
demo |
| srcDbName |
string |
No |
The source database name. |
test_db_1 |
| srcTableName |
string |
No |
The source table name. |
test_table_1 |
| stopped |
boolean |
No |
Filters timers by their stopped state. |
false |
| 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 response. |
||
| requestId |
string |
The request ID. |
0b87b7e716665825896565060e87a4 |
| data |
object |
The returned data. |
|
| total |
integer |
The total number of entries. |
13 |
| objectList |
array<object> |
A list of timers. |
|
|
object |
The timer details. |
||
| id |
integer |
The timer ID. |
18 |
| name |
string |
The timer name. |
migrate_db_1 |
| sourceId |
integer |
The data source ID. |
2000015 |
| dbId |
integer |
The source database ID. |
196 |
| srcDbName |
string |
The source database name. |
db_1 |
| type |
string |
The job type. |
TABLES |
| createTime |
string |
The creation time. |
2024-12-17 09:29:58 |
| scheduleType |
string |
The schedule type. |
Daily |
| value |
string |
The schedule time. |
00:00 |
| stopped |
boolean |
Indicates whether the timer is stopped. |
false |
| pageNum |
integer |
The page number. |
1 |
| pageSize |
integer |
The number of entries on the current page. |
10 |
Examples
Success response
JSON format
{
"requestId": "0b87b7e716665825896565060e87a4",
"data": {
"total": 13,
"objectList": [
{
"id": 18,
"name": "migrate_db_1",
"sourceId": 2000015,
"dbId": 196,
"srcDbName": "db_1",
"type": "TABLES",
"createTime": "2024-12-17 09:29:58\n\n",
"scheduleType": "Daily",
"value": "00:00",
"stopped": false
}
],
"pageNum": 1,
"pageSize": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.