跳转到内容

获取计划任务列表

Request

分页列出团队的 RPA 计划。

  • 副作用:无。只读。可带退避安全重试。
  • 用途:每个计划上的 taskState 是 /cloudphone/rpa/task/cancel 的完成信号。
Bodyapplication/jsonrequired
enabledboolean or null

计划是否已启用

searchKeystring or null

在计划名称、描述与模板标题范围内模糊搜索

taskStateinteger or null

计划状态;0:待执行;1:执行中;2:执行完成 3:已取消

pageNointeger or null

默认:1

pageSizeinteger or null

默认:10

curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/rpa/task/page \
  -H 'Content-Type: application/json' \
  -d '{
    "pageNo": 1,
    "pageSize": 10,
    "taskState": 0,
    "searchKey": "daily login",
    "enabled": true
  }'

Responses

成功。data.dataList 是当前页的记录,无匹配结果时为空数组;data.total、data.current、data.pages 描述分页信息。

Headers
any
Bodyapplication/json
codeintegerrequired

响应代码,0 表示成功,大于 0 表示失败

msgstring or nullrequired

错误信息

requestIdstringrequired

请求跟踪 ID

dataobjectrequired
Response
{ "code": 0, "msg": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d", "data": { "dataList": [ … ], "current": "1", "pages": "1", "total": "1" } }