ListTables

Updated at: 2025-02-19 01:50

Obtains tables of different data source types within a tenant by page.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
PageSizeintegerNo

The number of entries displayed on each page. The default value is 10 and the maximum value is 100.

10
DataSourceTypestringYes

The type of the data source. Valid values: ODPS, emr, mysql, holo, analyticdb_for_mysql, oracle, postgresql, sqlserver, clickhouse, and starrocks.

odps emr mysql holo
NextTokenstringNo

Pagination information, which specifies the starting point of this read.

12222

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

E25887B7-579C-54A5-9C4F-83A0DE367DD
Dataobject

The returned data.

Totallong

The total number.

100
TableEntityListarray<object>

An array of entities.

TableEntityListobject

The information about the table.

EntityQualifiedNamestring

The unique identifier of the table entity.

maxcompute-table.project.table
EntityContentobject

The information about the table.

TableNamestring

The name of the table.

table
DataSourceQualifiedNamestring

The unique identifier of the data source.

accountId:cn-shanghai:odps:project
DataSourceUniqueIdstring

The unique ID of the data source identifier.

e70f92239d491057f6a2563b545bdaf8cc6b537d9dc55ec84c55f7cfefg
DatabaseNamestring

The name of the database.

database
ProjectNamestring

The name of the ODPS project.

project
InstanceIdstring

The ID of the data source instance.

rm-uf6rn0123
NextTokenstring

Pagination information, which specifies the starting point of the next read.

AAAAAVY3rYiv9VoUJQSiCitgjgSwg+byk0FIjirFkm4zfM4G0xYwM/FQvOhgrTHsCPIZ5yqXYu2NG6qRCRC52HvwbOA=

Examples

Sample success responses

JSONformat

{
  "RequestId": "E25887B7-579C-54A5-9C4F-83A0DE367DD",
  "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

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

Change history

Change timeSummary of changesOperation
Change timeSummary of changesOperation
2024-09-03The response structure of the API has changedView Change Details
  • On this page (1)
  • Debugging
  • Authorization information
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback
phone Contact Us