All Products
Search
Document Center

Tablestore:Query the names of time series tables

Last Updated:Jan 15, 2024

You can call the ListTimeseriesTable operation to query the names of all time series tables in an instance.

Prerequisites

Example

The following sample code provides an example on how to query the names of all time series tables in an instance.

private static void listTimeseriesTable(TimeseriesClient client) {
    ListTimeseriesTableResponse listTimeseriesTableResponse = client.listTimeseriesTable();
    for (String table : listTimeseriesTableResponse.getTimeseriesTableNames()) {
        System.out.println(table);
    }
}