Queries the execution records of result set export jobs of a Resource Access Management (RAM) user.
Debugging
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| adb:ListResultExportJobHistory | list | *DBClusterLakeVersion acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID of the cluster. Note
You can call the DescribeRegions operation to query the most recent region list.
| cn-hangzhou |
| DBClusterId | string | Yes | The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster. Note
You can call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL Data Lakehouse Edition clusters within a region.
| amv-7xv5ty5m9o4v**** |
| PageNumber | string | No | The page number. Pages start from page 1. | 1 |
| PageSize | string | No | The number of entries per page. Valid values:
| 30 |
| StartTime | string | No | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2022-01-01T12:01:00Z |
| EndTime | string | No | The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note
The end time must be later than the start time.
| 2023-05-25T06:54:00Z |
| Order | object | No | The order in which to sort the SQL statements by field, which contains the
| |
| Field | string | No | The field that is used to sort the SQL statements. Valid values:
| DatabaseUser |
| Type | string | No | The sorting order. Valid values (case-insensitive):
| Desc |
| StatusList | array | No | The execution status of result set export jobs. You can use this parameter to query the execution records of export jobs that are in a specific state. | |
| string | No | Valid values:
| RUNNING | |
| ResourceGroup | string | No | The name of the resource group that runs the result set export jobs. You can use this parameter to query the execution records of export jobs that are run in a specific resource group. | user_default |
| DatabaseUser | string | No | The name of the database account. | test1 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Success": true,
"HttpStatusCode": 200,
"Message": "OK",
"Code": "InvalidInput",
"Items": [
{
"DBClusterId": "amv-7xv5ty5m9o4v****",
"AliUid": "120010511678****",
"Sql": "SELECT * FROM `ADB_SampleData_TPCH`.`supplier` LIMIT 20",
"CreateTime": "2022-04-01T09:50:18Z",
"StartTime": "2021-07-03T04:00:00Z",
"EndTime": "2023-06-15T02:13:00Z",
"DatabaseUser": "ram_user",
"TimeCost": 560,
"ExportJobId": "export_2024051319271219802100800401300****\n",
"ResourceGroup": "test",
"Status": "RUNNING",
"ExportPath": "oss://testBucketName/export_test/result_export/2024/05/13/202405131528400210090110690315154****/result.csv",
"Progress": 30,
"ProcessId": "202306121421111720161451770345339****",
"ExportRows": 10000,
"Message": "Failed to execute SQL",
"Engine": "XIHE",
"Schema": "lake_db",
"ExportType": "-",
"IsExpired": true
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 174
}Error codes
For a list of error codes, visit the Service error codes.
