All Products
Search
Document Center

Tablestore:List the names of delivery tasks

Last Updated:Dec 08, 2020

You can call the ListDeliveryTask operation to list information about all deliver tasks for a table.

Prerequisites

Request parameters

Parameter

Description

TableName

The name of the table.

Response parameters

Parameter

Description

TableName

The name of the table, which is the same as the name of the table in the request.

TaskName

The name of the delivery task.

TaskType

The mode in which to deliver data. Valid values:

  • 0: the full data delivery mode

  • 1: the incremental data delivery mode

  • 2: the differential data delivery mode

Examples

func ListTask(client *tablestore.TableStoreClient, tableName string) {
 resp, err := client.ListDeliveryTask(&tablestore.ListDeliveryTaskRequest{
  TableName: tableName,
 })
 if err != nil {
  log.Fatal("list delivery task failed ", err)
 }
 for _, task := range resp.Tasks {
  fmt.Println("task: ", task)
 }
 fmt.Println("list task finish")
}