section> Computing
  • Auto Scaling
  • Bare Metal Server
  • Dedicated Host
  • Elastic Cloud Server
  • FunctionGraph
  • Image Management Service
Network
  • Direct Connect
  • Domain Name Service
  • Elastic IP
  • Elastic Load Balancing
  • Enterprise Router
  • NAT Gateway
  • Private Link Access Service
  • Secure Mail Gateway
  • Virtual Private Cloud
  • VPC Endpoint
  • Virtual Private Network
Storage
  • Cloud Backup and Recovery
  • Cloud Server Backup Service
  • Elastic Volume Service
  • Object Storage Service
  • Storage Disaster Recovery Service
  • Scalable File Service
  • Volume Backup Service
Application Services
  • Application Operations Management
  • Application Performance Management
  • API Gateway (APIG)
  • Distributed Message Service
  • Simple Message Notification
Database Services
  • Distributed Cache Service
  • Document Database Service
  • Data Replication Service
  • GaussDB (for MySQL)
  • GeminiDB
  • Relational Database Service
Big Data and Data Analysis
  • Cloud Search Service
  • DataArts Studio
  • Data Ingestion Service
  • Data Lake Insight
  • Data Warehouse Service
  • ModelArts
  • MapReduce Service
  • Optical Character Recognition
Container Services
  • Cloud Container Engine
  • Software Repository for Containers
Applications and Databases
  • Anti DDoS
  • Database Security Service
  • Host Security Service
  • Web Application Firewall
  • Dedicated Web Application Firewall
Identity and Access Management
  • Identity and Access Management Service
Key Management
  • Key Management Service
Compliance
  • Core Services Certifications
Monitoring and Logging
  • Cloud Eye
  • Cloud Trace Service
  • Log Tank Service
Resource Management
  • Cloud Create
  • Resource Management Service
  • Tag Management Service
Other
  • Enterprise Dashboard
  • Price API
  • Price Calculator
APIs
  • REST API
  • API Usage Guidelines
  • Endpoints
Development and Automation
  • SDKs
  • Drivers and Tools
  • Terraform
  • Ansible
  • Cloud Create
Architecture Center
  • Best Practices
  • Blueprints
Other
  • Status Dashboard
  • Portfolio Roadmap
  • Training Certifications
IaaSComputingAuto ScalingBare Metal ServerDedicated HostElastic Cloud ServerFunctionGraphImage Management ServiceNetworkDirect ConnectDomain Name ServiceElastic IPElastic Load BalancingEnterprise RouterNAT GatewayPrivate Link Access ServiceSecure Mail GatewayVirtual Private CloudVPC EndpointVirtual Private NetworkStorageCloud Backup and RecoveryCloud Server Backup ServiceElastic Volume ServiceObject Storage ServiceStorage Disaster Recovery ServiceScalable File ServiceVolume Backup ServicePaaSApplications ServicesApplication Operation ManagementApplication Performance ManagementAPI Gateway (APIG)Distributed Message ServiceSimple Message NotificationDatabase ServicesDistributed Cache ServiceDocument Database ServiceData Replication ServiceGaussDB (for MySQL)GeminiDBRelational Database ServiceBig Data and Data AnalysisCloud Search ServiceDataArts StudioData Ingestion ServiceData Lake InsightData Warehouse ServiceModelArtsMapReduce ServiceOptical Character RecognitionContainer ServicesCloud Container EngineSoftware Repository for ContainersSecurityApplications and DatabasesAnti DDoSDatabase Security ServiceHost Security ServiceWeb Application FirewallDedicated Web Application FirewallIdentity and Access ManagementIdentity and Access Management ServiceKey ManagementKey Management ServiceComplianceCore Services CertificationsManagementMonitoring and LoggingCloud EyeCloud Tracking ServiceLog Tank ServiceResource ManagementCloud CreateResource Management ServiceTag Management ServiceOtherEnterprise DashboardPrice APIPrice CalculatorDevelopersAPIsREST APIAPI Usage GuidelinesEndpointsAutomation and DevelopmentSDKsDrivers and ToolsTerraformAnsibleCloud CreateArchitecture CenterBest PracticesBlueprintsOtherStatus DashboardPortfolio RoadmapTraining Certifications

Data Lake Insight

  • API Usage Guidelines
  • Overview
  • Getting Started
  • Permission-related APIs
  • Global Variable-related APIs
  • APIs Related to Enhanced Datasource Connections
  • APIs Related to Elastic Resource Pools
  • Queue-related APIs (Recommended)
  • SQL Job-related APIs
  • Flink Job-related APIs
  • APIs Related to Flink Job Templates
  • Spark Job-related APIs
  • Permissions Policies and Supported Actions
  • Out-of-Date APIs
    • Agency-related APIs (Discarded)
    • Package Group-related APIs (Discarded)
    • APIs Related to Spark Batch Processing (Discarded)
    • SQL Job-related APIs (Discarded)
    • Resource-related APIs (Discarded)
      • Database-related APIs (Discarded)
      • Table-related APIs (Discarded)
        • Creating a Table (Discarded)
        • Deleting a Table (Discarded)
        • Querying All Tables (Recommended)
        • Describing Table Information (Discarded)
        • Previewing Table Content (Discarded)
        • Listing Partitions (Discarded)
    • Permission-related APIs (Discarded)
    • Queue-related APIs (Discarded)
    • APIs Related to Flink Jobs (Discarded)
  • Public Parameters
  • Change History
  • API Reference
  • Out-of-Date APIs
  • Resource-related APIs (Discarded)
  • Table-related APIs (Discarded)
  • Querying All Tables (Recommended)

Querying All Tables (Recommended)¶

Function¶

This API is used to query information about tables that meet the filtering criteria or all the tables in the specified database.

Note

This API has been discarded and is not recommended.

URI¶

  • URI format

    GET /v1.0/{project_id}/databases/{database_name}/tables

  • Parameter description

    Table 1 URI parameters¶

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.

    database_name

    Yes

    String

    Name of the database where the table resides.

    Table 2 query parameter description¶

    Parameter

    Mandatory

    Type

    Description

    keyword

    No

    String

    Keywords used to filter table names.

    with-detail

    No

    Boolean

    Whether to obtain detailed information about tables (such as owner and size). The default value is false.

    page-size

    No

    Integer

    Paging size. The minimum value is 1 and the maximum value is 100.

    current-page

    No

    Integer

    Current page number. The minimum value is 1.

    with-priv

    No

    Boolean

    Whether to return permission information.

    table-type

    No

    String

    Database table type. The options are as follows:

    • MANAGED_TABLE: DLI table

    • EXTERNAL_TABLE: OBS table

    • VIRTUAL_VIEW: view

    datasource-type

    No

    String

    Data source type. The options are as follows:

    • CloudTable

    • CSS

    • DLI

    • GaussDB(DWS)

    • Geomesa

    • HBase

    • JDBC

    • Mongo

    • OBS

    • ODPS

    • OpenTSDB

    • Redis

    • RDS

    without-tablemeta

    No

    Boolean

    Whether to obtain the metadata of a table. The default value is false. If this parameter is set to true, the response speed can be greatly improved.

    Note

    The following is an example of the URL containing the query parameter:

    GET /v1.0/{project_id}/databases/{database_name}/tables?keyword=tb&with-detail=true

Request¶

None

Response¶

Table 3 Response parameters¶

Parameter

Mandatory

Type

Description

is_success

Yes

Boolean

Whether the request is successfully executed. Value true indicates that the request is successfully executed.

message

Yes

String

System prompt. If execution succeeds, the parameter setting may be left blank.

table_count

Yes

Integer

Total number of tables.

tables

Yes

Array of objects

Table information. For details, see Table 4.

Table 4 tables parameters¶

Parameter

Mandatory

Type

Description

create_time

Yes

Long

Time when a table is created. The timestamp is expressed in milliseconds.

data_type

No

String

Type of the data to be added to the OBS table. The options are as follows: Parquet, ORC, CSV, JSON, and Avro.

Note

This parameter is available only for OBS tables.

data_location

Yes

String

Data storage location, which can be DLI or OBS.

last_access_time

Yes

Long

Time when the table was last updated. The timestamp is expressed in milliseconds.

location

No

String

Storage path on the OBS table.

Note

This parameter is available only for OBS tables.

owner

Yes

String

Table owner.

table_name

Yes

String

Name of a table.

table_size

Yes

Long

Size of a DLI table. Set parameter to 0 for non-DLI tables. The unit is byte.

table_type

Yes

String

Type of a table.

  • EXTERNAL: Indicates an OBS table.

  • MANAGED: Indicates a DLI table.

  • VIEW: Indicates a view.

partition_columns

No

Array of Strings

Partition field. This parameter is valid only for OBS partition tables.

page-size

No

Integer

Paging size. The minimum value is 1 and the maximum value is 100.

current-page

No

Integer

Current page number. The minimum value is 1.

Note

If with-detail is set to false in the URI, only values of tables-related parameters data_location, table_name, and table_type are returned.

Example Request¶

None

Example Response¶

{
  "is_success": true,
  "message": "",
  "table_count": 1,
  "tables": [
    { "create_time":1517364268000,
      "data_location":"OBS",
      "data_type":"csv",
      "last_access_time":1517364268000,
      "location":"obs://DLI/sqldata/data.txt",
      "owner":"test",
      "partition_columns": ["a0"],
      "table_name":"obs_t",
      "table_size":0,
      "table_type":"EXTERNAL"
    }
  ]
}

Status Codes¶

Table 5 describes the status code.

Table 5 Status codes¶

Status Code

Description

200

The query is successful.

400

Request error.

500

Internal service error.

Error Codes¶

If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Codes.

  • Prev
  • Next
last updated: 2025-04-07 12:38 UTC - commit: f329684c0f115e6324dd0f7de1f33f211ce02ff2
Edit pageReport Documentation Bug
Page Contents
  • Querying All Tables (Recommended)
    • Function
    • URI
    • Request
    • Response
    • Example Request
    • Example Response
    • Status Codes
    • Error Codes
© T-Systems International GmbH
  • Contact
  • Data privacy
  • Disclaimer of liabilitys
  • Imprint