All Products
Search
Document Center

AnalyticDB:DescribeAdbMySqlTableMeta

Last Updated:Nov 03, 2025

Queries the information about table metadata.

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:DescribeAdbMySqlTableMetaget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID.

Note You can call the DescribeRegions operation to query the most recent region list.
cn-hangzhou
DBClusterIdstringYes

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.
am-bp11q28kvl688****
SchemastringYes

The name of the database.

adb_demo
TableNamestringYes

The name of the table.

Note If you leave this parameter empty, the information about all the current tables in the cluster is returned.
test

Response parameters

ParameterTypeDescriptionExample
object
Messagestring

The returned message. Valid values:

  • If the request was successful, a success message is returned.****
  • If the request failed, an error message is returned.
Success
RequestIdstring

The request ID.

2FED790E-FB61-4721-8C1C-07C627FA5A19
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
TableMetaobject

The queried table metadata.

TableSchemastring

The database to which the table belongs.

tpch
TableNamestring

The name of the table.

**


external_supplier
TableTypestring

The type of the table.

fact_table
DistributeTypestring

The distribution type.

hash
DistributeColumnstring

The distribution key column.

customer_id
PartitionTypestring

The type of the partition.

value
PartitionColumnstring

The partition key column.

DATE_FORMAT(login_time, '%Y%m%d')
PrimaryKeyColumnstring

The primary key column.

login_time,customer_id,phone_num
TableEnginestring

The table engine.

XUANWU
IsDictEncodeboolean

Indicates whether dictionary encoding is used.

true
IsHiddenboolean

Indicates whether pages are hidden.

  • false
  • true
true
IsAllIndexboolean

Indicates whether full-column indexes are used.

false
IsFullTextDictboolean

Indicates whether full-text indexes are used.

true
CreateTimestring

The time when the table was created.

2025-03-14 02:18:08.0
UpdateTimestring

The time when the table was updated.

2024-07-25 02:07:23.0

Examples

Sample success responses

JSONformat

{
  "Message": "Success",
  "RequestId": "2FED790E-FB61-4721-8C1C-07C627FA5A19",
  "Success": true,
  "TableMeta": {
    "TableSchema": "tpch",
    "TableName": "external_supplier",
    "TableType": "fact_table",
    "DistributeType": "hash",
    "DistributeColumn": "customer_id",
    "PartitionType": "value",
    "PartitionColumn": "DATE_FORMAT(login_time, '%Y%m%d')",
    "PrimaryKeyColumn": "login_time,customer_id,phone_num",
    "TableEngine": "XUANWU",
    "IsDictEncode": true,
    "IsHidden": true,
    "IsAllIndex": false,
    "IsFullTextDict": true,
    "CreateTime": "2025-03-14 02:18:08.0",
    "UpdateTime": "2024-07-25 02:07:23.0"
  }
}

Error codes

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