ListTables
Retrieves a paginated list of table names at the data source type level for a tenant.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Maximum value: 100. |
10 |
| DataSourceType |
string |
Yes |
The data source type. Valid values: odps, emr, mysql, holo, analyticdb_for_mysql, oracle, postgresql, sqlserver, clickhouse, and starrocks. |
odps |
| NextToken |
string |
No |
The pagination cursor. Omit this parameter for the first query. To query the next page, pass the |
AAAAAVY3rYiv9VoUJQSiCitgjgSwg+byk0FIjirFkm4zfM4G0xYwM/FQvOhgrTHsCPIZ5yqXYu2NG6qRCRC52HvwbOA= |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
E25887B7-579C-54A5-9C4F-83A**** |
| Data |
object |
The response data. |
|
| Total |
integer |
The total count. |
100 |
| TableEntityList |
array<object> |
The array of entities. |
|
|
array<object> |
The returned table information. |
||
| EntityQualifiedName |
string |
The unique identifier of the table entity. |
maxcompute-table.project.table |
| EntityContent |
object |
The table entity information. |
|
| TableName |
string |
The table name. |
table |
| DataSourceQualifiedName |
string |
The unique identifier of the data source. |
accountId:cn-shanghai:odps:project |
| DataSourceUniqueId |
string |
The unique data source ID. |
e70f92239d491057f6a2563b545bdaf8cc6b537d9dc55ec84c55f7cfefg |
| DatabaseName |
string |
The database name. |
database |
| ProjectName |
string |
The MaxCompute project name. |
project |
| InstanceId |
string |
The data source instance ID. |
rm-uf6rn0123 |
| NextToken |
string |
The pagination cursor for the next page. If a non-empty value is returned, you can pass it to the |
AAAAAVY3rYiv9VoUJQSiCitgjgSwg+byk0FIjirFkm4zfM4G0xYwM/FQvOhgrTHsCPIZ5yqXYu2NG6qRCRC52HvwbOA= |
Examples
Success response
JSON format
{
"RequestId": "E25887B7-579C-54A5-9C4F-83A****",
"Data": {
"Total": 100,
"TableEntityList": [
{
"EntityQualifiedName": "maxcompute-table.project.table",
"EntityContent": {
"TableName": "table",
"DataSourceQualifiedName": "accountId:cn-shanghai:odps:project",
"DataSourceUniqueId": "e70f92239d491057f6a2563b545bdaf8cc6b537d9dc55ec84c55f7cfefg",
"DatabaseName": "database",
"ProjectName": "project",
"InstanceId": "rm-uf6rn0123"
}
}
],
"NextToken": "AAAAAVY3rYiv9VoUJQSiCitgjgSwg+byk0FIjirFkm4zfM4G0xYwM/FQvOhgrTHsCPIZ5yqXYu2NG6qRCRC52HvwbOA="
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.