全部产品
云市场
云游戏

ListInstanceTask

更新时间:2019-10-15 14:11:29

ListInstanceTask

查询指定实例的任务列表。

描述

通过指定的实例ID查看实例的所有异步任务。
只返回当前正在进行中的任务,已完成的历史任务无法查询。

方法

GET

URI

/openapi/instances/{instanceId}/tasks

返回参数

参数 类型 描述
RequestId String 当前请求的RequestID
Result Quota 实例任务进度

请求示例

  1. GET /openapi/instances/airec-cn-xxxxxx/tasks

返回示例

  1. {
  2. "RequestId": "B352FBD9-4643-441E-80ED-699D47D7B6A3",
  3. "Result": [
  4. {
  5. "Name": "DATA_IMPORT",
  6. "TotalProgress": 100,
  7. "CurProgress": "DATA_IMPORT",
  8. "SubProgressInfos": [
  9. {
  10. "Type": "DATA_IMPORT",
  11. "Progress": 100,
  12. "Detail": " data import progress info",
  13. "TotalNum": 11,
  14. "FinishedNum": 11
  15. }
  16. ]
  17. },
  18. {
  19. "Name": "AUTO_CREATE",
  20. "TotalProgress": 100,
  21. "CurProgress": "ASSIST_SERVICE",
  22. "SubProgressInfos": [
  23. {
  24. "Type": "DATA_PROCESS",
  25. "Progress": 100,
  26. "Detail": " data processing progress info",
  27. "TotalNum": 3,
  28. "FinishedNum": 3
  29. },
  30. {
  31. "Type": "OFFLINE_SERVICE",
  32. "Progress": 100,
  33. "Detail": "offline service building progress info",
  34. "TotalNum": 19,
  35. "FinishedNum": 19
  36. },
  37. {
  38. "Type": "SEARCH_ENGINE",
  39. "Progress": 100,
  40. "Detail": "search engine building progress info"
  41. },
  42. {
  43. "Type": "ONLINE_SERVICE",
  44. "Progress": 100,
  45. "Detail": "online service building progress info"
  46. },
  47. {
  48. "Type": "ASSIST_SERVICE",
  49. "Progress": 100,
  50. "Detail": "assist service building progress info",
  51. "TotalNum": 2,
  52. "FinishedNum": 2
  53. }
  54. ]
  55. }
  56. ]
  57. }