mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 11:09:16 +08:00
e7af9de9ed
feat: 增加升级备份与恢复
12183 lines
369 KiB
Go
12183 lines
369 KiB
Go
// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
|
// This file was generated by swaggo/swag
|
|
package docs
|
|
|
|
import (
|
|
"bytes"
|
|
"encoding/json"
|
|
"strings"
|
|
"text/template"
|
|
|
|
"github.com/swaggo/swag"
|
|
)
|
|
|
|
var doc = `{
|
|
"schemes": {{ marshal .Schemes }},
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"description": "{{escape .Description}}",
|
|
"title": "{{.Title}}",
|
|
"termsOfService": "http://swagger.io/terms/",
|
|
"contact": {},
|
|
"license": {
|
|
"name": "Apache 2.0",
|
|
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
},
|
|
"version": "{{.Version}}"
|
|
},
|
|
"host": "{{.Host}}",
|
|
"basePath": "{{.BasePath}}",
|
|
"paths": {
|
|
"/apps/:id": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 id 获取应用信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search app by id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "app id",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.AppDTO"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/detail/:appId/:version": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 id 获取应用详情",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search app detail by id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "app id",
|
|
"name": "appId",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "app 版本",
|
|
"name": "version",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.AppDetailDTO"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/install": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "安装应用",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Install app",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.AppInstallCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/model.AppInstall"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "app_installs",
|
|
"input_colume": "name",
|
|
"input_value": "name",
|
|
"isList": false,
|
|
"output_colume": "app_id",
|
|
"output_value": "appId"
|
|
},
|
|
{
|
|
"db": "apps",
|
|
"info": "appId",
|
|
"isList": false,
|
|
"output_colume": "key",
|
|
"output_value": "appKey"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "Install app [appKey]-[name]",
|
|
"formatZH": "安装应用 [appKey]-[name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取已安装应用列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "List app installed",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.AppInstalledSearch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/:appInstallId/versions": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 install id 获取应用更新版本",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search app update version by install id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "appInstallId",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/backups": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "查询已安装备份列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Page installed backups",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.AppBackupSearch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/backups/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除应用备份记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Delete app backup record",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.AppBackupDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "app_install_backups",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "name",
|
|
"output_value": "names"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "Deleting an Application Backup [names]",
|
|
"formatZH": "删除应用备份 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/check/:key": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "检查应用安装情况",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Check app installed",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "key",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.AppInstalledCheck"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/conf/:key": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 key 获取应用默认配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search default config by key",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "key",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/delete/check/:appInstallId": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除前检查",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Check before delete",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "App install id",
|
|
"name": "appInstallId",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/loadpassword/:key": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取应用密码",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search app password by key",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "key",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/loadport/:key": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取应用端口",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search app port by key",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "key",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/op": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "操作已安装应用",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Operate installed app",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.AppInstalledOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "app_installs",
|
|
"input_colume": "id",
|
|
"input_value": "installId",
|
|
"isList": false,
|
|
"output_colume": "app_id",
|
|
"output_value": "appId"
|
|
},
|
|
{
|
|
"db": "app_installs",
|
|
"input_colume": "id",
|
|
"input_value": "installId",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "appName"
|
|
},
|
|
{
|
|
"db": "apps",
|
|
"input_colume": "id",
|
|
"input_value": "appId",
|
|
"isList": false,
|
|
"output_colume": "key",
|
|
"output_value": "appKey"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"installId",
|
|
"operate"
|
|
],
|
|
"formatEN": "[appKey] App [appName] [operate]",
|
|
"formatZH": "[appKey] 应用 [appName] [operate]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/params/:appInstallId": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 install id 获取应用参数",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search params by appInstallId",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "appInstallId",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.AppParam"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/port/change": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "修改应用端口",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Change app port",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.PortUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"key",
|
|
"name",
|
|
"port"
|
|
],
|
|
"formatEN": "Application port update [key]-[name] =\u003e [port]",
|
|
"formatZH": "应用端口修改 [key]-[name] =\u003e [port]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/apps/installed/sync": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "同步已安装应用列表",
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Sync app installed",
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "Sync the list of installed apps",
|
|
"formatZH": "同步已安装应用列表",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/apps/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取应用列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "List apps",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.AppSearch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/services/:key": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 key 获取应用 service",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Search app service by key",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "key",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/apps/sync": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "同步应用列表",
|
|
"tags": [
|
|
"App"
|
|
],
|
|
"summary": "Sync app list",
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "App store synchronization",
|
|
"formatZH": "应用商店同步",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/auth/captcha": {
|
|
"get": {
|
|
"description": "加载验证码",
|
|
"tags": [
|
|
"Auth"
|
|
],
|
|
"summary": "Load captcha",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CaptchaResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/auth/init": {
|
|
"post": {
|
|
"description": "初始化用户",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Auth"
|
|
],
|
|
"summary": "Init user",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.InitUser"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/auth/login": {
|
|
"post": {
|
|
"description": "用户登录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Auth"
|
|
],
|
|
"summary": "User login",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.Login"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.UserLoginInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/auth/logout": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "用户登出",
|
|
"tags": [
|
|
"Auth"
|
|
],
|
|
"summary": "User logout",
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/auth/mfalogin": {
|
|
"post": {
|
|
"description": "用户 mfa 登录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Auth"
|
|
],
|
|
"summary": "User login with mfa",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MFALogin"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.UserLoginInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/auth/status": {
|
|
"get": {
|
|
"description": "获取系统安全登录状态",
|
|
"tags": [
|
|
"Auth"
|
|
],
|
|
"summary": "Load safety status",
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
},
|
|
"402": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/backups": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建备份账号",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "Create backup account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BackupOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"type"
|
|
],
|
|
"formatEN": "create backup account [type]",
|
|
"formatZH": "创建备份账号 [type]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/backups/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除备份账号",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "Delete backup account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "backup_accounts",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "type",
|
|
"output_value": "types"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "delete backup account [types]",
|
|
"formatZH": "删除备份账号 [types]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/backups/record/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除备份记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "Delete backup record",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "backup_records",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "file_name",
|
|
"output_value": "files"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "delete backup records [files]",
|
|
"formatZH": "删除备份记录 [files]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/backups/record/download": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "下载备份记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "Download backup record",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DownloadRecord"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"source",
|
|
"fileName"
|
|
],
|
|
"formatEN": "download backup records [source][fileName]",
|
|
"formatZH": "下载备份记录 [source][fileName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/backups/record/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取备份记录列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "Page backup records",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RecordSearch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/backups/search": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取备份账号列表",
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "List backup accounts",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 bucket 列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "List buckets",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ForBuckets"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/backups/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新备份账号信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Backup Account"
|
|
],
|
|
"summary": "Update backup account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BackupOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"type"
|
|
],
|
|
"formatEN": "update backup account [types]",
|
|
"formatZH": "更新备份账号 [types]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/commands": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取快速命令列表",
|
|
"tags": [
|
|
"Command"
|
|
],
|
|
"summary": "List commands",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CommandInfo"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建快速命令",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Command"
|
|
],
|
|
"summary": "Create command",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CommandOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"command"
|
|
],
|
|
"formatEN": "create quick command [name][command]",
|
|
"formatZH": "创建快捷命令 [name][command]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/commands/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除快速命令",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Command"
|
|
],
|
|
"summary": "Delete command",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "commands",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "name",
|
|
"output_value": "names"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "delete quick command [names]",
|
|
"formatZH": "删除快捷命令 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/commands/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取快速命令列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Command"
|
|
],
|
|
"summary": "Page commands",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/commands/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新快速命令",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Command"
|
|
],
|
|
"summary": "Update command",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CommandOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "update quick command [name]",
|
|
"formatZH": "更新快捷命令 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建容器",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container"
|
|
],
|
|
"summary": "Create container",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ContainerCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"image"
|
|
],
|
|
"formatEN": "create container [name][image]",
|
|
"formatZH": "创建容器 [name][image]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/compose": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建容器编排",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose"
|
|
],
|
|
"summary": "Create compose",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ComposeCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "create compose [name]",
|
|
"formatZH": "创建 compose [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/compose/operate": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "容器编排操作",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose"
|
|
],
|
|
"summary": "Operate compose",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ComposeOperation"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"operation"
|
|
],
|
|
"formatEN": "compose [operation] [name]",
|
|
"formatZH": "compose [operation] [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/compose/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取编排列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose"
|
|
],
|
|
"summary": "Page composes",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/compose/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新容器编排",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose"
|
|
],
|
|
"summary": "Update compose",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ComposeUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "update compose information [name]",
|
|
"formatZH": "更新 compose [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/daemonjson": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 docker 配置信息",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Docker"
|
|
],
|
|
"summary": "Load docker daemon.json",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DaemonJsonConf"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/daemonjson/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "修改 docker 配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Docker"
|
|
],
|
|
"summary": "Update docker daemon.json",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DaemonJsonConf"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "Updated the docker daemon.json configuration",
|
|
"formatZH": "更新 docker daemon.json 配置",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/daemonjson/update/byfile": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "上传替换 docker 配置文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Docker"
|
|
],
|
|
"summary": "Update docker daemon.json by upload file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DaemonJsonUpdateByFile"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "Updated the docker daemon.json configuration",
|
|
"formatZH": "更新 docker daemon.json 配置",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/docker/operate": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "Docker 操作",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Docker"
|
|
],
|
|
"summary": "Operate docker",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DockerOperation"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"operation"
|
|
],
|
|
"formatEN": "[operation] docker service",
|
|
"formatZH": "docker 服务 [operation]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/docker/status": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 docker 服务状态",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Docker"
|
|
],
|
|
"summary": "Load docker status",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/image": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取镜像列表",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "List images",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/build": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "构建镜像",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Build image",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImageBuild"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "build image [name]",
|
|
"formatZH": "构建镜像 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/load": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "导入镜像",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Load image",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImageLoad"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "load image from [path]",
|
|
"formatZH": "从 [path] 加载镜像",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/pull": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "拉取镜像",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Pull image",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImagePull"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "image_repos",
|
|
"input_colume": "id",
|
|
"input_value": "repoID",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "reponame"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"repoID",
|
|
"imageName"
|
|
],
|
|
"formatEN": "image pull [reponame][imageName]",
|
|
"formatZH": "镜像拉取 [reponame][imageName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/push": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "推送镜像",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Push image",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImagePush"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "image_repos",
|
|
"input_colume": "id",
|
|
"input_value": "repoID",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "reponame"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"repoID",
|
|
"tagName",
|
|
"name"
|
|
],
|
|
"formatEN": "push [tagName] to [reponame][name]",
|
|
"formatZH": "[tagName] 推送到 [reponame][name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/remove": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除镜像",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Delete image",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"names"
|
|
],
|
|
"formatEN": "remove image [names]",
|
|
"formatZH": "移除镜像 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/save": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "导出镜像",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Save image",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImageSave"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"tagName",
|
|
"path",
|
|
"name"
|
|
],
|
|
"formatEN": "save [tagName] as [path]/[name]",
|
|
"formatZH": "保留 [tagName] 为 [path]/[name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取镜像列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Page images",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/image/tag": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "Tag 镜像",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image"
|
|
],
|
|
"summary": "Tag image",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImageTag"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "image_repos",
|
|
"input_colume": "id",
|
|
"input_value": "repoID",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "reponame"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"repoID",
|
|
"targetName"
|
|
],
|
|
"formatEN": "tag image [reponame][targetName]",
|
|
"formatZH": "tag 镜像 [reponame][targetName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/inspect": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "容器详情",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container"
|
|
],
|
|
"summary": "Container inspect",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.InspectReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/network": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建容器网络",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Network"
|
|
],
|
|
"summary": "Create network",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.NetworkCreat"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "create container network [name]",
|
|
"formatZH": "创建容器网络 name",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/network/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除容器网络",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Network"
|
|
],
|
|
"summary": "Delete network",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"names"
|
|
],
|
|
"formatEN": "delete container network [names]",
|
|
"formatZH": "删除容器网络 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/network/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取容器网络列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Network"
|
|
],
|
|
"summary": "Page networks",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/operate": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "容器操作",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container"
|
|
],
|
|
"summary": "Operate Container",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ContainerOperation"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"operation",
|
|
"newName"
|
|
],
|
|
"formatEN": "container [operation] [name] [newName]",
|
|
"formatZH": "容器 [name] 执行 [operation] [newName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/repo": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取镜像仓库列表",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image-repo"
|
|
],
|
|
"summary": "List image repos",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建镜像仓库",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image-repo"
|
|
],
|
|
"summary": "Create image repo",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImageRepoCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "create image repo [name]",
|
|
"formatZH": "创建镜像仓库 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/repo/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除镜像仓库",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image-repo"
|
|
],
|
|
"summary": "Delete image repo",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImageRepoDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "image_repos",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "name",
|
|
"output_value": "names"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "delete image repo [names]",
|
|
"formatZH": "删除镜像仓库 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/repo/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取镜像仓库列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image-repo"
|
|
],
|
|
"summary": "Page image repos",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/repo/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新镜像仓库",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Image-repo"
|
|
],
|
|
"summary": "Update image repo",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ImageRepoUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "image_repos",
|
|
"input_column": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "update image repo information [name]",
|
|
"formatZH": "更新镜像仓库 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取容器列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container"
|
|
],
|
|
"summary": "Page containers",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageContainer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/search/log": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "容器日志",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container"
|
|
],
|
|
"summary": "Container logs",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ContainerLog"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/stats/:id": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "容器监控信息",
|
|
"tags": [
|
|
"Container"
|
|
],
|
|
"summary": "Container stats",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "容器id",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ContainterStats"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/template": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取容器编排模版列表",
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose-template"
|
|
],
|
|
"summary": "List compose templates",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建容器编排模版",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose-template"
|
|
],
|
|
"summary": "Create compose template",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ComposeTemplateCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "create compose template [name]",
|
|
"formatZH": "创建 compose 模版 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/template/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除容器编排模版",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose-template"
|
|
],
|
|
"summary": "Delete compose template",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "compose_templates",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "name",
|
|
"output_value": "names"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "delete compose template [names]",
|
|
"formatZH": "删除 compose 模版 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/template/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取容器编排模版列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose-template"
|
|
],
|
|
"summary": "Page compose templates",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/containers/template/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新容器编排模版",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Compose-template"
|
|
],
|
|
"summary": "Update compose template",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ComposeTemplateUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "compose_templates",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "update compose template information [name]",
|
|
"formatZH": "更新 compose 模版 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/volume": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建容器存储卷",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Volume"
|
|
],
|
|
"summary": "Create volume",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.VolumeCreat"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "create container volume [name]",
|
|
"formatZH": "创建容器存储卷 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/volume/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除容器存储卷",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Volume"
|
|
],
|
|
"summary": "Delete volume",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"names"
|
|
],
|
|
"formatEN": "delete container volume [names]",
|
|
"formatZH": "删除容器存储卷 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/containers/volume/search": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取容器存储卷列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Volume"
|
|
],
|
|
"summary": "List volumes",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取容器存储卷分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Container Volume"
|
|
],
|
|
"summary": "Page volumes",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建计划任务",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Create cronjob",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CronjobCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"type",
|
|
"name"
|
|
],
|
|
"formatEN": "create cronjob [type][name]",
|
|
"formatZH": "创建计划任务 [type][name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除计划任务",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Delete cronjob",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "cronjobs",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "name",
|
|
"output_value": "names"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "delete cronjob [names]",
|
|
"formatZH": "删除计划任务 [names]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs/download": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "下载计划任务记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Download cronjob records",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CronjobDownload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "job_records",
|
|
"input_colume": "id",
|
|
"input_value": "recordID",
|
|
"isList": false,
|
|
"output_colume": "file",
|
|
"output_value": "file"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"recordID"
|
|
],
|
|
"formatEN": "download the cronjob record [file]",
|
|
"formatZH": "下载计划任务记录 [file]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs/handle": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "手动执行计划任务",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Handle cronjob once",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.OperateByID"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "cronjobs",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "manually execute the cronjob [name]",
|
|
"formatZH": "手动执行计划任务 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取计划任务分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Page cronjobs",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs/search/records": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取计划任务记录",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Page job records",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SearchRecord"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs/status": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新计划任务状态",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Update cronjob status",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CronjobUpdateStatus"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "cronjobs",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"formatEN": "change the status of cronjob [name] to [status].",
|
|
"formatZH": "修改计划任务 [name] 状态为 [status]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/cronjobs/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新计划任务",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Cronjob"
|
|
],
|
|
"summary": "Update cronjob",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CronjobUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "cronjobs",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "update cronjob [name]",
|
|
"formatZH": "更新计划任务 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/dashboard/base/:ioOption/:netOption": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取首页基础数据",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Dashboard"
|
|
],
|
|
"summary": "Load dashboard base info",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "ioOption",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "netOption",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DashboardBase"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/dashboard/current/:ioOption/:netOption": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取首页实时数据",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Dashboard"
|
|
],
|
|
"summary": "Load dashboard current info",
|
|
"parameters": [
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "ioOption",
|
|
"in": "path",
|
|
"required": true
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "request",
|
|
"name": "netOption",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DashboardCurrent"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建 mysql 数据库",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Create mysql database",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MysqlDBCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "create mysql database [name]",
|
|
"formatZH": "创建 mysql 数据库 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/backup": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "备份 mysql 数据库",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Backup mysql database",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BackupDB"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"mysqlName",
|
|
"dbName"
|
|
],
|
|
"formatEN": "backup mysql database [mysqlName][dbName]",
|
|
"formatZH": "备份 mysql 数据库 [mysqlName][dbName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/baseinfo": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 mysql 基础信息",
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Load mysql base info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.DBBaseInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/change/access": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "修改 mysql 访问权限",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Change mysql access",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ChangeDBInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "database_mysqls",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Update database [name] access",
|
|
"formatZH": "更新数据库 [name] 访问权限",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/change/password": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "修改 mysql 密码",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Change mysql password",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ChangeDBInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "database_mysqls",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Update database [name] password",
|
|
"formatZH": "更新数据库 [name] 密码",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/conffile/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "上传替换 mysql 配置文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Update mysql conf by upload file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MysqlConfUpdateByFile"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "update the mysql database configuration information",
|
|
"formatZH": "更新 mysql 数据库配置信息",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除 mysql 数据库",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Delete mysql database",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MysqlDBDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "database_mysqls",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "delete mysql database [name]",
|
|
"formatZH": "删除 mysql 数据库 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/del/check": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "Mysql 数据库删除前检查",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Check before delete mysql database",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.OperateByID"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/description/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 mysql 数据库库描述信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Update mysql database description",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MysqlDescription"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "database_mysqls",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id",
|
|
"description"
|
|
],
|
|
"formatEN": "The description of the mysql database [name] is modified =\u003e [description]",
|
|
"formatZH": "mysql 数据库 [name] 描述信息修改 [description]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/options": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 mysql 数据库列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "List mysql database names",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/recover": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "Mysql 数据库恢复",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Recover mysql database",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RecoverDB"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"mysqlName",
|
|
"dbName",
|
|
"backupName"
|
|
],
|
|
"formatEN": "恢复 mysql 数据库 [mysqlName][dbName] [backupName]",
|
|
"formatZH": "恢复 mysql 数据库 [mysqlName][dbName] [backupName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/recover/byupload": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "Mysql 数据库从上传文件恢复",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Recover mysql database by upload file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.UploadRecover"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"fileDir",
|
|
"fileName",
|
|
"mysqlName",
|
|
"dbName"
|
|
],
|
|
"formatEN": "mysql database recover [fileDir]/[fileName] from [mysqlName][dbName]",
|
|
"formatZH": "mysql 数据库从 [fileDir]/[fileName] 恢复 [mysqlName][dbName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/backup": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "备份 redis 数据库",
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Backup redis",
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "backup redis database",
|
|
"formatZH": "备份 redis 数据库",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/backup/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 redis 备份记录分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Page redis backups",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/conf": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 redis 配置信息",
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Load redis conf",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RedisConf"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/conf/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 redis 配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Update redis conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RedisConfUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "update the redis database configuration information",
|
|
"formatZH": "更新 redis 数据库配置信息",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/conffile/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "上传更新 redis 配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Update redis conf by file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RedisConfUpdateByFile"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "update the redis database configuration information",
|
|
"formatZH": "更新 redis 数据库配置信息",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/password": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 redis 密码",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Change redis password",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.ChangeDBInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "change the password of the redis database",
|
|
"formatZH": "修改 redis 数据库密码",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/persistence/conf": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 redis 持久化配置",
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Load redis persistence conf",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RedisPersistence"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/persistence/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 redis 持久化配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Update redis persistence conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RedisConfPersistenceUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "redis database persistence configuration update",
|
|
"formatZH": "redis 数据库持久化配置更新",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/recover": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "恢复 redis 数据库",
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Recover redis",
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"fileDir",
|
|
"fileName"
|
|
],
|
|
"formatEN": "redis database recover from [fileDir]/[fileName]",
|
|
"formatZH": "redis 数据库从 [fileDir]/[fileName] 恢复",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/databases/redis/status": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 redis 状态信息",
|
|
"tags": [
|
|
"Database Redis"
|
|
],
|
|
"summary": "Load redis status info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.RedisStatus"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/remote": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 mysql 远程访问权限",
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Load mysql remote access",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 mysql 数据库列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Page mysql databases",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/status": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 mysql 状态信息",
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Load mysql status info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MysqlStatus"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/variables": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 mysql 性能参数信息",
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Load mysql variables info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MysqlVariables"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/databases/variables/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "mysql 性能调优",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Database Mysql"
|
|
],
|
|
"summary": "Update mysql variables",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MysqlVariablesUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "adjust mysql database performance parameters",
|
|
"formatZH": "调整 mysql 数据库性能参数",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建文件/文件夹",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Create file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Create dir or file [path]",
|
|
"formatZH": "创建文件/文件夹 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/batch/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "批量删除文件/文件夹",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Batch delete file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileBatchDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"paths"
|
|
],
|
|
"formatEN": "Batch delete dir or file [paths]",
|
|
"formatZH": "批量删除文件/文件夹 [paths]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/compress": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "压缩文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Compress file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileCompress"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "Compress file [name]",
|
|
"formatZH": "压缩文件 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/content": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取文件内容",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Load file content",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileOption"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.FileInfo"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Load file content [path]",
|
|
"formatZH": "获取文件内容 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/decompress": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "解压文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Decompress file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileDeCompress"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Decompress file [path]",
|
|
"formatZH": "解压 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除文件/文件夹",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Delete file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Delete dir or file [path]",
|
|
"formatZH": "删除文件/文件夹 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/download": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "下载文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Download file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileDownload"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "Download file [name]",
|
|
"formatZH": "下载文件 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/loadfile": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "读取文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Read file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.FilePath"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Read file [path]",
|
|
"formatZH": "读取文件 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/mode": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "修改文件权限",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Change file mode",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path",
|
|
"mode"
|
|
],
|
|
"formatEN": "Change mode [paths] =\u003e [mode]",
|
|
"formatZH": "修改权限 [paths] =\u003e [mode]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/move": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "移动文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Move file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileMove"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"oldPaths",
|
|
"newPath"
|
|
],
|
|
"formatEN": "Move [oldPaths] =\u003e [newPath]",
|
|
"formatZH": "移动文件 [oldPaths] =\u003e [newPath]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/rename": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "修改文件名称",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Change file name",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileRename"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"oldName",
|
|
"newName"
|
|
],
|
|
"formatEN": "Rename [oldName] =\u003e [newName]",
|
|
"formatZH": "重命名 [oldName] =\u003e [newName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/save": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新文件内容",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Update file content",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileEdit"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Update file content [path]",
|
|
"formatZH": "更新文件内容 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取文件列表",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "List files",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileOption"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.FileInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/files/size": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取文件夹大小",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Load file size",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.DirSizeReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Load file size [path]",
|
|
"formatZH": "获取文件夹大小 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/tree": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "加载文件树",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Load files tree",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileOption"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/files/upload": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "上传文件",
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Upload file",
|
|
"parameters": [
|
|
{
|
|
"type": "file",
|
|
"description": "request",
|
|
"name": "file",
|
|
"in": "formData",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"path"
|
|
],
|
|
"formatEN": "Upload file [path]",
|
|
"formatZH": "上传文件 [path]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/files/wget": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "下载远端文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"File"
|
|
],
|
|
"summary": "Wget file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.FileWget"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"url",
|
|
"path",
|
|
"name"
|
|
],
|
|
"formatEN": "Download url =\u003e [path]/[name]",
|
|
"formatZH": "下载 url =\u003e [path]/[name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/groups": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建系统组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Group"
|
|
],
|
|
"summary": "Create group",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.GroupOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"type"
|
|
],
|
|
"formatEN": "create group [name][type]",
|
|
"formatZH": "创建组 [name][type]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/groups/:id": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "查询系统组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Group"
|
|
],
|
|
"summary": "Search group info by id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.GroupInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/groups/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除系统组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Group"
|
|
],
|
|
"summary": "Delete group",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.OperateByID"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "groups",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "delete group [name]",
|
|
"formatZH": "删除组 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/groups/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "查询系统组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Group"
|
|
],
|
|
"summary": "List groups",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.GroupSearch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/groups/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新系统组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Group"
|
|
],
|
|
"summary": "Update group",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.GroupOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"type"
|
|
],
|
|
"formatEN": "update group [name][type]",
|
|
"formatZH": "更新组 [name][type]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/hosts": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建主机",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Host"
|
|
],
|
|
"summary": "Create host",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.HostOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"addr"
|
|
],
|
|
"formatEN": "create host [name][addr]",
|
|
"formatZH": "创建主机 [name][addr]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/hosts/:id": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "加载主机信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Host"
|
|
],
|
|
"summary": "Load host info",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.HostInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/hosts/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除主机",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Host"
|
|
],
|
|
"summary": "Delete host",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.OperateByID"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "hosts",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "addr",
|
|
"output_value": "addr"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "delete host [addr]",
|
|
"formatZH": "删除主机 [addr]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/hosts/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "加载主机树",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Host"
|
|
],
|
|
"summary": "Load host tree",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SearchForTree"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/hosts/test/byid/:id": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "测试主机连接",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Host"
|
|
],
|
|
"summary": "Test host conn by host id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/hosts/test/byinfo": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "测试主机连接",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Host"
|
|
],
|
|
"summary": "Test host conn by info",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.HostConnTest"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/hosts/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新主机",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Host"
|
|
],
|
|
"summary": "Update host",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.HostOperate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"addr"
|
|
],
|
|
"formatEN": "update host [name][addr]",
|
|
"formatZH": "更新主机信息 [name][addr]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/logs/clean": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "清空操作日志",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Logs"
|
|
],
|
|
"summary": "Clean operation logs",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.CleanLog"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"logType"
|
|
],
|
|
"formatEN": "Clean the [logType] log information",
|
|
"formatZH": "清空 [logType] 日志信息",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/logs/login": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取系统登录日志列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Logs"
|
|
],
|
|
"summary": "Page login logs",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/logs/operation": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取系统操作日志列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Logs"
|
|
],
|
|
"summary": "Page operation logs",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/nginx": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 nginx 配置信息",
|
|
"tags": [
|
|
"Nginx"
|
|
],
|
|
"summary": "Load nginx conf",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.FileInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/nginx/file": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "上传更新 nginx 配置文件",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Nginx"
|
|
],
|
|
"summary": "Update nginx conf by upload file",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.NginxConfigFileUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "Update nginx conf",
|
|
"formatZH": "更新 nginx 配置",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/nginx/scope": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取部分 nginx 配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Nginx"
|
|
],
|
|
"summary": "Load partial nginx conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.NginxScopeReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/nginx/status": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 nginx 状态信息",
|
|
"tags": [
|
|
"Nginx"
|
|
],
|
|
"summary": "Load nginx status info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.NginxStatus"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/nginx/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 nginx 配置信息",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Nginx"
|
|
],
|
|
"summary": "Update nginx conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.NginxConfigUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "websiteId",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"websiteId"
|
|
],
|
|
"formatEN": "Update nginx conf [domain]",
|
|
"formatZH": "更新 nginx 配置 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/expired/handle": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "重置过期系统登录密码",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Reset system password expired",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PasswordUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "reset an expired Password",
|
|
"formatZH": "重置过期密码",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/mfa": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 mfa 信息",
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Load mfa info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/mfa.Otp"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/settings/mfa/bind": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "Mfa 绑定",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Bind mfa",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.MfaCredential"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "bind mfa",
|
|
"formatZH": "mfa 绑定",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/monitor/clean": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "清空监控数据",
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Clean monitor datas",
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "clean monitor datas",
|
|
"formatZH": "清空监控数据",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/password/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新系统登录密码",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Update system password",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PasswordUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "update system password",
|
|
"formatZH": "修改系统密码",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "加载系统配置信息",
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Load system setting info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SettingInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/settings/snapshot": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建系统快照",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Create system backup",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SnapshotCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name",
|
|
"description"
|
|
],
|
|
"formatEN": "Create system backup [name][description]",
|
|
"formatZH": "创建系统快照 [name][description]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/snapshot/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除系统快照",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Delete system backup",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "snapshots",
|
|
"input_colume": "id",
|
|
"input_value": "ids",
|
|
"isList": true,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"ids"
|
|
],
|
|
"formatEN": "Delete system backup [name]",
|
|
"formatZH": "删除系统快照 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/snapshot/recover": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "从系统快照恢复",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Recover system backup",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SnapshotRecover"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "snapshots",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Recover from system backup [name]",
|
|
"formatZH": "从系统快照 [name] 恢复",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/snapshot/rollback": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "从系统快照回滚",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Rollback system backup",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SnapshotRecover"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "snapshots",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Rollback from system backup [name]",
|
|
"formatZH": "从系统快照 [name] 回滚",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/snapshot/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取系统快照列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Page system snapshot",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/settings/time/sync": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "系统时间同步",
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Sync system time",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [],
|
|
"formatEN": "sync system time",
|
|
"formatZH": "系统时间同步",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新系统配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Update system setting",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.SettingUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"key",
|
|
"value"
|
|
],
|
|
"formatEN": "update system setting [key] =\u003e [value]",
|
|
"formatZH": "修改系统配置 [key] =\u003e [value]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/settings/upgrade": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "加载系统更新信息",
|
|
"tags": [
|
|
"System Setting"
|
|
],
|
|
"summary": "Load upgrade info",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.UpgradeInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Create website",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"primaryDomain"
|
|
],
|
|
"formatEN": "Create website [primaryDomain]",
|
|
"formatZH": "创建网站 [primaryDomain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/:id": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 id 查询网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Search website by id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.WebsiteDTO"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/:id/https": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 https 配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website HTTPS"
|
|
],
|
|
"summary": "Load https conf",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.WebsiteHTTPS"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 https 配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website HTTPS"
|
|
],
|
|
"summary": "Update https conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteHTTPSOp"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.WebsiteHTTPS"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "websiteId",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"websiteId"
|
|
],
|
|
"formatEN": "Update website https [domain] conf",
|
|
"formatZH": "更新网站 [domain] https 配置",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/:id/nginx": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 id 查询网站 nginx",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Nginx"
|
|
],
|
|
"summary": "Search website nginx by id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.FileInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/acme": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建网站 acme",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Acme"
|
|
],
|
|
"summary": "Create website acme account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteAcmeAccountCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.WebsiteAcmeAccountDTO"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"email"
|
|
],
|
|
"formatEN": "Create website acme [email]",
|
|
"formatZH": "创建网站 acme [email]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/acme/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除网站 acme",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Acme"
|
|
],
|
|
"summary": "Delete website acme account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteResourceReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "website_acme_accounts",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "email",
|
|
"output_value": "email"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Delete website acme [email]",
|
|
"formatZH": "删除网站 acme [email]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/acme/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站 acme 列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Acme"
|
|
],
|
|
"summary": "Page website acme accounts",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/backup": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "备份网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Backup website",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteResourceReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Backup website [domain]",
|
|
"formatZH": "备份网站 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/check": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "网站创建前检查",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Check before create website",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteInstallCheckReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/config": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取 nginx 配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Nginx"
|
|
],
|
|
"summary": "Load nginx conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.NginxScopeReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.WebsiteNginxConfig"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/config/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 nginx 配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Nginx"
|
|
],
|
|
"summary": "Update nginx conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.NginxConfigUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "websiteId",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"websiteId"
|
|
],
|
|
"formatEN": "Nginx conf update [domain]",
|
|
"formatZH": "nginx 配置修改 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/default/server": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "操作网站日志",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Change default server",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteDefaultUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id",
|
|
"operate"
|
|
],
|
|
"formatEN": "Change default server =\u003e [domain]",
|
|
"formatZH": "修改默认 server =\u003e [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Delete website",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Delete website [domain]",
|
|
"formatZH": "删除网站 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/dns": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建网站 dns",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website DNS"
|
|
],
|
|
"summary": "Create website dns account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteDnsAccountCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "Create website dns [name]",
|
|
"formatZH": "创建网站 dns [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/dns/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除网站 dns",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website DNS"
|
|
],
|
|
"summary": "Delete website dns account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteResourceReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "website_dns_accounts",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Delete website dns [name]",
|
|
"formatZH": "删除网站 dns [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/dns/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站 dns 列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website DNS"
|
|
],
|
|
"summary": "Page website dns accounts",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageInfo"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/dns/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新网站 dns",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website DNS"
|
|
],
|
|
"summary": "Update website dns account",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteDnsAccountUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "Update website dns [name]",
|
|
"formatZH": "更新网站 dns [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/domains": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建网站域名",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Domain"
|
|
],
|
|
"summary": "Create website domain",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteDomainCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/model.WebsiteDomain"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"domain"
|
|
],
|
|
"formatEN": "Create domain [domain]",
|
|
"formatZH": "创建域名 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/domains/:websiteId": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过网站 id 查询域名",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Domain"
|
|
],
|
|
"summary": "Search website domains by websiteId",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "websiteId",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/domains/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除网站域名",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Domain"
|
|
],
|
|
"summary": "Delete website domain",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteDomainDelete"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "website_domains",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Delete domain [domain]",
|
|
"formatZH": "删除域名 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/groups": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站组",
|
|
"tags": [
|
|
"Website Group"
|
|
],
|
|
"summary": "List website groups",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建网站组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Group"
|
|
],
|
|
"summary": "Create website group",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteGroupCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "Create website groups [name]",
|
|
"formatZH": "创建网站组 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/groups/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除网站组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Group"
|
|
],
|
|
"summary": "Delete website group",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteResourceReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "website_groups",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "name",
|
|
"output_value": "name"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Delete website group [name]",
|
|
"formatZH": "删除网站组 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/groups/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新网站组",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Group"
|
|
],
|
|
"summary": "Update website group",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteGroupUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"name"
|
|
],
|
|
"formatEN": "Update website groups [name]",
|
|
"formatZH": "更新网站组 [name]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/list": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站列表",
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "List websites",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/log": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "操作网站日志",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Operate website log",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteLogReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.WebsiteLog"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id",
|
|
"operate"
|
|
],
|
|
"formatEN": "[domain][operate] logs",
|
|
"formatZH": "[domain][operate] 日志",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/nginx/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 网站 nginx 配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website Nginx"
|
|
],
|
|
"summary": "Update website nginx conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteNginxUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "[domain] Nginx conf update",
|
|
"formatZH": "[domain] Nginx 配置修改",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/operate": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "操作网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Operate website",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteOp"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id",
|
|
"operate"
|
|
],
|
|
"formatEN": "[operate] website [domain]",
|
|
"formatZH": "[operate] 网站 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/options": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站列表",
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "List website names",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/recover": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "从备份恢复网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Recover website",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteRecover"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"websiteName",
|
|
"backupName"
|
|
],
|
|
"formatEN": "[websiteName] recover from backups [backupName]",
|
|
"formatZH": "[websiteName] 从备份恢复 [backupName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/recover/byupload": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "从上传恢复网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Recover website by upload",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteRecoverByFile"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"websiteName",
|
|
"fileDir",
|
|
"fileName"
|
|
],
|
|
"formatEN": "[websiteName] recover from uploads [fileDir]/[fileName]",
|
|
"formatZH": "[websiteName] 从上传恢复 [fileDir]/[fileName]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Page websites",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteSearch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/ssl": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "创建网站 ssl",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website SSL"
|
|
],
|
|
"summary": "Create website ssl",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteSSLCreate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteSSLCreate"
|
|
}
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"primaryDomain"
|
|
],
|
|
"formatEN": "Create website ssl [primaryDomain]",
|
|
"formatZH": "创建网站 ssl [primaryDomain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/ssl/:id": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过 id 查询 ssl",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website SSL"
|
|
],
|
|
"summary": "Search website ssl by id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/ssl/del": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "删除网站 ssl",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website SSL"
|
|
],
|
|
"summary": "Delete website ssl",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteResourceReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "website_ssls",
|
|
"input_colume": "id",
|
|
"input_value": "id",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"id"
|
|
],
|
|
"formatEN": "Delete ssl [domain]",
|
|
"formatZH": "删除 ssl [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/ssl/renew": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "重置网站 ssl",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website SSL"
|
|
],
|
|
"summary": "Reset website ssl",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteSSLRenew"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "website_ssls",
|
|
"input_colume": "id",
|
|
"input_value": "SSLId",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"SSLId"
|
|
],
|
|
"formatEN": "Renew ssl [domain]",
|
|
"formatZH": "重置 ssl [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/ssl/resolve": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "解析网站 ssl",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website SSL"
|
|
],
|
|
"summary": "Resolve website ssl",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteDNSReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"type": "anrry"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/ssl/search": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站 ssl 列表分页",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website SSL"
|
|
],
|
|
"summary": "Page website ssl",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteSSLSearch"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/ssl/website/:websiteId": {
|
|
"get": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "通过网站 id 查询 ssl",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website SSL"
|
|
],
|
|
"summary": "Search website ssl by website id",
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"description": "request",
|
|
"name": "websiteId",
|
|
"in": "path",
|
|
"required": true
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新网站",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website"
|
|
],
|
|
"summary": "Update website",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [],
|
|
"bodyKeys": [
|
|
"primaryDomain"
|
|
],
|
|
"formatEN": "Update website [primaryDomain]",
|
|
"formatZH": "更新网站 [primaryDomain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
},
|
|
"/websites/waf/config": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "获取网站 waf 配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website WAF"
|
|
],
|
|
"summary": "Load websit waf conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteWafReq"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/response.WebsiteWafConfig"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/websites/waf/update": {
|
|
"post": {
|
|
"security": [
|
|
{
|
|
"ApiKeyAuth": []
|
|
}
|
|
],
|
|
"description": "更新 网站 waf 配置",
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"Website WAF"
|
|
],
|
|
"summary": "Update website waf conf",
|
|
"parameters": [
|
|
{
|
|
"description": "request",
|
|
"name": "request",
|
|
"in": "body",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/definitions/request.WebsiteWafUpdate"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"x-panel-log": {
|
|
"BeforeFuntions": [
|
|
{
|
|
"db": "websites",
|
|
"input_colume": "id",
|
|
"input_value": "websiteId",
|
|
"isList": false,
|
|
"output_colume": "primary_domain",
|
|
"output_value": "domain"
|
|
}
|
|
],
|
|
"bodyKeys": [
|
|
"websiteId"
|
|
],
|
|
"formatEN": "WAF conf update [domain]",
|
|
"formatZH": "WAF 配置修改 [domain]",
|
|
"paramKeys": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"dto.BackupDB": {
|
|
"type": "object",
|
|
"required": [
|
|
"dbName",
|
|
"mysqlName"
|
|
],
|
|
"properties": {
|
|
"dbName": {
|
|
"type": "string"
|
|
},
|
|
"mysqlName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.BackupOperate": {
|
|
"type": "object",
|
|
"required": [
|
|
"type",
|
|
"vars"
|
|
],
|
|
"properties": {
|
|
"accessKey": {
|
|
"type": "string"
|
|
},
|
|
"bucket": {
|
|
"type": "string"
|
|
},
|
|
"credential": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"vars": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.BatchDelete": {
|
|
"type": "object",
|
|
"required": [
|
|
"names"
|
|
],
|
|
"properties": {
|
|
"names": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dto.BatchDeleteReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"ids"
|
|
],
|
|
"properties": {
|
|
"ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dto.CaptchaResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"captchaID": {
|
|
"type": "string"
|
|
},
|
|
"imagePath": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ChangeDBInfo": {
|
|
"type": "object",
|
|
"required": [
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.CleanLog": {
|
|
"type": "object",
|
|
"required": [
|
|
"logType"
|
|
],
|
|
"properties": {
|
|
"logType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"login",
|
|
"operation"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"dto.CommandInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"command": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.CommandOperate": {
|
|
"type": "object",
|
|
"required": [
|
|
"command",
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"command": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ComposeCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"from",
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"type": "string",
|
|
"enum": [
|
|
"edit",
|
|
"path",
|
|
"template"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.ComposeOperation": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"operation",
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"operation": {
|
|
"type": "string",
|
|
"enum": [
|
|
"start",
|
|
"stop",
|
|
"down"
|
|
]
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ComposeTemplateCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ComposeTemplateUpdate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.ComposeUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"content",
|
|
"name",
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ContainerCreate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"autoRemove": {
|
|
"type": "boolean"
|
|
},
|
|
"cmd": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"env": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"exposedPorts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/dto.PortHelper"
|
|
}
|
|
},
|
|
"image": {
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"memory": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"nanoCPUs": {
|
|
"type": "integer"
|
|
},
|
|
"publishAllPorts": {
|
|
"type": "boolean"
|
|
},
|
|
"restartPolicy": {
|
|
"type": "string"
|
|
},
|
|
"volumes": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/dto.VolumeHelper"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dto.ContainerLog": {
|
|
"type": "object",
|
|
"required": [
|
|
"containerID",
|
|
"mode"
|
|
],
|
|
"properties": {
|
|
"containerID": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ContainerOperation": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"operation"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"newName": {
|
|
"type": "string"
|
|
},
|
|
"operation": {
|
|
"type": "string",
|
|
"enum": [
|
|
"start",
|
|
"stop",
|
|
"restart",
|
|
"kill",
|
|
"pause",
|
|
"unpause",
|
|
"rename",
|
|
"remove"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"dto.ContainterStats": {
|
|
"type": "object",
|
|
"properties": {
|
|
"cache": {
|
|
"type": "number"
|
|
},
|
|
"cpuPercent": {
|
|
"type": "number"
|
|
},
|
|
"ioRead": {
|
|
"type": "number"
|
|
},
|
|
"ioWrite": {
|
|
"type": "number"
|
|
},
|
|
"memory": {
|
|
"type": "number"
|
|
},
|
|
"networkRX": {
|
|
"type": "number"
|
|
},
|
|
"networkTX": {
|
|
"type": "number"
|
|
},
|
|
"shotTime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.CronjobCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"specType",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"day": {
|
|
"type": "integer",
|
|
"maximum": 31,
|
|
"minimum": 1
|
|
},
|
|
"dbName": {
|
|
"type": "string"
|
|
},
|
|
"exclusionRules": {
|
|
"type": "string"
|
|
},
|
|
"hour": {
|
|
"type": "integer",
|
|
"maximum": 23,
|
|
"minimum": 0
|
|
},
|
|
"keepLocal": {
|
|
"type": "boolean"
|
|
},
|
|
"minute": {
|
|
"type": "integer",
|
|
"maximum": 59,
|
|
"minimum": 0
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"retainCopies": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"script": {
|
|
"type": "string"
|
|
},
|
|
"sourceDir": {
|
|
"type": "string"
|
|
},
|
|
"specType": {
|
|
"type": "string"
|
|
},
|
|
"targetDirID": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"website": {
|
|
"type": "string"
|
|
},
|
|
"week": {
|
|
"type": "integer",
|
|
"maximum": 7,
|
|
"minimum": 1
|
|
}
|
|
}
|
|
},
|
|
"dto.CronjobDownload": {
|
|
"type": "object",
|
|
"required": [
|
|
"backupAccountID",
|
|
"recordID"
|
|
],
|
|
"properties": {
|
|
"backupAccountID": {
|
|
"type": "integer"
|
|
},
|
|
"recordID": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.CronjobUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"specType"
|
|
],
|
|
"properties": {
|
|
"day": {
|
|
"type": "integer",
|
|
"maximum": 31,
|
|
"minimum": 1
|
|
},
|
|
"dbName": {
|
|
"type": "string"
|
|
},
|
|
"exclusionRules": {
|
|
"type": "string"
|
|
},
|
|
"hour": {
|
|
"type": "integer",
|
|
"maximum": 23,
|
|
"minimum": 0
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"keepLocal": {
|
|
"type": "boolean"
|
|
},
|
|
"minute": {
|
|
"type": "integer",
|
|
"maximum": 59,
|
|
"minimum": 0
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"retainCopies": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"script": {
|
|
"type": "string"
|
|
},
|
|
"sourceDir": {
|
|
"type": "string"
|
|
},
|
|
"specType": {
|
|
"type": "string"
|
|
},
|
|
"targetDirID": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"website": {
|
|
"type": "string"
|
|
},
|
|
"week": {
|
|
"type": "integer",
|
|
"maximum": 7,
|
|
"minimum": 1
|
|
}
|
|
}
|
|
},
|
|
"dto.CronjobUpdateStatus": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.DBBaseInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"containerName": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.DaemonJsonConf": {
|
|
"type": "object",
|
|
"properties": {
|
|
"cgroupDriver": {
|
|
"type": "string"
|
|
},
|
|
"insecureRegistries": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"liveRestore": {
|
|
"type": "boolean"
|
|
},
|
|
"registryMirrors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.DaemonJsonUpdateByFile": {
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.DashboardBase": {
|
|
"type": "object",
|
|
"properties": {
|
|
"appInstalldNumber": {
|
|
"type": "integer"
|
|
},
|
|
"cpuCores": {
|
|
"type": "integer"
|
|
},
|
|
"cpuLogicalCores": {
|
|
"type": "integer"
|
|
},
|
|
"cpuModelName": {
|
|
"type": "string"
|
|
},
|
|
"cronjobNumber": {
|
|
"type": "integer"
|
|
},
|
|
"currentInfo": {
|
|
"$ref": "#/definitions/dto.DashboardCurrent"
|
|
},
|
|
"databaseNumber": {
|
|
"type": "integer"
|
|
},
|
|
"dateeaseID": {
|
|
"type": "integer"
|
|
},
|
|
"haloID": {
|
|
"type": "integer"
|
|
},
|
|
"hostname": {
|
|
"type": "string"
|
|
},
|
|
"jumpserverID": {
|
|
"type": "integer"
|
|
},
|
|
"kernelArch": {
|
|
"type": "string"
|
|
},
|
|
"kernelVersion": {
|
|
"type": "string"
|
|
},
|
|
"kubeoperatorID": {
|
|
"type": "integer"
|
|
},
|
|
"kubepiID": {
|
|
"type": "integer"
|
|
},
|
|
"metersphereID": {
|
|
"type": "integer"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"platform": {
|
|
"type": "string"
|
|
},
|
|
"platformFamily": {
|
|
"type": "string"
|
|
},
|
|
"platformVersion": {
|
|
"type": "string"
|
|
},
|
|
"virtualizationSystem": {
|
|
"type": "string"
|
|
},
|
|
"websiteNumber": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.DashboardCurrent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"MemoryUsedPercent": {
|
|
"type": "number"
|
|
},
|
|
"cpuPercent": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"cpuTotal": {
|
|
"type": "integer"
|
|
},
|
|
"cpuUsed": {
|
|
"type": "number"
|
|
},
|
|
"cpuUsedPercent": {
|
|
"type": "number"
|
|
},
|
|
"free": {
|
|
"type": "integer"
|
|
},
|
|
"inodesFree": {
|
|
"type": "integer"
|
|
},
|
|
"inodesTotal": {
|
|
"type": "integer"
|
|
},
|
|
"inodesUsed": {
|
|
"type": "integer"
|
|
},
|
|
"inodesUsedPercent": {
|
|
"type": "number"
|
|
},
|
|
"ioCount": {
|
|
"type": "integer"
|
|
},
|
|
"ioReadBytes": {
|
|
"type": "integer"
|
|
},
|
|
"ioTime": {
|
|
"type": "integer"
|
|
},
|
|
"ioWriteBytes": {
|
|
"type": "integer"
|
|
},
|
|
"load1": {
|
|
"type": "number"
|
|
},
|
|
"load15": {
|
|
"type": "number"
|
|
},
|
|
"load5": {
|
|
"type": "number"
|
|
},
|
|
"loadUsagePercent": {
|
|
"type": "number"
|
|
},
|
|
"memoryAvailable": {
|
|
"type": "integer"
|
|
},
|
|
"memoryTotal": {
|
|
"type": "integer"
|
|
},
|
|
"memoryUsed": {
|
|
"type": "integer"
|
|
},
|
|
"netBytesRecv": {
|
|
"type": "integer"
|
|
},
|
|
"netBytesSent": {
|
|
"type": "integer"
|
|
},
|
|
"procs": {
|
|
"type": "integer"
|
|
},
|
|
"shotTime": {
|
|
"type": "string"
|
|
},
|
|
"timeSinceUptime": {
|
|
"type": "string"
|
|
},
|
|
"total": {
|
|
"type": "integer"
|
|
},
|
|
"uptime": {
|
|
"type": "integer"
|
|
},
|
|
"used": {
|
|
"type": "integer"
|
|
},
|
|
"usedPercent": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"dto.DockerOperation": {
|
|
"type": "object",
|
|
"required": [
|
|
"operation"
|
|
],
|
|
"properties": {
|
|
"operation": {
|
|
"type": "string",
|
|
"enum": [
|
|
"start",
|
|
"restart",
|
|
"stop"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"dto.DownloadRecord": {
|
|
"type": "object",
|
|
"required": [
|
|
"fileDir",
|
|
"fileName",
|
|
"source"
|
|
],
|
|
"properties": {
|
|
"fileDir": {
|
|
"type": "string"
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"source": {
|
|
"type": "string",
|
|
"enum": [
|
|
"OSS",
|
|
"S3",
|
|
"SFTP",
|
|
"MINIO",
|
|
"LOCAL"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"dto.FilePath": {
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ForBuckets": {
|
|
"type": "object",
|
|
"required": [
|
|
"credential",
|
|
"type",
|
|
"vars"
|
|
],
|
|
"properties": {
|
|
"accessKey": {
|
|
"type": "string"
|
|
},
|
|
"credential": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"vars": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.GroupInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.GroupOperate": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.GroupSearch": {
|
|
"type": "object",
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.HostConnTest": {
|
|
"type": "object",
|
|
"required": [
|
|
"addr",
|
|
"port",
|
|
"user"
|
|
],
|
|
"properties": {
|
|
"addr": {
|
|
"type": "string"
|
|
},
|
|
"authMode": {
|
|
"type": "string",
|
|
"enum": [
|
|
"password",
|
|
"key"
|
|
]
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer",
|
|
"maximum": 65535,
|
|
"minimum": 1
|
|
},
|
|
"privateKey": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.HostInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"addr": {
|
|
"type": "string"
|
|
},
|
|
"authMode": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"groupBelong": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
},
|
|
"user": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.HostOperate": {
|
|
"type": "object",
|
|
"required": [
|
|
"addr",
|
|
"groupBelong",
|
|
"port",
|
|
"user"
|
|
],
|
|
"properties": {
|
|
"addr": {
|
|
"type": "string"
|
|
},
|
|
"authMode": {
|
|
"type": "string",
|
|
"enum": [
|
|
"password",
|
|
"key"
|
|
]
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"groupBelong": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer",
|
|
"maximum": 65535,
|
|
"minimum": 1
|
|
},
|
|
"privateKey": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ImageBuild": {
|
|
"type": "object",
|
|
"required": [
|
|
"dockerfile",
|
|
"from",
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"dockerfile": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dto.ImageLoad": {
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ImagePull": {
|
|
"type": "object",
|
|
"required": [
|
|
"imageName"
|
|
],
|
|
"properties": {
|
|
"imageName": {
|
|
"type": "string"
|
|
},
|
|
"repoID": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.ImagePush": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"repoID",
|
|
"tagName"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"repoID": {
|
|
"type": "integer"
|
|
},
|
|
"tagName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ImageRepoCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"auth": {
|
|
"type": "boolean"
|
|
},
|
|
"downloadUrl": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"protocol": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ImageRepoDelete": {
|
|
"type": "object",
|
|
"required": [
|
|
"ids"
|
|
],
|
|
"properties": {
|
|
"deleteInsecure": {
|
|
"type": "boolean"
|
|
},
|
|
"ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dto.ImageRepoUpdate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"auth": {
|
|
"type": "boolean"
|
|
},
|
|
"downloadUrl": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"protocol": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ImageSave": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"path",
|
|
"tagName"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"tagName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.ImageTag": {
|
|
"type": "object",
|
|
"required": [
|
|
"sourceID",
|
|
"targetName"
|
|
],
|
|
"properties": {
|
|
"repoID": {
|
|
"type": "integer"
|
|
},
|
|
"sourceID": {
|
|
"type": "string"
|
|
},
|
|
"targetName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.InitUser": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"password"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.InspectReq": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.Login": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"password"
|
|
],
|
|
"properties": {
|
|
"authMethod": {
|
|
"type": "string"
|
|
},
|
|
"captcha": {
|
|
"type": "string"
|
|
},
|
|
"captchaID": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.MFALogin": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"password",
|
|
"secret"
|
|
],
|
|
"properties": {
|
|
"authMethod": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"secret": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.MfaCredential": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"secret": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.MysqlConfUpdateByFile": {
|
|
"type": "object",
|
|
"required": [
|
|
"mysqlName"
|
|
],
|
|
"properties": {
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"mysqlName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.MysqlDBCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"format",
|
|
"name",
|
|
"password",
|
|
"permission",
|
|
"username"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"format": {
|
|
"type": "string",
|
|
"enum": [
|
|
"utf8mb4",
|
|
"utf8",
|
|
"gbk",
|
|
"big5"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"permission": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.MysqlDBDelete": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"deleteBackup": {
|
|
"type": "boolean"
|
|
},
|
|
"forceDelete": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.MysqlDescription": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.MysqlStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"Aborted_clients": {
|
|
"type": "string"
|
|
},
|
|
"Aborted_connects": {
|
|
"type": "string"
|
|
},
|
|
"Bytes_received": {
|
|
"type": "string"
|
|
},
|
|
"Bytes_sent": {
|
|
"type": "string"
|
|
},
|
|
"Com_commit": {
|
|
"type": "string"
|
|
},
|
|
"Com_rollback": {
|
|
"type": "string"
|
|
},
|
|
"Connections": {
|
|
"type": "string"
|
|
},
|
|
"Created_tmp_disk_tables": {
|
|
"type": "string"
|
|
},
|
|
"Created_tmp_tables": {
|
|
"type": "string"
|
|
},
|
|
"File": {
|
|
"type": "string"
|
|
},
|
|
"Innodb_buffer_pool_pages_dirty": {
|
|
"type": "string"
|
|
},
|
|
"Innodb_buffer_pool_read_requests": {
|
|
"type": "string"
|
|
},
|
|
"Innodb_buffer_pool_reads": {
|
|
"type": "string"
|
|
},
|
|
"Key_read_requests": {
|
|
"type": "string"
|
|
},
|
|
"Key_reads": {
|
|
"type": "string"
|
|
},
|
|
"Key_write_requests": {
|
|
"type": "string"
|
|
},
|
|
"Key_writes": {
|
|
"type": "string"
|
|
},
|
|
"Max_used_connections": {
|
|
"type": "string"
|
|
},
|
|
"Open_tables": {
|
|
"type": "string"
|
|
},
|
|
"Opened_files": {
|
|
"type": "string"
|
|
},
|
|
"Opened_tables": {
|
|
"type": "string"
|
|
},
|
|
"Position": {
|
|
"type": "string"
|
|
},
|
|
"Qcache_hits": {
|
|
"type": "string"
|
|
},
|
|
"Qcache_inserts": {
|
|
"type": "string"
|
|
},
|
|
"Questions": {
|
|
"type": "string"
|
|
},
|
|
"Run": {
|
|
"type": "string"
|
|
},
|
|
"Select_full_join": {
|
|
"type": "string"
|
|
},
|
|
"Select_range_check": {
|
|
"type": "string"
|
|
},
|
|
"Sort_merge_passes": {
|
|
"type": "string"
|
|
},
|
|
"Table_locks_waited": {
|
|
"type": "string"
|
|
},
|
|
"Threads_cached": {
|
|
"type": "string"
|
|
},
|
|
"Threads_connected": {
|
|
"type": "string"
|
|
},
|
|
"Threads_created": {
|
|
"type": "string"
|
|
},
|
|
"Threads_running": {
|
|
"type": "string"
|
|
},
|
|
"Uptime": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.MysqlVariables": {
|
|
"type": "object",
|
|
"properties": {
|
|
"binlog_cache_size": {
|
|
"type": "string"
|
|
},
|
|
"innodb_buffer_pool_size": {
|
|
"type": "string"
|
|
},
|
|
"innodb_log_buffer_size": {
|
|
"type": "string"
|
|
},
|
|
"join_buffer_size": {
|
|
"type": "string"
|
|
},
|
|
"key_buffer_size": {
|
|
"type": "string"
|
|
},
|
|
"long_query_time": {
|
|
"type": "string"
|
|
},
|
|
"max_connections": {
|
|
"type": "string"
|
|
},
|
|
"max_heap_table_size": {
|
|
"type": "string"
|
|
},
|
|
"query_cache_size": {
|
|
"type": "string"
|
|
},
|
|
"query_cache_type": {
|
|
"type": "string"
|
|
},
|
|
"read_buffer_size": {
|
|
"type": "string"
|
|
},
|
|
"read_rnd_buffer_size": {
|
|
"type": "string"
|
|
},
|
|
"slow_query_log": {
|
|
"type": "string"
|
|
},
|
|
"sort_buffer_size": {
|
|
"type": "string"
|
|
},
|
|
"table_open_cache": {
|
|
"type": "string"
|
|
},
|
|
"thread_cache_size": {
|
|
"type": "string"
|
|
},
|
|
"thread_stack": {
|
|
"type": "string"
|
|
},
|
|
"tmp_table_size": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.MysqlVariablesUpdate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"param": {
|
|
"type": "string"
|
|
},
|
|
"value": {}
|
|
}
|
|
},
|
|
"dto.NetworkCreat": {
|
|
"type": "object",
|
|
"properties": {
|
|
"driver": {
|
|
"type": "string"
|
|
},
|
|
"gateway": {
|
|
"type": "string"
|
|
},
|
|
"ipRange": {
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"subnet": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.OperateByID": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.PageContainer": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"filters": {
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.PageInfo": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.PageResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"items": {},
|
|
"total": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.PasswordUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"newPassword",
|
|
"oldPassword"
|
|
],
|
|
"properties": {
|
|
"newPassword": {
|
|
"type": "string"
|
|
},
|
|
"oldPassword": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.PortHelper": {
|
|
"type": "object",
|
|
"properties": {
|
|
"containerPort": {
|
|
"type": "integer"
|
|
},
|
|
"hostPort": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.RecordSearch": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"page",
|
|
"pageSize",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"detailName": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.RecoverDB": {
|
|
"type": "object",
|
|
"required": [
|
|
"backupName",
|
|
"dbName",
|
|
"mysqlName"
|
|
],
|
|
"properties": {
|
|
"backupName": {
|
|
"type": "string"
|
|
},
|
|
"dbName": {
|
|
"type": "string"
|
|
},
|
|
"mysqlName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.RedisConf": {
|
|
"type": "object",
|
|
"properties": {
|
|
"containerName": {
|
|
"type": "string"
|
|
},
|
|
"maxclients": {
|
|
"type": "string"
|
|
},
|
|
"maxmemory": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
},
|
|
"requirepass": {
|
|
"type": "string"
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.RedisConfPersistenceUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"appendfsync": {
|
|
"type": "string"
|
|
},
|
|
"appendonly": {
|
|
"type": "string"
|
|
},
|
|
"save": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"aof",
|
|
"rbd"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"dto.RedisConfUpdate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"maxclients": {
|
|
"type": "string"
|
|
},
|
|
"maxmemory": {
|
|
"type": "string"
|
|
},
|
|
"timeout": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.RedisConfUpdateByFile": {
|
|
"type": "object",
|
|
"properties": {
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"restartNow": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"dto.RedisPersistence": {
|
|
"type": "object",
|
|
"properties": {
|
|
"appendfsync": {
|
|
"type": "string"
|
|
},
|
|
"appendonly": {
|
|
"type": "string"
|
|
},
|
|
"save": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.RedisStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"connected_clients": {
|
|
"type": "string"
|
|
},
|
|
"instantaneous_ops_per_sec": {
|
|
"type": "string"
|
|
},
|
|
"keyspace_hits": {
|
|
"type": "string"
|
|
},
|
|
"keyspace_misses": {
|
|
"type": "string"
|
|
},
|
|
"latest_fork_usec": {
|
|
"type": "string"
|
|
},
|
|
"mem_fragmentation_ratio": {
|
|
"type": "string"
|
|
},
|
|
"tcp_port": {
|
|
"type": "string"
|
|
},
|
|
"total_commands_processed": {
|
|
"type": "string"
|
|
},
|
|
"total_connections_received": {
|
|
"type": "string"
|
|
},
|
|
"uptime_in_days": {
|
|
"type": "string"
|
|
},
|
|
"used_memory": {
|
|
"type": "string"
|
|
},
|
|
"used_memory_peak": {
|
|
"type": "string"
|
|
},
|
|
"used_memory_rss": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.SearchForTree": {
|
|
"type": "object",
|
|
"properties": {
|
|
"info": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.SearchRecord": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"cronjobID": {
|
|
"type": "integer"
|
|
},
|
|
"endTime": {
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
},
|
|
"startTime": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.SearchWithPage": {
|
|
"type": "object",
|
|
"required": [
|
|
"info",
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"info": {
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"dto.SettingInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"complexityVerification": {
|
|
"type": "string"
|
|
},
|
|
"dingVars": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"emailVars": {
|
|
"type": "string"
|
|
},
|
|
"expirationDays": {
|
|
"type": "string"
|
|
},
|
|
"expirationTime": {
|
|
"type": "string"
|
|
},
|
|
"language": {
|
|
"type": "string"
|
|
},
|
|
"localTime": {
|
|
"type": "string"
|
|
},
|
|
"messageType": {
|
|
"type": "string"
|
|
},
|
|
"mfaSecret": {
|
|
"type": "string"
|
|
},
|
|
"mfaStatus": {
|
|
"type": "string"
|
|
},
|
|
"monitorStatus": {
|
|
"type": "string"
|
|
},
|
|
"monitorStoreDays": {
|
|
"type": "string"
|
|
},
|
|
"panelName": {
|
|
"type": "string"
|
|
},
|
|
"securityEntrance": {
|
|
"type": "string"
|
|
},
|
|
"serverPort": {
|
|
"type": "string"
|
|
},
|
|
"sessionTimeout": {
|
|
"type": "string"
|
|
},
|
|
"systemVersion": {
|
|
"type": "string"
|
|
},
|
|
"theme": {
|
|
"type": "string"
|
|
},
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"weChatVars": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.SettingUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"key"
|
|
],
|
|
"properties": {
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.SnapshotCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"from"
|
|
],
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"type": "string",
|
|
"enum": [
|
|
"OSS",
|
|
"S3",
|
|
"SFTP",
|
|
"MINIO"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"dto.SnapshotRecover": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"isNew": {
|
|
"type": "boolean"
|
|
},
|
|
"reDownload": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"dto.UpgradeInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"newVersion": {
|
|
"type": "string"
|
|
},
|
|
"publishedAt": {
|
|
"type": "string"
|
|
},
|
|
"releaseNote": {
|
|
"type": "string"
|
|
},
|
|
"tag": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.UploadRecover": {
|
|
"type": "object",
|
|
"required": [
|
|
"dbName",
|
|
"mysqlName"
|
|
],
|
|
"properties": {
|
|
"dbName": {
|
|
"type": "string"
|
|
},
|
|
"fileDir": {
|
|
"type": "string"
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"mysqlName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.UserLoginInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mfaSecret": {
|
|
"type": "string"
|
|
},
|
|
"mfaStatus": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"dto.VolumeCreat": {
|
|
"type": "object",
|
|
"properties": {
|
|
"driver": {
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"dto.VolumeHelper": {
|
|
"type": "object",
|
|
"properties": {
|
|
"containerDir": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "string"
|
|
},
|
|
"sourceDir": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"files.FileInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"extension": {
|
|
"type": "string"
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"isDir": {
|
|
"type": "boolean"
|
|
},
|
|
"isHidden": {
|
|
"type": "boolean"
|
|
},
|
|
"isSymlink": {
|
|
"type": "boolean"
|
|
},
|
|
"itemTotal": {
|
|
"type": "integer"
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/files.FileInfo"
|
|
}
|
|
},
|
|
"linkPath": {
|
|
"type": "string"
|
|
},
|
|
"mimeType": {
|
|
"type": "string"
|
|
},
|
|
"modTime": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"mfa.Otp": {
|
|
"type": "object",
|
|
"properties": {
|
|
"qrImage": {
|
|
"type": "string"
|
|
},
|
|
"secret": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.App": {
|
|
"type": "object",
|
|
"properties": {
|
|
"author": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"crossVersionUpdate": {
|
|
"type": "boolean"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "string"
|
|
},
|
|
"shortDesc": {
|
|
"type": "string"
|
|
},
|
|
"source": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.AppInstall": {
|
|
"type": "object",
|
|
"properties": {
|
|
"app": {
|
|
"$ref": "#/definitions/model.App"
|
|
},
|
|
"appDetailId": {
|
|
"type": "integer"
|
|
},
|
|
"appId": {
|
|
"type": "integer"
|
|
},
|
|
"backups": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/model.AppInstallBackup"
|
|
}
|
|
},
|
|
"containerName": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"dockerCompose": {
|
|
"type": "string"
|
|
},
|
|
"env": {
|
|
"type": "string"
|
|
},
|
|
"httpPort": {
|
|
"type": "integer"
|
|
},
|
|
"httpsPort": {
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"param": {
|
|
"type": "string"
|
|
},
|
|
"serviceName": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.AppInstallBackup": {
|
|
"type": "object",
|
|
"properties": {
|
|
"app_detail_id": {
|
|
"type": "integer"
|
|
},
|
|
"app_install_id": {
|
|
"type": "integer"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"param": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.Tag": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.Website": {
|
|
"type": "object",
|
|
"properties": {
|
|
"accessLog": {
|
|
"type": "boolean"
|
|
},
|
|
"alias": {
|
|
"type": "string"
|
|
},
|
|
"appInstallId": {
|
|
"type": "integer"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"defaultServer": {
|
|
"type": "boolean"
|
|
},
|
|
"domains": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/model.WebsiteDomain"
|
|
}
|
|
},
|
|
"errorLog": {
|
|
"type": "boolean"
|
|
},
|
|
"expireDate": {
|
|
"type": "string"
|
|
},
|
|
"httpConfig": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"primaryDomain": {
|
|
"type": "string"
|
|
},
|
|
"protocol": {
|
|
"type": "string"
|
|
},
|
|
"proxy": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"webSiteGroupId": {
|
|
"type": "integer"
|
|
},
|
|
"webSiteSSL": {
|
|
"$ref": "#/definitions/model.WebsiteSSL"
|
|
},
|
|
"webSiteSSLId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"model.WebsiteAcmeAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"model.WebsiteDomain": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"domain": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"websiteId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"model.WebsiteSSL": {
|
|
"type": "object",
|
|
"properties": {
|
|
"acmeAccount": {
|
|
"$ref": "#/definitions/model.WebsiteAcmeAccount"
|
|
},
|
|
"acmeAccountId": {
|
|
"type": "integer"
|
|
},
|
|
"autoRenew": {
|
|
"type": "boolean"
|
|
},
|
|
"certURL": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"dnsAccountId": {
|
|
"type": "integer"
|
|
},
|
|
"domains": {
|
|
"type": "string"
|
|
},
|
|
"expireDate": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"organization": {
|
|
"type": "string"
|
|
},
|
|
"pem": {
|
|
"type": "string"
|
|
},
|
|
"primaryDomain": {
|
|
"type": "string"
|
|
},
|
|
"privateKey": {
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"type": "string"
|
|
},
|
|
"startDate": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"websites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/model.Website"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"request.AppBackupDelete": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"request.AppBackupSearch": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"appInstallID": {
|
|
"type": "integer"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.AppInstallCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"appDetailId",
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"appDetailId": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"services": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"request.AppInstalledOperate": {
|
|
"type": "object",
|
|
"required": [
|
|
"installId",
|
|
"operate"
|
|
],
|
|
"properties": {
|
|
"backupId": {
|
|
"type": "integer"
|
|
},
|
|
"deleteBackup": {
|
|
"type": "boolean"
|
|
},
|
|
"detailId": {
|
|
"type": "integer"
|
|
},
|
|
"forceDelete": {
|
|
"type": "boolean"
|
|
},
|
|
"installId": {
|
|
"type": "integer"
|
|
},
|
|
"operate": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.AppInstalledSearch": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.AppSearch": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.DirSizeReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileBatchDelete": {
|
|
"type": "object",
|
|
"required": [
|
|
"paths"
|
|
],
|
|
"properties": {
|
|
"isDir": {
|
|
"type": "boolean"
|
|
},
|
|
"paths": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"request.FileCompress": {
|
|
"type": "object",
|
|
"required": [
|
|
"dst",
|
|
"files",
|
|
"name",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"dst": {
|
|
"type": "string"
|
|
},
|
|
"files": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"replace": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"mode",
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"isDir": {
|
|
"type": "boolean"
|
|
},
|
|
"isLink": {
|
|
"type": "boolean"
|
|
},
|
|
"isSymlink": {
|
|
"type": "boolean"
|
|
},
|
|
"linkPath": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "integer"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileDeCompress": {
|
|
"type": "object",
|
|
"required": [
|
|
"dst",
|
|
"path",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"dst": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileDelete": {
|
|
"type": "object",
|
|
"required": [
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"isDir": {
|
|
"type": "boolean"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileDownload": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"paths",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"paths": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileEdit": {
|
|
"type": "object",
|
|
"required": [
|
|
"content",
|
|
"path"
|
|
],
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileMove": {
|
|
"type": "object",
|
|
"required": [
|
|
"newPath",
|
|
"oldPaths",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"newPath": {
|
|
"type": "string"
|
|
},
|
|
"oldPaths": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"dir": {
|
|
"type": "boolean"
|
|
},
|
|
"expand": {
|
|
"type": "boolean"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"search": {
|
|
"type": "string"
|
|
},
|
|
"showHidden": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"request.FileRename": {
|
|
"type": "object",
|
|
"required": [
|
|
"newName",
|
|
"oldName"
|
|
],
|
|
"properties": {
|
|
"newName": {
|
|
"type": "string"
|
|
},
|
|
"oldName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.FileWget": {
|
|
"type": "object",
|
|
"required": [
|
|
"name",
|
|
"path",
|
|
"url"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.NewAppInstall": {
|
|
"type": "object",
|
|
"properties": {
|
|
"appDetailID": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
},
|
|
"request.NginxConfigFileUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"backup",
|
|
"content",
|
|
"filePath"
|
|
],
|
|
"properties": {
|
|
"backup": {
|
|
"type": "boolean"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"filePath": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.NginxConfigUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"websiteId"
|
|
],
|
|
"properties": {
|
|
"operate": {
|
|
"type": "string"
|
|
},
|
|
"params": {},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"websiteId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.NginxScopeReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"scope"
|
|
],
|
|
"properties": {
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"websiteId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.PortUpdate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteAcmeAccountCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"email"
|
|
],
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"alias",
|
|
"primaryDomain",
|
|
"type",
|
|
"webSiteGroupID"
|
|
],
|
|
"properties": {
|
|
"alias": {
|
|
"type": "string"
|
|
},
|
|
"appID": {
|
|
"type": "integer"
|
|
},
|
|
"appInstall": {
|
|
"$ref": "#/definitions/request.NewAppInstall"
|
|
},
|
|
"appInstallID": {
|
|
"type": "integer"
|
|
},
|
|
"appType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"new",
|
|
"installed"
|
|
]
|
|
},
|
|
"otherDomains": {
|
|
"type": "string"
|
|
},
|
|
"primaryDomain": {
|
|
"type": "string"
|
|
},
|
|
"proxy": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"webSiteGroupID": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteDNSReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"acmeAccountId",
|
|
"domains"
|
|
],
|
|
"properties": {
|
|
"acmeAccountId": {
|
|
"type": "integer"
|
|
},
|
|
"domains": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteDefaultUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteDelete": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"deleteApp": {
|
|
"type": "boolean"
|
|
},
|
|
"deleteBackup": {
|
|
"type": "boolean"
|
|
},
|
|
"forceDelete": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteDnsAccountCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"authorization",
|
|
"name",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"authorization": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteDnsAccountUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"authorization",
|
|
"id",
|
|
"name",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"authorization": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteDomainCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"domain",
|
|
"port",
|
|
"websiteId"
|
|
],
|
|
"properties": {
|
|
"domain": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
},
|
|
"websiteId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteDomainDelete": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteGroupCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteGroupUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"default": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteHTTPSOp": {
|
|
"type": "object",
|
|
"required": [
|
|
"enable",
|
|
"websiteId"
|
|
],
|
|
"properties": {
|
|
"HttpConfig": {
|
|
"type": "string",
|
|
"enum": [
|
|
"HTTPSOnly",
|
|
"HTTPAlso",
|
|
"HTTPToHTTPS"
|
|
]
|
|
},
|
|
"SSLProtocol": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"algorithm": {
|
|
"type": "string"
|
|
},
|
|
"certificate": {
|
|
"type": "string"
|
|
},
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"privateKey": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"existed",
|
|
"auto",
|
|
"manual"
|
|
]
|
|
},
|
|
"websiteId": {
|
|
"type": "integer"
|
|
},
|
|
"websiteSSLId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteInstallCheckReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"InstallIds"
|
|
],
|
|
"properties": {
|
|
"InstallIds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteLogReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"logType",
|
|
"operate"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"logType": {
|
|
"type": "string"
|
|
},
|
|
"operate": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteNginxUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"content",
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteOp": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"operate": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteRecover": {
|
|
"type": "object",
|
|
"required": [
|
|
"backupName",
|
|
"type",
|
|
"websiteName"
|
|
],
|
|
"properties": {
|
|
"backupName": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"websiteName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteRecoverByFile": {
|
|
"type": "object",
|
|
"required": [
|
|
"fileDir",
|
|
"fileName",
|
|
"type",
|
|
"websiteName"
|
|
],
|
|
"properties": {
|
|
"fileDir": {
|
|
"type": "string"
|
|
},
|
|
"fileName": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"websiteName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteResourceReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteSSLCreate": {
|
|
"type": "object",
|
|
"required": [
|
|
"acmeAccountId",
|
|
"autoRenew",
|
|
"primaryDomain",
|
|
"provider"
|
|
],
|
|
"properties": {
|
|
"acmeAccountId": {
|
|
"type": "integer"
|
|
},
|
|
"autoRenew": {
|
|
"type": "boolean"
|
|
},
|
|
"dnsAccountId": {
|
|
"type": "integer"
|
|
},
|
|
"otherDomains": {
|
|
"type": "string"
|
|
},
|
|
"primaryDomain": {
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteSSLRenew": {
|
|
"type": "object",
|
|
"required": [
|
|
"SSLId"
|
|
],
|
|
"properties": {
|
|
"SSLId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteSSLSearch": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteSearch": {
|
|
"type": "object",
|
|
"required": [
|
|
"page",
|
|
"pageSize"
|
|
],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
},
|
|
"pageSize": {
|
|
"type": "integer"
|
|
},
|
|
"websiteGroupId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"primaryDomain",
|
|
"webSiteGroupID"
|
|
],
|
|
"properties": {
|
|
"expireDate": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"primaryDomain": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"webSiteGroupID": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteWafReq": {
|
|
"type": "object",
|
|
"required": [
|
|
"key",
|
|
"rule",
|
|
"websiteId"
|
|
],
|
|
"properties": {
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"rule": {
|
|
"type": "string"
|
|
},
|
|
"websiteId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"request.WebsiteWafUpdate": {
|
|
"type": "object",
|
|
"required": [
|
|
"enable",
|
|
"key",
|
|
"websiteId"
|
|
],
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"websiteId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"response.AppDTO": {
|
|
"type": "object",
|
|
"properties": {
|
|
"author": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"crossVersionUpdate": {
|
|
"type": "boolean"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "string"
|
|
},
|
|
"shortDesc": {
|
|
"type": "string"
|
|
},
|
|
"source": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/model.Tag"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"versions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"response.AppDetailDTO": {
|
|
"type": "object",
|
|
"properties": {
|
|
"appId": {
|
|
"type": "integer"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"lastVersion": {
|
|
"type": "string"
|
|
},
|
|
"params": {},
|
|
"readme": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"response.AppInstalledCheck": {
|
|
"type": "object",
|
|
"properties": {
|
|
"app": {
|
|
"type": "string"
|
|
},
|
|
"appInstallId": {
|
|
"type": "integer"
|
|
},
|
|
"containerName": {
|
|
"type": "string"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"installPath": {
|
|
"type": "string"
|
|
},
|
|
"isExist": {
|
|
"type": "boolean"
|
|
},
|
|
"lastBackupAt": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"response.AppParam": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {}
|
|
}
|
|
},
|
|
"response.FileInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"extension": {
|
|
"type": "string"
|
|
},
|
|
"group": {
|
|
"type": "string"
|
|
},
|
|
"isDir": {
|
|
"type": "boolean"
|
|
},
|
|
"isHidden": {
|
|
"type": "boolean"
|
|
},
|
|
"isSymlink": {
|
|
"type": "boolean"
|
|
},
|
|
"itemTotal": {
|
|
"type": "integer"
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/files.FileInfo"
|
|
}
|
|
},
|
|
"linkPath": {
|
|
"type": "string"
|
|
},
|
|
"mimeType": {
|
|
"type": "string"
|
|
},
|
|
"modTime": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"response.NginxParam": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"response.NginxStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"accepts": {
|
|
"type": "string"
|
|
},
|
|
"active": {
|
|
"type": "string"
|
|
},
|
|
"handled": {
|
|
"type": "string"
|
|
},
|
|
"reading": {
|
|
"type": "string"
|
|
},
|
|
"requests": {
|
|
"type": "string"
|
|
},
|
|
"waiting": {
|
|
"type": "string"
|
|
},
|
|
"writing": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"response.WebsiteAcmeAccountDTO": {
|
|
"type": "object",
|
|
"properties": {
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"response.WebsiteDTO": {
|
|
"type": "object",
|
|
"properties": {
|
|
"accessLog": {
|
|
"type": "boolean"
|
|
},
|
|
"accessLogPath": {
|
|
"type": "string"
|
|
},
|
|
"alias": {
|
|
"type": "string"
|
|
},
|
|
"appInstallId": {
|
|
"type": "integer"
|
|
},
|
|
"createdAt": {
|
|
"type": "string"
|
|
},
|
|
"defaultServer": {
|
|
"type": "boolean"
|
|
},
|
|
"domains": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/model.WebsiteDomain"
|
|
}
|
|
},
|
|
"errorLog": {
|
|
"type": "boolean"
|
|
},
|
|
"errorLogPath": {
|
|
"type": "string"
|
|
},
|
|
"expireDate": {
|
|
"type": "string"
|
|
},
|
|
"httpConfig": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"primaryDomain": {
|
|
"type": "string"
|
|
},
|
|
"protocol": {
|
|
"type": "string"
|
|
},
|
|
"proxy": {
|
|
"type": "string"
|
|
},
|
|
"remark": {
|
|
"type": "string"
|
|
},
|
|
"sitePath": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"updatedAt": {
|
|
"type": "string"
|
|
},
|
|
"webSiteGroupId": {
|
|
"type": "integer"
|
|
},
|
|
"webSiteSSL": {
|
|
"$ref": "#/definitions/model.WebsiteSSL"
|
|
},
|
|
"webSiteSSLId": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"response.WebsiteHTTPS": {
|
|
"type": "object",
|
|
"properties": {
|
|
"SSL": {
|
|
"$ref": "#/definitions/model.WebsiteSSL"
|
|
},
|
|
"SSLProtocol": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"algorithm": {
|
|
"type": "string"
|
|
},
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"httpConfig": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"response.WebsiteLog": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"enable": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"response.WebsiteNginxConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"params": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/response.NginxParam"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"response.WebsiteWafConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"enable": {
|
|
"type": "boolean"
|
|
},
|
|
"filePath": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`
|
|
|
|
type swaggerInfo struct {
|
|
Version string
|
|
Host string
|
|
BasePath string
|
|
Schemes []string
|
|
Title string
|
|
Description string
|
|
}
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
var SwaggerInfo = swaggerInfo{
|
|
Version: "1.0",
|
|
Host: "localhost",
|
|
BasePath: "/api/v1",
|
|
Schemes: []string{},
|
|
Title: "1Panel",
|
|
Description: "开源Linux面板",
|
|
}
|
|
|
|
type s struct{}
|
|
|
|
func (s *s) ReadDoc() string {
|
|
sInfo := SwaggerInfo
|
|
sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
|
|
|
|
t, err := template.New("swagger_info").Funcs(template.FuncMap{
|
|
"marshal": func(v interface{}) string {
|
|
a, _ := json.Marshal(v)
|
|
return string(a)
|
|
},
|
|
"escape": func(v interface{}) string {
|
|
// escape tabs
|
|
str := strings.Replace(v.(string), "\t", "\\t", -1)
|
|
// replace " with \", and if that results in \\", replace that with \\\"
|
|
str = strings.Replace(str, "\"", "\\\"", -1)
|
|
return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
|
|
},
|
|
}).Parse(doc)
|
|
if err != nil {
|
|
return doc
|
|
}
|
|
|
|
var tpl bytes.Buffer
|
|
if err := t.Execute(&tpl, sInfo); err != nil {
|
|
return doc
|
|
}
|
|
|
|
return tpl.String()
|
|
}
|
|
|
|
func init() {
|
|
swag.Register("swagger", &s{})
|
|
}
|