Querying Dump Details

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

The describe_dump_task_sample.py file provides a code sample. Configure the following parameters in this file:

1
2
streamname ="dis-test1"  #Name of an existing stream.
task_name="test_1"  #Query the xx dump task of the stream.

After configuring the parameters, run the describe_dump_task_sample.py file to call describe_dump_task_test by default.

The following is an example response:
1
2
200
{'state': 'RUNNING', 'create_time': 1536562174110, 'task_name': 'test_1', 'destination_type': 'OBS', 'last_transfer_timestamp': 1536562183057}