分页查询
Authorization
OpenApiToken api-token<token>
32位令牌,在控制面板《个人设置 - 令牌管理》页面获取
In: header
Query Parameters
type?string
任务类型过滤,当前固定分为 user 和 system
Value in
"user" | "system"active?string
启用/禁用状态过滤(1 启用、0 禁用),默认不过滤
Value in
"0" | "1"tags?string
任务标签过滤(仅限系统任务,具体通过下方 “获取标签列表” 获取,支持多个用英文逗号分隔)
search?string
搜索内容过滤,过滤字段:name、shell
orderBy?string
指定排序字段,默认 sort
Value in
"sort" | "last_runtime" | "last_run_use"order?string
指定排序方式 0 升序 | 1 降序,默认降序
Value in
"0" | "1"page?string
指定页数,默认1
size?string
指定分页大小数量,默认20
Response Body
application/json
curl -X GET "http://localhost:5678/api/open/cron/v1/page"{
"data": [
{
"id": 0,
"name": "string",
"type": "user",
"cron": "string",
"shell": "string",
"active": 0,
"config": "string",
"tags": "string",
"last_runtime": "string",
"last_run_use": 0,
"sort": 0,
"create_time": "string",
"remark": "string",
"bind": "string",
"is_running": true
}
],
"page": 0,
"size": 0,
"total": 0
}
