mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
Return committed trigger IDs and add CLI wait and trigger-specific logs while preserving API, CLI, transaction, deduplication and unknown-result semantics. Move scheduling, lifecycle, settlement, queries and legacy adapters into back/cron; remove obsolete internal import paths and circular dependencies. Apply project formatting across the repository, cover CJS/MJS in formatting hooks, add prettier:check and require formatting checks in AGENTS.md. Validation: backend build; 1398 backend/frontend tests passed (17 platform skips); 327 CLI tests passed (6 platform skips); 670 files pass format checks.
260 lines
25 KiB
Markdown
260 lines
25 KiB
Markdown
# OpenAPI 全量参考 / Complete OpenAPI reference
|
||
|
||
CLI 对应本版本后端的有效路由。通过 `ql api routes --json` 查看方法、路径、对应命令、位置参数、请求体与上传字段;CLI 测试与 back/api 路由逐项核对。GET configs/:file、scripts/:file、logs/:file 已返回 410,改用 detail 命令,不再暴露旧入口。旧版面板可能没有新路由,以服务端响应为准。
|
||
|
||
The catalogue covers the active routes in the current backend. `ql api routes --json` lists methods, paths, commands, positional parameters, bodies and upload fields. A route-coverage test detects drift. Three retired GET :file routes return 410; use detail-based commands. Older panel versions may not implement newer routes.
|
||
|
||
日志和脚本分页返回 `versions`。应用可将已浏览目录的版本按每组 1 到 128 项交给同一资源的 `entries-check --data`。返回 `current: false` 时,从第一页重新读取。
|
||
|
||
Log and script pages return `versions`. Pass the visited directories’ versions to the matching `entries-check --data` command in groups of 1 to 128. Restart pagination when it returns `current: false`.
|
||
|
||
`ql dashboard schedule-anomalies --query '{"source":"panel","kind":"missing","at":1795046400000}'` 查询异常明细。`source` 为 `panel` 或 `system`,`kind` 为 `missing`、`skipped` 或 `unconfirmed`;`at` 必须替换为查询窗口的服务端毫秒时间戳。分页传 `page` 和上一响应的 `revision`,记录变化时按返回的 `page` 重新展示。`live:true` 用于今日实时明细:返回 `status: expired` 或 `unavailable` 时重新读取 overview,不能把该响应当作空页继续拼接。
|
||
|
||
`ql dashboard schedule-anomalies` accepts required `source` (`panel` or `system`), `kind` (`missing`, `skipped` or `unconfirmed`) and `at` (server epoch milliseconds for the query window) through `--query`. Pass `page` and the previous `revision` for pagination and honor the returned page if records change. With `live:true`, refresh the overview when `status` is `expired` or `unavailable`; do not append these responses as empty pages.
|
||
|
||
`ql task instances <id>` 默认返回该任务的完整运行历史,按启动时间倒序。显式传 `--query '{"paged":true,"limit":25}'` 后按实例 ID 倒序分页(默认 25,最多 100),将返回的 `next` 作为下一页的 `before`,直到 `next` 为 `null`。刷新指定实例可传 `{"paged":true,"ids":"12,13"}`。触发记录使用独立的 `task triggers` 接口,日志和脚本目录分页使用 `log entries` 和 `script entries`。
|
||
|
||
`ql task instances <id>` returns the full history ordered by start time by default. Opt in with `--query '{"paged":true,"limit":25}'` to page by descending instance ID (default 25, maximum 100). Pass `next` as `before` until `next` is `null`. Use `{"paged":true,"ids":"12,13"}` to refresh specific rows. Trigger history and directory pagination use separate endpoints.
|
||
|
||
直接调用 `PUT /open/crons/stop` 时,请求体为任务 ID 数组。需要安全重试的调用方应在首次发送前生成 UUID,放入 `Idempotency-Key` 请求头,并在该操作的所有重试中复用。相同键只处理第一次受理时的实例和排队记录,换用不同任务集合会返回 409。主动发起新的停止操作时使用新键。未携带键的旧客户端每次调用都会停止当前任务实例。
|
||
|
||
## 认证与权限 / Authentication and permissions
|
||
|
||
常规使用 `ql login` 的应用凭据。scope 通常对应 /open 后首个路径段:crons、subscriptions、envs、configs、scripts、logs、dependencies、system、dashboard 等。旧 scope 保留原有权限;上述资源除 system 外可选用对应的 `:read` scope。`crons:read` 不包含会写入任务的 `GET /crons/import`;`scripts:read`、`logs:read` 包含使用 POST 的下载和目录版本校验,不包含写入、删除或执行。`dashboard:read` 不允许 POST 统计上报。外部应用的 `system` scope 仅允许读取系统状态和发送通知。应用管理需要 apps;`GET /apps` 会返回 Client Secret,因此不提供 `apps:read`。user、health、update 等路由同样接受服务端权限校验。路由存在不代表现有应用已获授权。
|
||
|
||
认证步骤、环境变量优先级、应用登录、面板会话与双因素验证、退出行为,统一见 [认证参考](panel.md#authentication)。应用管理可用已有 apps 权限的应用或授权面板会话;后端创建和更新应用时拒绝授予 apps 权限。QL_URL/QL_ACCESS_TOKEN 不保存、不刷新,不自动退回应用配置。
|
||
|
||
See the [authentication reference](panel.md#authentication) for application login, direct-token precedence, owner sessions/2FA and logout. App management accepts existing apps-scoped credentials or an authorized owner session; the backend rejects granting apps scope when creating or updating an application. Direct tokens are not saved/refreshed and never fall back to application configuration.
|
||
|
||
Existing scopes retain their original access. Use the resource's `:read` scope for read-only access to crons, subscriptions, envs, configs, scripts, dependencies, logs, or dashboard. `crons:read` excludes the mutating `GET /crons/import`; `scripts:read` and `logs:read` include downloads and directory version checks (POST), but exclude writes, deletion, and execution. `dashboard:read` excludes statistics reporting (POST). External `system` applications may only read system status and send notifications. `GET /apps` returns Client Secrets, so there is no `apps:read` scope.
|
||
|
||
`auth status --scope <scope>` tests a representative read; update has no read endpoint and is not offered by status. This does not prove permission for every write. `app list/create/update/reset-secret` 默认隐藏 client_secret/tokens;只有明确需要凭据时才加 --show-secrets,并避免把输出记录到共享日志。其他资源/通用请求可能含环境值、配置、脚本、订阅凭据和会话,按敏感数据处理。
|
||
|
||
App results omit client_secret/tokens unless --show-secrets is explicit. Other resources and raw responses may contain sensitive values. Handle them accordingly.
|
||
|
||
## 输入和输出 / Inputs and outputs
|
||
|
||
`PUT /open/crons/run` 保留任务 ID 数组请求体和 `code:200` 响应,新增 `data:[{taskId,triggerId,state,reason}]`。每个存在的任务返回本次事务已落库的触发 ID,state 是受理时的 queued 或 skipped(例如 reason=overlap);重复 ID 合并,不存在的任务不生成记录。提交不代表执行成功;后续通过 `GET /open/crons/:id/triggers?ids=<triggerId>` 查询,日志通过 `GET /open/crons/:id/log?triggerId=<triggerId>` 读取。触发记录受保留期约束,运行请求没有幂等键。
|
||
|
||
The run API retains its array request and code:200 envelope, adding `data:[{taskId,triggerId,state,reason}]` for existing tasks. Receipts are committed before returning; queued/skipped is the admission snapshot, not the final outcome. Duplicate IDs are deduplicated; missing tasks produce no receipt. Query the exact trigger via `crons/:id/triggers?ids=<triggerId>` and its log via `crons/:id/log?triggerId=<triggerId>`. History retention still applies; run requests are not idempotent.
|
||
|
||
`ql task run <id> --wait --timeout 300 --json` 等待本轮;`ql task wait <id> --trigger-id <triggerId> --timeout 300 --json` 仅等待已有轮次;`ql task logs <id> --trigger-id <triggerId> --tail 200 --json` 读取对应日志。此处 timeout 是总等待秒数(默认 300,最多 86400),超时不停止任务。具体退出码和旧面板行为见 [任务参考](panel.md)。These wait commands poll an exact trigger without replaying execution. Their timeout is the total wait budget, distinct from the per-request timeout below; see the task reference for outcome errors and older-panel compatibility.
|
||
|
||
- `--data '<JSON>'` / `--data @file.json` / `--data -`:完整请求体,保留所有后端字段;query 同样支持这三种输入。
|
||
- `--query '{"searchValue":"demo","page":1}'`:查询对象,值为标量或标量数组,CLI 编码为 URL 参数;不要拼接 URL 查询字符串。
|
||
- `create/update` 常用字段可用选项;同一字段不能同时在 --data 和选项中提供。update 的位置 ID 注入请求体,拒绝与 body.id 冲突;它提交完整更新对象,不会先读取后盲目合并。
|
||
- 使用 `<id...>` 的命令可以传多个 ID。原 task run/stop 与 subscription run/stop/enable/disable 保持单 ID 契约;批量使用 api request 和数组请求体。
|
||
- 上传使用 `--file`,其他 multipart 字段用 --data 对象,字段名由路由决定(file/env/data/avatar);下载与 system command-run 使用 `--output`,不覆盖已有文件,文件权限 0600,失败清理本次新建文件。
|
||
- 默认 30 秒超时,可用新命令的 `--timeout <秒>` 调整,最多 3600。耗时任务优先创建任务再 run,持续执行的 command-run 需合理超时;连接超时不表示远程操作已停止。
|
||
- JSON 响应保留服务端 data/附加字段。原任务/订阅读取保留原有分页、裁剪和日志 tail 契约;api request 提供完整原始能力。下载只输出保存路径/字节数,不把二进制混入 stdout。
|
||
- POST/PUT/DELETE 不自动重试,网络/5xx 后先检查服务端状态。GET crons/import 也可能改变服务端状态,不能仅凭 HTTP 动词认定只读。
|
||
|
||
Inputs accept inline JSON, @file or stdin (-). Queries are objects with scalar/array values. Named updates require complete server fields plus the positional ID; there is no implicit read/merge/write. Bulk operations use ID positionals where shown, or api request arrays. Uploads use --file; downloads/command streams require a new --output file. Responses remain JSON; downloaded bytes go only to the file. New operations support --timeout (seconds, default 30, maximum 3600). Timeouts do not prove remote cancellation. No request is automatically retried.
|
||
|
||
## 常用示例 / Examples
|
||
|
||
```sh
|
||
ql task create --name demo --command 'task demo.js' --schedule '0 0 * * *' --json
|
||
ql task update 12 --data @task.json --json
|
||
ql task enable 12 13 --json
|
||
ql task delete 12 13 --json
|
||
ql subscription create --type public-repo --url https://example.com/repo.git --alias demo --schedule-type crontab --schedule '0 0 * * *' --json
|
||
ql subscription update 5 --data @subscription.json --json
|
||
ql subscription delete 5 --query '{"force":true}' --json
|
||
ql app create --name agent --scopes crons,subscriptions --show-secrets --json
|
||
ql app update 3 --name agent --scopes crons,subscriptions,envs --json
|
||
ql app reset-secret 3 --show-secrets --json
|
||
ql env create --data @envs.json --json
|
||
ql env update 8 --data '{"name":"EXAMPLE","value":"value"}' --json
|
||
ql script create --file ./demo.js --data '{"filename":"demo.js","path":""}' --json
|
||
ql script get --query '{"file":"demo.js","path":""}' --json
|
||
ql script history-list --query '{"filename":"demo.js","path":""}' --json
|
||
ql script history-detail --query '{"filename":"demo.js","path":"","id":"VERSION_UUID"}' --json
|
||
ql script history-restore --data '{"filename":"demo.js","path":"","id":"VERSION_UUID","expectedHash":"CURRENT_SHA256"}' --json
|
||
# Requires the full configs scope or a panel session token.
|
||
ql config save --data '{"name":"example.sh","content":"# example"}' --json
|
||
ql config get --query '{"path":"example.sh"}' --json
|
||
ql log download --data '{"filename":"example.log","path":"example"}' --output ./example.log --json
|
||
ql dependency create --data '[{"name":"example-package","type":0}]' --json
|
||
ql dependency refresh --data '{"type":"python3"}' --json
|
||
ql dependency refresh-active --json
|
||
ql dependency refresh-status <JOB_UUID> --json
|
||
ql system data-export --data '{}' --output ./panel.tgz --json
|
||
ql system data-import --file ./panel.tgz --json
|
||
ql api request PUT /open/crons/run --data '[12,13]' --json
|
||
ql api request GET /open/crons --query '{"page":1,"size":100,"searchValue":"demo"}' --json
|
||
```
|
||
|
||
依赖 refresh 的 type 为 nodejs 或 python3,立即返回后台任务 id 与 state;用 refresh-status 查询该 UUID,直到 completed 或 failed。refresh-active 返回运行中的任务或 null,普通 list 不触发检查。
|
||
|
||
Dependency refresh accepts type nodejs or python3 and immediately returns a background job id and state. Poll refresh-status with that UUID until completed or failed. refresh-active returns the running job or null; listing dependencies does not trigger checks.
|
||
|
||
任务 create/update 需要 command/schedule;name、labels、sub_id、extra_schedules、task_before/after、log_name、allow_multiple_instances、work_dir 等字段可通过 --data 提交。订阅 create 需要 type/url/alias/schedule_type,update 需要 id/type/url/alias;interval_schedule、pull_option、dependences、extensions、sub_before/after、proxy、autoAddCron/autoDelCron 等用 --data。private-repo 凭据仅通过受保护文件或 stdin 提供。环境变量与依赖 create 接受对象数组,应用 scopes 为字符串数组。其余准确字段/枚举由当前后端 Joi schema 校验:见 [back/api](https://github.com/whyour/qinglong/tree/develop/back/api) 和 [定时规则 schema](https://github.com/whyour/qinglong/blob/develop/back/validation/schedule.ts)。
|
||
|
||
Task creation/update needs command/schedule; additional fields use --data. Subscription creation needs type/url/alias/schedule_type; updates need id/type/url/alias. Interval schedules, private repository credentials, filters, hooks and booleans use --data. Env/dependency creation accepts arrays; application scopes is a string array. The server validates field types/enums; the linked backend schemas are authoritative.
|
||
|
||
下面包含应用/用户/系统远程管理;这些通过 HTTP 在目标面板执行,与已从 npm 移除的本机 reload/reset/start 不同。诊断不自动授权创建、删除、升级、重启、密钥重置或数据导入。遵循当前用户已给出的授权,不重复确认已授权操作。
|
||
|
||
System/user operations below execute remotely through the panel API. They do not restore local system tools to npm. Follow the user's authorized scope, including for resets, data import and upgrades; diagnosis alone does not authorize mutations.
|
||
|
||
## 路由表 / Route table
|
||
|
||
| 命令 / Command | 方法 / Method | /open 路径 / Path | 输入 / Input |
|
||
| --- | --- | --- | --- |
|
||
| `ql task view-list ` | GET | `crons/views` | --query |
|
||
| `ql task view-create ` | POST | `crons/views` | --data, --query |
|
||
| `ql task view-update <id>` | PUT | `crons/views` | --data, --query |
|
||
| `ql task view-delete <id...>` | DELETE | `crons/views` | --query |
|
||
| `ql task view-move ` | PUT | `crons/views/move` | --data, --query |
|
||
| `ql task view-disable <id...>` | PUT | `crons/views/disable` | --query |
|
||
| `ql task view-enable <id...>` | PUT | `crons/views/enable` | --query |
|
||
| `ql task list ` | GET | `crons` | --query via api request |
|
||
| `ql task detail ` | GET | `crons/detail` | --query |
|
||
| `ql task preview` | GET | `crons/preview` | --query '{"schedule":"0 6 * * *"}' |
|
||
| `ql task create ` | POST | `crons` | --data, --query |
|
||
| `ql task run <id>` | PUT | `crons/run` | --wait --timeout 300 |
|
||
| `ql task stop <id...>` | PUT | `crons/stop` | --query via api request |
|
||
| `ql task labels-delete ` | DELETE | `crons/labels` | --data, --query |
|
||
| `ql task labels-create ` | POST | `crons/labels` | --data, --query |
|
||
| `ql task disable <id...>` | PUT | `crons/disable` | --query |
|
||
| `ql task enable <id...>` | PUT | `crons/enable` | --query |
|
||
| `ql task logs <id>` | GET | `crons/:id/log` | --trigger-id --tail |
|
||
| `ql task update <id>` | PUT | `crons` | --data, --query |
|
||
| `ql task delete <id...>` | DELETE | `crons` | --query |
|
||
| `ql task pin <id...>` | PUT | `crons/pin` | --query |
|
||
| `ql task unpin <id...>` | PUT | `crons/unpin` | --query |
|
||
| `ql task import ` | GET | `crons/import` | --query |
|
||
| `ql task get <id>` | GET | `crons/:id` | --query via api request |
|
||
| `ql task status ` | PUT | `crons/status` | --data, --query |
|
||
| `ql task daily-results <id>` | GET | `crons/:id/daily-results` | Verified exits and booked results for the last seven days |
|
||
| `ql task triggers <id>` | GET | `crons/:id/triggers` | --query '{"offset":0}' |
|
||
| `ql task instances <id>` | GET | `crons/:id/instances` | --query |
|
||
| `ql task instance-stop <id> <instanceId>` | POST | `crons/:id/instances/:instanceId/stop` | --query |
|
||
| `ql task log-files <id>` | GET | `crons/:id/logs` | --query |
|
||
| `ql subscription list ` | GET | `subscriptions` | --query via api request |
|
||
| `ql subscription create ` | POST | `subscriptions` | --data, --query |
|
||
| `ql subscription run <id...>` | PUT | `subscriptions/run` | --query via api request |
|
||
| `ql subscription stop <id...>` | PUT | `subscriptions/stop` | --query via api request |
|
||
| `ql subscription disable <id...>` | PUT | `subscriptions/disable` | --query via api request |
|
||
| `ql subscription enable <id...>` | PUT | `subscriptions/enable` | --query via api request |
|
||
| `ql subscription logs <id>` | GET | `subscriptions/:id/log` | --query via api request |
|
||
| `ql subscription update <id>` | PUT | `subscriptions` | --data, --query |
|
||
| `ql subscription delete <id...>` | DELETE | `subscriptions` | --query |
|
||
| `ql subscription get <id>` | GET | `subscriptions/:id` | --query via api request |
|
||
| `ql subscription status ` | PUT | `subscriptions/status` | --data, --query |
|
||
| `ql subscription log-files <id>` | GET | `subscriptions/:id/logs` | --query |
|
||
| `ql app list ` | GET | `apps` | --query |
|
||
| `ql app create ` | POST | `apps` | --data, --query |
|
||
| `ql app update <id>` | PUT | `apps` | --data, --query |
|
||
| `ql app delete <id...>` | DELETE | `apps` | --query |
|
||
| `ql app reset-secret <id>` | PUT | `apps/:id/reset-secret` | --query |
|
||
| `ql auth login ` | GET | `auth/token` | --query via api request |
|
||
| `ql env list ` | GET | `envs` | --query |
|
||
| `ql env create ` | POST | `envs` | --data, --query |
|
||
| `ql env update <id>` | PUT | `envs` | --data, --query |
|
||
| `ql env delete <id...>` | DELETE | `envs` | --query |
|
||
| `ql env move <id>` | PUT | `envs/:id/move` | --data, --query |
|
||
| `ql env disable <id...>` | PUT | `envs/disable` | --query |
|
||
| `ql env enable <id...>` | PUT | `envs/enable` | --query |
|
||
| `ql env rename ` | PUT | `envs/name` | --data, --query |
|
||
| `ql env get <id>` | GET | `envs/:id` | --query |
|
||
| `ql env pin <id...>` | PUT | `envs/pin` | --query |
|
||
| `ql env unpin <id...>` | PUT | `envs/unpin` | --query |
|
||
| `ql env labels-create ` | POST | `envs/labels` | --data, --query |
|
||
| `ql env labels-delete ` | DELETE | `envs/labels` | --data, --query |
|
||
| `ql env upload ` | POST | `envs/upload` | --data, --file (env), --query |
|
||
| `ql config samples ` | GET | `configs/samples` | --query |
|
||
| `ql config list ` | GET | `configs/files` | --query |
|
||
| `ql config get ` | GET | `configs/detail` | --query |
|
||
| `ql config save ` | POST | `configs/save` | --data, --query |
|
||
| `ql script list ` | GET | `scripts` | --query |
|
||
| `ql script get ` | GET | `scripts/detail` | --query |
|
||
| `ql script entries ` | GET | `scripts/entries` | --query |
|
||
| `ql script entries-check ` | POST | `scripts/entries/check` | --data, --query |
|
||
| `ql script history-list ` | GET | `scripts/history` | --query |
|
||
| `ql script history-detail ` | GET | `scripts/history/detail` | --query |
|
||
| `ql script history-restore ` | PUT | `scripts/history/restore` | --data, --query |
|
||
| `ql script create ` | POST | `scripts` | --data, --file (file), --query |
|
||
| `ql script update ` | PUT | `scripts` | --data, --file (file), --query |
|
||
| `ql script delete ` | DELETE | `scripts` | --data, --query |
|
||
| `ql script download ` | POST | `scripts/download` | --data, --output, --query |
|
||
| `ql script run ` | PUT | `scripts/run` | --data, --query |
|
||
| `ql script stop ` | PUT | `scripts/stop` | --data, --query |
|
||
| `ql script rename ` | PUT | `scripts/rename` | --data, --query |
|
||
| `ql log list ` | GET | `logs` | --query |
|
||
| `ql log get ` | GET | `logs/detail` | --query |
|
||
| `ql log entries ` | GET | `logs/entries` | --query |
|
||
| `ql log entries-check ` | POST | `logs/entries/check` | --data, --query |
|
||
| `ql log delete ` | DELETE | `logs` | --data, --query |
|
||
| `ql log download ` | POST | `logs/download` | --data, --output, --query |
|
||
| `ql dependency list ` | GET | `dependencies` | --query |
|
||
| `ql dependency refresh ` | POST | `dependencies/refresh` | --data, --query |
|
||
| `ql dependency refresh-active ` | GET | `dependencies/refresh/active` | --query |
|
||
| `ql dependency refresh-status <id>` | GET | `dependencies/refresh/:id` | --query |
|
||
| `ql dependency create ` | POST | `dependencies` | --data, --query |
|
||
| `ql dependency update <id>` | PUT | `dependencies` | --data, --query |
|
||
| `ql dependency delete <id...>` | DELETE | `dependencies` | --query |
|
||
| `ql dependency force-delete <id...>` | DELETE | `dependencies/force` | --query |
|
||
| `ql dependency get <id>` | GET | `dependencies/:id` | --query |
|
||
| `ql dependency reinstall <id...>` | PUT | `dependencies/reinstall` | --query |
|
||
| `ql dependency cancel <id...>` | PUT | `dependencies/cancel` | --query |
|
||
| `ql system info ` | GET | `system` | --query |
|
||
| `ql system config-get ` | GET | `system/config` | --query |
|
||
| `ql system config-log-remove-frequency ` | PUT | `system/config/log-remove-frequency` | --data, --query |
|
||
| `ql system config-cron-concurrency ` | PUT | `system/config/cron-concurrency` | --data, --query |
|
||
| `ql system config-dependence-proxy ` | PUT | `system/config/dependence-proxy` | --data, --query |
|
||
| `ql system config-node-mirror ` | PUT | `system/config/node-mirror` | --data, --query |
|
||
| `ql system config-python-mirror ` | PUT | `system/config/python-mirror` | --data, --query |
|
||
| `ql system config-linux-mirror ` | PUT | `system/config/linux-mirror` | --data, --query |
|
||
| `ql system update-check ` | PUT | `system/update-check` | --query |
|
||
| `ql system update ` | PUT | `system/update` | --query |
|
||
| `ql system reload ` | PUT | `system/reload` | --data, --query |
|
||
| `ql system notify ` | PUT | `system/notify` | --data, --query |
|
||
| `ql system command-run ` | PUT | `system/command-run` | --data, --output, --query |
|
||
| `ql system command-stop ` | PUT | `system/command-stop` | --data, --query |
|
||
| `ql system data-export ` | PUT | `system/data/export` | --data, --output, --query |
|
||
| `ql system data-import ` | PUT | `system/data/import` | --data, --file (data), --query |
|
||
| `ql system logs ` | GET | `system/log` | --query |
|
||
| `ql system logs-delete ` | DELETE | `system/log` | --query |
|
||
| `ql system auth-reset ` | PUT | `system/auth/reset` | --data, --query |
|
||
| `ql system config-timezone ` | PUT | `system/config/timezone` | --data, --query |
|
||
| `ql system config-lang ` | PUT | `system/config/lang` | --data, --query |
|
||
| `ql system config-panel-title ` | PUT | `system/config/panel-title` | --data, --query |
|
||
| `ql system config-global-ssh-key ` | PUT | `system/config/global-ssh-key` | --data, --query |
|
||
| `ql system config-dependence-clean ` | PUT | `system/config/dependence-clean` | --data, --query |
|
||
| `ql dashboard record ` | POST | `dashboard/record` | --data, --query |
|
||
| `ql dashboard overview ` | GET | `dashboard/overview` | --query |
|
||
| `ql dashboard schedule-anomalies ` | GET | `dashboard/schedule-anomalies` | --query |
|
||
| `ql dashboard trend ` | GET | `dashboard/trend` | --query |
|
||
| `ql dashboard top-time ` | GET | `dashboard/top-time` | --query |
|
||
| `ql dashboard top-count ` | GET | `dashboard/top-count` | --query |
|
||
| `ql dashboard runtime ` | GET | `dashboard/runtime` | --query |
|
||
| `ql dashboard labels ` | GET | `dashboard/labels` | --query |
|
||
| `ql dashboard system ` | GET | `dashboard/system` | --query |
|
||
| `ql system client-ip-get ` | GET | `system/client-ip/config` | --query |
|
||
| `ql system client-ip-set ` | PUT | `system/client-ip/config` | --data, --query |
|
||
| `ql system client-ip-diagnose ` | GET | `system/client-ip/diagnose` | --query |
|
||
| `ql system retention-set ` | PUT | `system/storage-retention/config` | --data, --query |
|
||
| `ql system retention-preview ` | POST | `system/storage-retention/preview` | --data, --query |
|
||
| `ql system retention-cleanup ` | POST | `system/storage-retention/cleanup` | --data, --query |
|
||
| `ql user login ` | POST | `user/login` | --data, --query |
|
||
| `ql user logout ` | POST | `user/logout` | --query |
|
||
| `ql user update ` | PUT | `user` | --data, --query |
|
||
| `ql user get ` | GET | `user` | --query |
|
||
| `ql user two-factor-init ` | GET | `user/two-factor/init` | --query |
|
||
| `ql user two-factor-active ` | PUT | `user/two-factor/active` | --data, --query |
|
||
| `ql user two-factor-deactivate ` | PUT | `user/two-factor/deactivate` | --query |
|
||
| `ql user two-factor-login ` | PUT | `user/two-factor/login` | --data, --query |
|
||
| `ql user login-log ` | GET | `user/login-log` | --query |
|
||
| `ql user ip-blacklist ` | GET | `user/ip-blacklist` | --query |
|
||
| `ql user ip-blacklist-set ` | PUT | `user/ip-blacklist` | --data, --query |
|
||
| `ql user ip-blacklist-delete ` | DELETE | `user/ip-blacklist` | --data, --query |
|
||
| `ql user notification-get ` | GET | `user/notification` | --query |
|
||
| `ql user notification-set ` | PUT | `user/notification` | --data, --query |
|
||
| `ql user init ` | PUT | `user/init` | --data, --query |
|
||
| `ql user avatar ` | PUT | `user/avatar` | --data, --file (avatar), --query |
|
||
| `ql system apply-reload ` | PUT | `update/reload` | --query |
|
||
| `ql system apply-system ` | PUT | `update/system` | --query |
|
||
| `ql system apply-data ` | PUT | `update/data` | --query |
|
||
| `ql health get ` | GET | `health` | --query |
|