All Products
Search
Document Center

ListInstanceTask

Last Updated: Jan 15, 2021

ListInstanceTask

Queries all asynchronous tasks of a specified instance by using the instance ID.

Description

Queries all asynchronous tasks of a specified instance by using the instance ID. Only the statistics of running tasks are returned.

Method

GET

URI

/openapi/instances/{instanceId}/tasks

Response parameters

Parameter

Type

Description

RequestId

String

The ID of the request.

Result

Quota

The task progress in the instance.

Sample requests

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

Sample responses

{
  "RequestId": "B352FBD9-4643-441E-80ED-699D47D7B6A3",
  "Result": [
    {
      "Name": "DATA_IMPORT",
      "TotalProgress": 100,
      "CurProgress": "DATA_IMPORT",
      "SubProgressInfos": [
        {
          "Type": "DATA_IMPORT",
          "Progress": 100,
          "Detail": " data import progress info",
          "TotalNum": 11,
          "FinishedNum": 11
        }
      ]
    },
    {
      "Name": "AUTO_CREATE",
      "TotalProgress": 100,
      "CurProgress": "ASSIST_SERVICE",
      "SubProgressInfos": [
        {
          "Type": "DATA_PROCESS",
          "Progress": 100,
          "Detail": " data processing progress info",
          "TotalNum": 3,
          "FinishedNum": 3
        },
        {
          "Type": "OFFLINE_SERVICE",
          "Progress": 100,
          "Detail": "offline service building progress info",
          "TotalNum": 19,
          "FinishedNum": 19
        },
        {
          "Type": "SEARCH_ENGINE",
          "Progress": 100,
          "Detail": "search engine building progress info"
        },
        {
          "Type": "ONLINE_SERVICE",
          "Progress": 100,
          "Detail": "online service building progress info"
        },
        {
          "Type": "ASSIST_SERVICE",
          "Progress": 100,
          "Detail": "assist service building progress info",
          "TotalNum": 2,
          "FinishedNum": 2
        }
      ]
    }
  ]
}