queryTaskSchedules

Updated at:

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

Request method: GET

Response format: JSON

Description: Queries a list of scheduled tasks.

Request parameters

Name

Type

Required

Example value

Description

taskScheduleName

String

No

TestAPP1

The name of the scheduled task.

taskScheduleStatus

String

No

completion

Task running status

startTime

String

No

2020-04-28 15:24:24

The start time of the scheduled task.

endTime

String

No

2020-04-28 15:24:43

The end time of the scheduled task.

currentPage

Integer

No

1

The page number to display.

pageSize

Integer

No

1

The number of records to display on each page.

type

String

No

service

The task type.

Valid values: service and unattended. The default value is service.

Service task: service

Scheduled task: unattended

Response parameters

For more information about common response parameters, see Return results. The following table describes the fields in the data object.

Name

Type

Example value

Description

uuid

String

8c809cdf-adba-44fb-b7c0-f53c6f4cc734

The unique identifier of the scheduled task.

appId

String

fb6a99a1-d8bd-46ee-8bed-2ed9cb5a0c0d

The unique identifier of the application.

name

String

SystemAutoTask-TestAPP1-2020-04-28 15:24:24

The name of the scheduled task.

groupId

String

b8e097d8-605c-47cf-a5a3-db5d13f8b4ca

The unique identifier of the enterprise.

status

String

completion

The status of the scheduled task.

creator

String

93bf42a1-6e65-4912-98b2-4d5ec0e6260a

The creator.

scheduleType

String

immediate

The type of the scheduled task.

scheduleExpress

null

scheduleCron

String

null

The rule of the scheduled task.

scheduleStartDate

Date

null

The start time of the scheduled task.

scheduleEndDate

Date

null

The end time of the scheduled task.

nextTaskTime

Date

null

End time of the next scheduled task

clientType

String

robot_service

The client type.

appName

String

TestAPP1

The application name.

clientCount

Long

1

The number of clients that run the application.

creatorName

String

ss-test

The account name of the creator.

creatorNickName

String

super administrator

The nickname of the creator.

Examples

Request example:

https://console-rpa.aliyun.com/rpa/openapi/task/queryTaskSchedules?<Common request parameters>
&taskScheduleName=TestAPP1
&taskScheduleStatus=completion
&startTime=2020-04-28 15:24:24
&endTime=2020-04-28 15:24:43
&currentPage=1
&pageSize=1
&type = service 

Response example:

{
    "requestId":"1986a216-6f70-42a6-b5e1-4e1a5143c372",
    "success":true,
    "code":0,
    "msg":"The call is successful.",
    "msgCode":"result.success",
    "data":[
        {
            "uuid":"8c809cdf-adba-44fb-b7c0-f53c6f4cc734",
            "appId":"fb6a99a1-d8bd-46ee-8bed-2ed9cb5a0c0d",
            "name":"SystemAutoTask-TestAPP1-2020-04-28 15:24:24",
            "groupId":"b8e097d8-605c-47cf-a5a3-db5d13f8b4ca",
            "status":"completion",
            "creator":"93bf42a1-6e65-4912-98b2-4d5ec0e6260a",
            "scheduleType":"immediate",
            "scheduleExpress":null,
            "scheduleCron":null,
            "scheduleStartDate":null,
            "scheduleEndDate":null,
            "nextTaskTime":null,
            "clientType":"robot_service",
            "appName":"TestAPP1",
            "clientCount":1,
            "creatorName":"ss-test",
            "creatorNickName":"super administrator"
        }
    ],
    "pager":{
        "currentPage":1,
        "totalPage":15,
        "pageSize":1,
        "total":15,
        "limit":1,
        "offset":0
    }
}