Querying a Dump Task List
Initialize a DIS SDK client instance named dic. For details, see Initializing a DIS SDK Client Instance.
You can use the DIS SDK to query the dump task list of a specified stream.
1 2 3 4 | ListTransferTasksRquest request = new ListTransferTasksRquest(); //Configure the name of the stream to be queried. request.setStreamName(streamName); |
After configuring ListTransferTaskRequest, you can call the listTransferTask method to query the dump task list of a specified stream.
1 | ListTransferTasksResult result = dic.listTransferTasks(request); |
Information similar to the following is displayed when you query the dump task list:
1 2 3 4 5 6 7 8 9 10 11 12 | { "tasks":[ { "destination_type":"OBS", "task_name":"task_qTd9", "create_time":1552355757885, "state":"RUNNING", "last_transfer_timestamp":1552458158527 } ], "total_number":2 } |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot