You can call the DescribeDeliveryTask operation to query the descriptive information of a delivery task.
Prerequisites
The TableStoreClient instance is initialized. For more information, see Initialization.
The delivery task is created. For more information about how to use the console or the SDK, see Quick start or Create delivery tasks.
Request parameters
Parameter | Description |
---|---|
TableName | The name of the table. |
TaskName | The name of the delivery task. |
Response parameters
Parameter | Description |
---|---|
TaskConfig | The configuration information of the delivery task. |
TaskSyncStat | The synchronization status of the delivery task. |
TaskType | The mode in which to deliver data. Valid values:
|
Examples
func DescribeTaskSample(client *tablestore.TableStoreClient, tableName, taskName string) {
req := &tablestore.DescribeDeliveryTaskRequest{
TableName: tableName,
TaskName: taskName,
}
resp, err := client.DescribeDeliveryTask(req)
if err != nil {
log.Fatal("describe delivery task failed ", err)
}
fmt.Println("TaskConfig: ", *resp.TaskConfig)
fmt.Println("TaskSyncStat: ", *resp.TaskSyncStat)
fmt.Println("TaskType: ", resp.TaskType)
return
}