Querying a System Task

Function

This API is used to query details about asynchronous tasks.

URI

Request

Table 2 Request header parameter

Parameter

Mandatory

Type

Description

workspace

No

String

Workspace ID.

  • If this parameter is not set, data in the default workspace is queried by default.
  • To query data in other workspaces, this header must be carried.

Response

Table 3 Response parameters

Parameter

Mandatory

Type

Description

id

Yes

String

Task ID.

name

Yes

String

Name of the task.

startTime

Yes

Long

Start time.

endTime

No

Long

End time.

lastUpdate

Yes

Long

Time when the task was last updated.

status

Yes

String

Task status.

  • RUNNING
  • SUCCESSFUL
  • FAILED

message

No

String

Task information.

subtasks

No

List<SubTask>

Subtask. For details, see Table 4.

Table 4 subtasks parameters

Parameter

Mandatory

Type

Description

id

Yes

String

Subtask ID.

name

Yes

String

Name of the subtask.

startTime

Yes

Long

Start time.

endTime

No

Long

End time.

lastUpdate

Yes

Long

Time when the task was last updated.

status

Yes

String

Task status.

  • RUNNING
  • SUCCESSFUL
  • FAILED

Example

After the solution is imported successfully, query the task information.