DescribeLoadTasksRecords
Queries the details of asynchronous import and export tasks.
Operation description
For more information about asynchronous commit import and export tasks, refer to Asynchronous commit import and export tasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeLoadTasksRecords |
get |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to query the region IDs supported by AnalyticDB for MySQL Data Warehouse Edition. |
cn-shanghai |
| DBClusterId |
string |
Yes |
The cluster ID. Note
You can call the DescribeDBClusters operation to query the details of all AnalyticDB for MySQL Data Warehouse Edition clusters in a specified region, including the cluster IDs. |
am-bp2590j**** |
| StartTime |
string |
Yes |
The start time of the query. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). Note
Set the start time to a point in time within the last 30 days. |
2021-05-18T06:00:00Z |
| EndTime |
string |
Yes |
The end time of the query, which must be later than the start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2021-05-18T06:30:00Z |
| DBName |
string |
No |
The name of the database involved in the import and export task. |
adb_demo |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
|
30 |
| PageNumber |
integer |
No |
The page number. The value must be a positive integer that does not exceed the maximum value of the Integer data type. Default value: 1. |
1 |
| Order |
string |
No |
Sorts tasks in ascending or descending order based on a specified field. The parameter value must be a JSON string. Example: Note
|
[{"Field":"CreateTime", "Type":"desc"}] |
| State |
string |
No |
The status of the asynchronous import or export task to query. Valid values:
|
FINISH |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The parameter list. |
||
| TotalCount |
string |
The total number of tasks. |
1 |
| PageSize |
string |
The number of entries on the current page. |
30 |
| RequestId |
string |
The request ID. |
C60B05DB-2B77-421A-98E9-92C20E****** |
| PageNumber |
string |
The page number. |
1 |
| DBClusterId |
string |
The cluster ID. |
am-bp2590j**** |
| LoadTasksRecords |
array<object> |
The list of task information. |
|
|
object |
The parameter list. |
||
| Sql |
string |
The details of the SQL statement used in the asynchronous import and export task. |
insert overwrite into courses_external_table\nselect * from courses |
| State |
string |
The task status. |
FINISH |
| CreateTime |
string |
The start time of the task, accurate to milliseconds. Format: yyyy-MM-ddTHH:mm:ss.SSSZ. |
2021-05-18 18:47:27.0 |
| DBName |
string |
The name of the database involved in the import and export task. |
adb_demo |
| ProcessID |
string |
The process ID. |
2021051818472717201616624903453****** |
| UpdateTime |
string |
The time when the task status was updated, accurate to milliseconds. Format: yyyy-MM-ddTHH:mm:ss.SSSZ. |
2021-05-18 18:47:31.0 |
| JobName |
string |
The task ID. |
2021051818472717201616624903453****** |
| ProcessRows |
integer |
The number of data rows processed by the asynchronous import and export task. |
6 |
Examples
Success response
JSON format
{
"TotalCount": "1",
"PageSize": "30",
"RequestId": "C60B05DB-2B77-421A-98E9-92C20E******",
"PageNumber": "1",
"DBClusterId": "am-bp2590j****",
"LoadTasksRecords": [
{
"Sql": "insert overwrite into courses_external_table\\nselect * from courses",
"State": "FINISH",
"CreateTime": "2021-05-18 18:47:27.0",
"DBName": "adb_demo",
"ProcessID": "2021051818472717201616624903453******",
"UpdateTime": "2021-05-18 18:47:31.0",
"JobName": "2021051818472717201616624903453******",
"ProcessRows": 6
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.