跳到主要内容
版本:latest

get_restart_task

查询 MySQL 守护进程定时任务的配置状态,该任务在 MySQL 异常停止时自动重启。

  • 路由POST /database
  • actionget_restart_task

输入参数

参数名称必选类型描述
actionString固定值 get_restart_task

输出参数

参数名称类型描述
statusBooleantrue 成功
msgObject任务详情,含 idnamestatus(0关闭/1开启)、typesBody

示例

请求

POST /database HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=get_restart_task

响应

{"status": true, "msg": {"id": 2, "name": "[勿删]MySQL守护进程", "status": 0, "type": "minute-n"}}

相关接口