queryTaskStatus

更新时间:
复制 MD 格式

Request URL: console-rpa.aliyun.com/rpa/openapi/task/queryTaskStatus

Request method: GET

Response format: JSON

Description: Queries the status of a task.

Request parameters

Name

Type

Required

Example value

Description

taskId

String

Yes

3226a05a-98b9-4d48-8529-b8fb7e4561c6

The unique identifier of the task.

Response parameters

For more information about common response parameters, see Response parameters. The following table describes the fields in the data parameter.

Name

Type

Example value

Description

status

String

error

Task execution statuses

statusName

String

Abnormal exit

The name of the status.

result

String

The client is disconnected. The task is terminated.

The cause of the error.

Examples

Request example:

https://console-rpa.aliyun.com/rpa/openapi/task/queryTaskStatus?<Common request parameters>
&taskId=3226a05a-98b9-4d48-8529-b8fb7e4561c6

Response example:

{
    "requestId":"244d2757-79bd-46c1-af79-d0d4df2fdeb7",
    "success":true,
    "code":0,
    "msg":"Call successful",
    "msgCode":"result.success",
    "data":{
        "status":"notready",
        "statusName":"Not ready",
        "result":"The robot is not ready and is not in an idle state"
    },
    "pager":null
}