Updated on 2024-10-25 GMT+08:00

Querying a Dump Task List

Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.

Configure the following parameter:

1
streamname = "XXX"  #Name of an existing stream.

Run the list_dump_task_sample.py file to call list_dump_task_test. If response code 200 is returned, the dump list is displayed.

The following is an example response:

1
2
200
{'total_number': 1, 'tasks': [{'last_transfer_timestamp': 1538018769241, 'state': 'RUNNING', 'create_time': 1537949648144, 'destination_type': 'OBS', 'task_name': 'task_test1'}]}