跳到主要内容
版本:latest

get_crond_find

获取指定 ID 的计划任务的完整配置信息。

  • 路由POST /crontab
  • actionget_crond_find

输入参数

参数名称必选类型描述
actionString固定值 get_crond_find
idInteger计划任务 ID

输出参数

参数名称类型描述
idInteger任务 ID
nameString任务名称
typeString执行周期类型
statusInteger1 启用 / 0 禁用
sBodyString执行命令/脚本

示例

请求

POST /crontab HTTP/1.1
action=get_crond_find&id=1

响应

{"id": 1, "name": "续签Let's Encrypt证书", "type": "day", "status": 1, "where_hour": 10, "where_minute": 15}