All Products
Search
Document Center

AnalyticDB:DescribeDownloadRecords

Last Updated:Nov 10, 2025

Queries the last five SQL query download tasks of an AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster.

Operation description

For information about the endpoints of AnalyticDB for MySQL, see Endpoints .

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adb:DescribeDownloadRecordslist
*DBClusterLakeVersion
acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

The cluster ID.

Note You can call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL Data Lakehouse Edition (V3.0) clusters within a region.
amv-8vb6ha79k6e****
RegionIdstringYes

The region ID of the cluster.

cn-hangzhou
LangstringNo

The language of the returned data. Valid values:

  • zh: simplified Chinese.
  • en: English.
  • ja: Japanese.
  • zh-tw: traditional Chinese.
zh

Response parameters

ParameterTypeDescriptionExample
object
Recordsarray<object>

The queried download tasks.

Itemsobject
Statusstring

The status of the download job. Valid values:

  • running
  • finished
  • failed
finished
DownloadIdlong

The download job ID.

636890
ExceptionMsgstring

The error message returned if the download job failed.

The query result is empty.
Urlstring

The download URL of the file.

https://perth-download-task.oss-cn-beijing.aliyuncs.com/adbmysql/query-sql-logs/amv-*********/20210805104301-20210805164302.xlsx?Expires=1943514161&OSSAccessKeyId=*********&Signature=******"
FileNamestring

The name of the downloaded file.

20210806094635-20210806095135
RequestIdstring

The request ID.

D761DA51-12F8-5457-AAA9-F52B9F436D2D

Examples

Sample success responses

JSONformat

{
  "Records": [
    {
      "Status": "finished",
      "DownloadId": 636890,
      "ExceptionMsg": "The query result is empty.",
      "Url": "https://perth-download-task.oss-cn-beijing.aliyuncs.com/adbmysql/query-sql-logs/amv-*********/20210805104301-20210805164302.xlsx?Expires=1943514161&OSSAccessKeyId=*********&Signature=******\"",
      "FileName": "20210806094635-20210806095135"
    }
  ],
  "RequestId": "D761DA51-12F8-5457-AAA9-F52B9F436D2D",
  "AccessDeniedDetail": ""
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-05-14The response structure of the API has changedView Change Details