Help Center/
Data Ingestion Service/
SDK Reference/
Getting Started with SDK/
Using the Python SDK/
Querying Stream Details
Updated on 2024-10-25 GMT+08:00
Querying Stream Details
Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.
Configure the following parameter:
1
|
streamname = "dis-test1" #Name of an existing stream. |
After configuring the parameter, run the describeStream_sample.py file to call describeStream_test by default.
The following is an example response:
1 2 |
200 {"status": "RUNNING", "stream_name": "dis-test1", "data_type": "BLOB", "has_more_partitions": false, "stream_type": "COMMON", "stream_id": "L84hxfES223eVrFyxiE", "retention_period": 168, "create_time": 1532423353637, "last_modified_time": 1532423354625, "partitions": [{"status": "ACTIVE", "hash_range": "[0 : 9223372036854775807]", "sequence_number_range": "[0 : 10]", "partition_id": "shardId-0000000000"}]} |
Parent topic: Using the Python SDK
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot