Querying a Stream List
Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.
The listStream_sample.py file provides a code sample. Configure the following parameter in this file:
1 |
start_stream_name = "" #Leave unspecified or set to an existing stream name.
|
Run the listStream_sample.py file to call listStream_test. If response code 200 is returned, the stream list is displayed.
The following is an example response:
1 2 |
200
{'stream_names': ['dis-jLGp', 'dis-w_p', 'dis_test1', 'dis_test2'], 'has_more_streams': False, 'total_number': 4}
|
Last Article: Deleting a Dump Task
Next Article: Querying a Dump List
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.