tencent cloud

Feedback

DescribeTableMeta

Last updated: 2024-06-24 16:59:00

1. API Description

Domain name for API request: wedata.tencentcloudapi.com.

Querying Table Metadata Details

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeTableMeta.
Version Yes String Common Params. The value used for this API: 2021-08-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
TableId Yes String Unique Table ID
TableNameFilter No TableNameFilter Query conditions by Name
TableFilterType No Integer Query condition type: 0 by ID, 1 by Name, default is 0

3. Output Parameters

Parameter Name Type Description
TableMeta TableMeta Table Metadata InformationNote: This field may return null, indicating that no valid value can be obtained.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Querying Table Metadata Details

Input Example

POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTableMeta
<Common request parameters>

{
    "TableId": "MvNP9ruUR4qOYfQsaabbcc"
}

Output Example

{
    "Response": {
        "RequestId": "0eeb0618-621a-4e21-a74d-68f1d183749d",
        "TableMeta": {
            "BizCatalogIds": null,
            "BizCatalogNames": null,
            "ClusterId": "emr-1cbhbbccdd",
            "ClusterName": "emr-1cbhbbccdd",
            "ColumnSeparator": "Hive Default",
            "Columns": [
                {
                    "ChineseName": null,
                    "ColumnKey": null,
                    "Description": "wwwwww",
                    "IsPartition": false,
                    "Name": "wwwww",
                    "Position": 0,
                    "Type": "tinyint",
                    "CreateTime": "2024-01-08T23:32:51.000+00:00",
                    "DefaultValue": null,
                    "Length": null,
                    "ModifiedTime": "2024-01-08T23:32:51.000+00:00",
                    "Precision": null,
                    "Scale": null
                }
            ],
            "CreateTime": "2023-07-04T16:51:54+08:00",
            "DataModifyTime": null,
            "DataSourceCategory": "CLUSTER",
            "DatabaseId": "dgz--YqoS3aWyUYjKE_QQQ",
            "DatabaseName": "test11",
            "DatasourceDisplayName": "hive_emr-1cbhqqbb.test11",
            "DatasourceId": 30111,
            "DatasourceName": "hive_emr-1cbhqqbb",
            "DdlModifyTime": "2023-07-04T16:51:54+08:00",
            "Description": null,
            "FavoriteCount": 0,
            "HasAdminAuthority": false,
            "HasFavorite": false,
            "HasLike": null,
            "InstanceId": "emr-1cbhqqbb",
            "IsPartitionTable": null,
            "IsView": false,
            "LastAccessTime": "2023-07-04T16:53:42+08:00",
            "LifeCycleTime": null,
            "LikeCount": 0,
            "Location": null,
            "MetaCrawlType": "MANAGED_TABLE",
            "MetastoreId": 128643,
            "MetastoreType": "HIVE",
            "ModifyTime": "2023-07-04T16:51:54+08:00",
            "OwnerProjectId": null,
            "PartitionColumns": null,
            "PartitionExpireDays": null,
            "Partitions": null,
            "ProjectDisplayName": "Project test",
            "ProjectId": "1728806907743539200",
            "ProjectName": "loader_test",
            "ReplicationFactor": null,
            "StorageFormat": "TEXTFILE",
            "StorageSize": 0,
            "StorageSizeWithUnit": "0B",
            "TableHeat": {
                "DayTime": "2024-04-12T00:00:00+08:00",
                "Heat": 0,
                "MaxHeat": 0,
                "TableId": "MvNP9ruUR4qOYfQsaabbcc"
            },
            "TableId": "MvNP9ruUR4qOYfQsaabbcc",
            "TableName": "aaaa_test2",
            "TableNameCn": null,
            "TableNameEn": null,
            "TableOwnerId": null,
            "TableOwnerName": "shaopenquan",
            "TablePath": "hdfs://172.16.0.7:4007/usr/hive/warehouse/test11.db/aaaa_test2",
            "TablePropertyScore": {
                "Average": 79.5,
                "DayTime": "2024-04-12T00:00:00+08:00",
                "Integrity": 88,
                "Normative": 0,
                "Safety": 30,
                "Stability": 100,
                "TableId": "MvNP9ruUR4qOYfQsVo5dFg",
                "Timeliness": 100
            },
            "TableType": "MANAGED_TABLE",
            "TechnologyType": "HIVE"
        }
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure CAM Signature/Authentication Error.
AuthFailure.SignatureExpire Not logged in or login has expired.
FailedOperation Operation Failure.
InternalError An internal error occurs.
InvalidParameter Parameter error.
OperationDenied.UserNotInWhitelistError The user is not in the allowlist.
ResourceNotFound The resource does not exist.