tencent cloud

Tencent Cloud WeData

ListTable

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-03-02 12:27:45

1. API Description

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

This API is used to obtain table information of assets.

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: ListTable.
Version Yes String Common Params. The value used for this API: 2025-08-06.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
PageNumber Yes Integer Page number, starting from 1.
PageSize Yes Integer Pagination size. maximum 500.
CatalogName No String Directory name.
DatasourceId No Integer Data source ID.
DatabaseName No String Database name.
SchemaName No String Schema name.
Keyword No String Search keywords table.

3. Output Parameters

Parameter Name Type Description
Data ListTablePage Paging data
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 the Table List

Query table list

Input Example

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

{
    "PageNumber": 1,
    "PageSize": 10,
    "CatalogName": "0",
    "DatasourceId": 62159,
    "DatabaseName": "test_db",
    "SchemaName": "public",
    "Keyword": "table"
}

Output Example

{
    "Response": {
        "Data": {
            "Items": [
                {
                    "BusinessMetadata": {
                        "TagNames": []
                    },
                    "CreateTime": "2025-07-24T16:54:34+08:00",
                    "DatabaseName": "test_db",
                    "Description": null,
                    "Guid": "bONctN4uSTN9qL_im1kfYA",
                    "Name": "table_262",
                    "SchemaName": "public",
                    "TableType": "TABLE",
                    "TechnicalMetadata": {
                        "Location": null,
                        "Owner": null,
                        "StorageSize": 0
                    },
                    "UpdateTime": "2025-07-24T16:54:34+08:00"
                }
            ],
            "PageCount": 0,
            "PageNumber": 1,
            "PageSize": 1,
            "TotalCount": 2
        },
        "RequestId": "b0e64ba5-8c5a-4c09-8075-9ce4f06236fd"
    }
}

Example2 Query Data Tables Via OpenAPI

OpenAPI - Query data table

Input Example

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

{
    "PageNumber": 1,
    "PageSize": 2,
    "Keyword": "tab"
}

Output Example

{
    "Response": {
        "Data": {
            "Items": [
                {
                    "BusinessMetadata": {
                        "TagNames": []
                    },
                    "CreateTime": "2025-10-09T14:58:22+08:00",
                    "DatabaseName": "abetest",
                    "Description": "",
                    "Guid": "2fELSlxKuxbP6P9jRb6gjw",
                    "Name": "unpacked_abe_inference_table",
                    "SchemaName": null,
                    "TableType": "EXTERNAL_TABLE",
                    "TechnicalMetadata": {
                        "Location": null,
                        "Owner": "root",
                        "StorageSize": 0
                    },
                    "UpdateTime": "2025-10-09T14:58:50+08:00"
                },
                {
                    "BusinessMetadata": {
                        "TagNames": []
                    },
                    "CreateTime": "2025-10-09T14:58:22+08:00",
                    "DatabaseName": "abetest",
                    "Description": "",
                    "Guid": "kBYWxZbWRrtKxOIQm4-YqQ",
                    "Name": "unpacked_abe_inference_table",
                    "SchemaName": null,
                    "TableType": "EXTERNAL_TABLE",
                    "TechnicalMetadata": {
                        "Location": null,
                        "Owner": "root",
                        "StorageSize": 0
                    },
                    "UpdateTime": "2025-10-09T14:58:50+08:00"
                }
            ],
            "PageCount": 0,
            "PageNumber": 1,
            "PageSize": 15878,
            "TotalCount": 31755
        },
        "RequestId": "a74f877f-6202-47e1-ad08-ddeceb7b4232"
    }
}

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

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック