Creates an index table for a data table.

Request syntax

message CreateIndexRequest {
    required string main_table_name = 1;
    required IndexMeta index_meta = 2;
    optional bool include_base_data = 3;
}
Parameter Type Required Description
main_table_name string Yes The name of the data table for which you want to create an index table.
index_meta IndexMeta Yes The schema of the index table that you want to create.
include_base_data bool No Specifies whether to include the existing data of the data table in the index table that you want to create.

Response syntax



message CreateIndexResponse {
}

Use Tablestore SDKs

You can use the following Tablestore SDKs to create an index table for a data table: