Querying a Dump List

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

The list_dump_task_sample.py file provides a code sample. Configure the following parameter in this file:

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
{"has_more_tasks": false, "details": [{"state": "RUNNING", "create_time": 1535595851017, "last_transfer_timestamp": 1535608269805, "task_name": "task_rsjV", "destination_type": "OBS"}], "total_number": 1}