DescribeDownloadRecords
Queries the download records for query diagnostic information for AnalyticDB for PostgreSQL.
Operation description
To view download records, you must first call the DownloadDiagnosisRecords operation to download the query diagnostic information.
This feature is available only for storage-elastic instances that run kernel minor version V6.3.10.1 or later. For more information about how to view and update the kernel minor version, see View the kernel minor version and Upgrade the kernel version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeDownloadRecords |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. Note
You can call the DescribeDBInstances operation to query the details of all AnalyticDB for PostgreSQL instances in a specific region, including instance IDs. |
gp-bp12ga6v69h86**** |
| DownloadTaskType |
string |
No |
The download task type. Valid values:
|
SLOW_SQL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Records |
array<object> |
An array of download records. |
|
|
object |
The details of a download record. |
||
| DownloadId |
integer |
The ID of the download record. |
1150 |
| ExceptionMsg |
string |
The error message. |
Error message |
| FileName |
string |
The file name. |
20220509113448-20220509173448.csv |
| Status |
string |
The status of the task that uploads the query diagnostic information file to Object Storage Service (OSS). You can download the file after the upload is complete. Valid values:
|
finished |
| DownloadUrl |
string |
The download URL. |
https://perth-download-task.oss-cn-beijing.aliyuncs.com/***** |
| RequestId |
string |
The request ID. |
B4CAF581-2AC7-41AD-8940-D56DF7AADF5B |
Examples
Success response
JSON format
{
"Records": [
{
"DownloadId": 1150,
"ExceptionMsg": "Error message",
"FileName": "20220509113448-20220509173448.csv",
"Status": "finished",
"DownloadUrl": "https://perth-download-task.oss-cn-beijing.aliyuncs.com/*****"
}
],
"RequestId": "B4CAF581-2AC7-41AD-8940-D56DF7AADF5B"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.