2022-12-14 19:39:32 +08:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
|
|
|
"description": "开源Linux面板",
|
|
|
|
"title": "1Panel",
|
|
|
|
"termsOfService": "http://swagger.io/terms/",
|
|
|
|
"contact": {},
|
|
|
|
"license": {
|
|
|
|
"name": "Apache 2.0",
|
|
|
|
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
|
|
},
|
|
|
|
"version": "1.0"
|
|
|
|
},
|
|
|
|
"host": "localhost",
|
|
|
|
"basePath": "/api/v1",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paths": {
|
2023-02-10 15:55:56 +08:00
|
|
|
"/apps/:key": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-10 15:55:56 +08:00
|
|
|
"description": "通过 key 获取应用信息",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"App"
|
|
|
|
],
|
2023-02-10 15:55:56 +08:00
|
|
|
"summary": "Search app by key",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-02-10 15:55:56 +08:00
|
|
|
"type": "string",
|
|
|
|
"description": "app key",
|
|
|
|
"name": "key",
|
2023-01-05 11:57:03 +08:00
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.AppDTO"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"/apps/checkupdate": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取应用更新版本",
|
|
|
|
"tags": [
|
|
|
|
"App"
|
|
|
|
],
|
|
|
|
"summary": "Get app list update",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-18 10:03:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/apps/detail/:appId/:version/:type": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "通过 appid 获取应用详情",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"App"
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Search app detail by appid",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "integer",
|
|
|
|
"description": "app id",
|
|
|
|
"name": "appId",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "app 版本",
|
|
|
|
"name": "version",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-04-06 00:09:58 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "app 类型",
|
|
|
|
"name": "version",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.AppDetailDTO"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/apps/details/:id": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "通过 id 获取应用详情",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"App"
|
|
|
|
],
|
|
|
|
"summary": "Get app detail by id",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "id",
|
|
|
|
"name": "appId",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.AppDetailDTO"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/install": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "安装应用",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Install app",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/request.AppInstallCreate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/model.AppInstall"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"formatEN": "Install app [appKey]-[name]",
|
|
|
|
"formatZH": "安装应用 [appKey]-[name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/installed/:appInstallId/versions": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "通过 install id 获取应用更新版本",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Search app update version by install id",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "integer",
|
2023-01-04 22:31:51 +08:00
|
|
|
"description": "request",
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": "appInstallId",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/installed/check/:key": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "检查应用安装情况",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Check app installed",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "string",
|
2023-01-04 22:31:51 +08:00
|
|
|
"description": "request",
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": "key",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/response.AppInstalledCheck"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/installed/conf/:key": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "通过 key 获取应用默认配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
|
|
|
],
|
|
|
|
"summary": "Search default config by key",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "request",
|
|
|
|
"name": "key",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"/apps/installed/conninfo/:key": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-11 10:26:25 +08:00
|
|
|
"description": "获取应用连接信息",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-04-11 10:26:25 +08:00
|
|
|
"summary": "Search app password by key",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-04-11 10:26:25 +08:00
|
|
|
"type": "string",
|
|
|
|
"description": "request",
|
|
|
|
"name": "key",
|
2023-01-05 11:57:03 +08:00
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-04-11 10:26:25 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"/apps/installed/delete/check/:appInstallId": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-11 10:26:25 +08:00
|
|
|
"description": "删除前检查",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
|
|
|
],
|
2023-04-11 10:26:25 +08:00
|
|
|
"summary": "Check before delete",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-04-11 10:26:25 +08:00
|
|
|
"type": "integer",
|
|
|
|
"description": "App install id",
|
|
|
|
"name": "appInstallId",
|
2023-01-05 11:57:03 +08:00
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-04-11 10:26:25 +08:00
|
|
|
"type": "anrry"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/apps/installed/loadport/:key": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "获取应用端口",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Search app port by key",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "string",
|
2023-01-04 22:31:51 +08:00
|
|
|
"description": "request",
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": "key",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/installed/op": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "操作已安装应用",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Operate installed app",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/request.AppInstalledOperate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"db": "app_installs",
|
2023-01-04 22:31:51 +08:00
|
|
|
"input_colume": "id",
|
2023-01-05 11:57:03 +08:00
|
|
|
"input_value": "installId",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "app_id",
|
|
|
|
"output_value": "appId"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"db": "app_installs",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "installId",
|
|
|
|
"isList": false,
|
2023-01-04 22:31:51 +08:00
|
|
|
"output_colume": "name",
|
2023-01-05 11:57:03 +08:00
|
|
|
"output_value": "appName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"db": "apps",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "appId",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "key",
|
|
|
|
"output_value": "appKey"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"installId",
|
|
|
|
"operate"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"formatEN": "[appKey] App [appName] [operate]",
|
|
|
|
"formatZH": "[appKey] 应用 [appName] [operate]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/installed/params/:appInstallId": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "通过 install id 获取应用参数",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Search params by appInstallId",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "string",
|
2023-01-04 22:31:51 +08:00
|
|
|
"description": "request",
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": "appInstallId",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.AppParam"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"/apps/installed/params/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "修改应用参数",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"App"
|
|
|
|
],
|
|
|
|
"summary": "Change app params",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.AppInstalledUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-18 10:03:40 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"installId"
|
|
|
|
],
|
|
|
|
"formatEN": "Application param update [installId]",
|
|
|
|
"formatZH": "应用参数修改 [installId]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/installed/port/change": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "修改应用端口",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Change app port",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/request.PortUpdate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"key",
|
2023-01-04 22:31:51 +08:00
|
|
|
"name",
|
2023-01-05 11:57:03 +08:00
|
|
|
"port"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"formatEN": "Application port update [key]-[name] =\u003e [port]",
|
|
|
|
"formatZH": "应用端口修改 [key]-[name] =\u003e [port]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-06 17:18:13 +08:00
|
|
|
"/apps/installed/search": {
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-06 17:18:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/installed/sync": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "同步已安装应用列表",
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Sync app installed",
|
2023-01-04 22:31:51 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "Sync the list of installed apps",
|
|
|
|
"formatZH": "同步已安装应用列表",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/search": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "获取应用列表",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "List apps",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/request.AppSearch"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/services/:key": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "通过 key 获取应用 service",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"App"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "Search app service by key",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "string",
|
2023-01-04 22:31:51 +08:00
|
|
|
"description": "request",
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": "key",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "anrry"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/apps/sync": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "同步应用列表",
|
|
|
|
"tags": [
|
|
|
|
"App"
|
|
|
|
],
|
|
|
|
"summary": "Sync app list",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"/auth/demo": {
|
|
|
|
"get": {
|
|
|
|
"description": "判断是否为demo环境",
|
|
|
|
"tags": [
|
|
|
|
"Auth"
|
|
|
|
],
|
|
|
|
"summary": "Check System isDemo",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-18 10:03:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-17 11:12:43 +08:00
|
|
|
"/auth/issafety": {
|
|
|
|
"get": {
|
|
|
|
"description": "获取系统安全登录状态",
|
|
|
|
"tags": [
|
|
|
|
"Auth"
|
|
|
|
],
|
|
|
|
"summary": "Load safety status",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-17 11:12:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/auth/login": {
|
|
|
|
"post": {
|
|
|
|
"description": "用户登录",
|
|
|
|
"consumes": [
|
2023-01-04 22:31:51 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"Auth"
|
|
|
|
],
|
|
|
|
"summary": "User login",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.Login"
|
|
|
|
}
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/dto.UserLoginInfo"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/auth/logout": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "用户登出",
|
|
|
|
"tags": [
|
|
|
|
"Auth"
|
|
|
|
],
|
|
|
|
"summary": "User logout",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/auth/mfalogin": {
|
|
|
|
"post": {
|
|
|
|
"description": "用户 mfa 登录",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"Auth"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"summary": "User login with mfa",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/dto.MFALogin"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.UserLoginInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建容器",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create container",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ContainerCreate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name",
|
|
|
|
"image"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create container [name][image]",
|
|
|
|
"formatZH": "创建容器 [name][image]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"/containers/clean/log": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "清理容器日志",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Container"
|
|
|
|
],
|
|
|
|
"summary": "Clean container log",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.OperationWithName"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"formatEN": "clean container [name] logs",
|
|
|
|
"formatZH": "清理容器 [name] 日志",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/compose": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建容器编排",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create compose",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ComposeCreate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create compose [name]",
|
|
|
|
"formatZH": "创建 compose [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/compose/operate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "容器编排操作",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Operate compose",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ComposeOperation"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name",
|
|
|
|
"operation"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "compose [operation] [name]",
|
|
|
|
"formatZH": "compose [operation] [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/compose/search": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取编排列表分页",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page composes",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-21 18:42:37 +08:00
|
|
|
"/containers/compose/test": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "测试 compose 是否可用",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Container Compose"
|
|
|
|
],
|
|
|
|
"summary": "Test compose",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ComposeCreate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-21 18:42:37 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"name"
|
|
|
|
],
|
2023-03-22 15:20:30 +08:00
|
|
|
"formatEN": "check compose [name]",
|
|
|
|
"formatZH": "检测 compose [name] 格式",
|
2023-03-21 18:42:37 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/compose/update": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新容器编排",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update compose",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ComposeUpdate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"formatEN": "update compose information [name]",
|
|
|
|
"formatZH": "更新 compose [name]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/daemonjson": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 docker 配置信息",
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Docker"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load docker daemon.json",
|
2023-01-04 22:31:51 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.DaemonJsonConf"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/containers/daemonjson/file": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 docker 配置信息(表单)",
|
|
|
|
"produces": [
|
2023-01-04 22:31:51 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Docker"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load docker daemon.json",
|
2023-01-04 22:31:51 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/daemonjson/update": {
|
2023-02-13 15:48:18 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "修改 docker 配置信息",
|
2023-02-13 15:48:18 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Docker"
|
2023-02-13 15:48:18 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update docker daemon.json",
|
2023-02-13 15:48:18 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.DaemonJsonConf"
|
2023-02-13 15:48:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-13 15:48:18 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "Updated the docker daemon.json configuration",
|
|
|
|
"formatZH": "更新 docker daemon.json 配置",
|
|
|
|
"paramKeys": []
|
2023-02-13 15:48:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/daemonjson/update/byfile": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "上传替换 docker 配置文件",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Docker"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update docker daemon.json by upload file",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.DaemonJsonUpdateByFile"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "Updated the docker daemon.json configuration",
|
|
|
|
"formatZH": "更新 docker daemon.json 配置",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/docker/operate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "Docker 操作",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Docker"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Operate docker",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.DockerOperation"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"operation"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "[operation] docker service",
|
|
|
|
"formatZH": "docker 服务 [operation]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/docker/status": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 docker 服务状态",
|
|
|
|
"produces": [
|
2023-01-04 22:31:51 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Docker"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load docker status",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
2023-01-04 22:31:51 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/containers/image": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取镜像列表",
|
|
|
|
"produces": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List images",
|
2023-01-04 22:31:51 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "anrry"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/build": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "构建镜像",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Build image",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImageBuild"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"BeforeFuntions": [],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "build image [name]",
|
|
|
|
"formatZH": "构建镜像 [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/load": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "导入镜像",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load image",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImageLoad"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"path"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "load image from [path]",
|
|
|
|
"formatZH": "从 [path] 加载镜像",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/pull": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "拉取镜像",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Pull image",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImagePull"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "image_repos",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "repoID",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "reponame"
|
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"repoID",
|
|
|
|
"imageName"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "image pull [reponame][imageName]",
|
|
|
|
"formatZH": "镜像拉取 [reponame][imageName]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/push": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "推送镜像",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Push image",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImagePush"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "image_repos",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "repoID",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "reponame"
|
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"repoID",
|
|
|
|
"tagName",
|
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "push [tagName] to [reponame][name]",
|
|
|
|
"formatZH": "[tagName] 推送到 [reponame][name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/remove": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除镜像",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete image",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"names"
|
|
|
|
],
|
|
|
|
"formatEN": "remove image [names]",
|
|
|
|
"formatZH": "移除镜像 [names]",
|
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/save": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "导出镜像",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Save image",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImageSave"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"tagName",
|
|
|
|
"path",
|
2023-01-05 11:57:03 +08:00
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "save [tagName] as [path]/[name]",
|
|
|
|
"formatZH": "保留 [tagName] 为 [path]/[name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/search": {
|
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取镜像列表分页",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page images",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-04 22:31:51 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-01 16:15:31 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-02-01 16:15:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/image/tag": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "Tag 镜像",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Tag image",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImageTag"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"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": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "容器详情",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Container inspect",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.InspectReq"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/network": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建容器网络",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Network"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create network",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.NetworkCreat"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create container network [name]",
|
|
|
|
"formatZH": "创建容器网络 name",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/network/del": {
|
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除容器网络",
|
|
|
|
"consumes": [
|
2023-01-04 22:31:51 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Network"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete network",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-04 22:31:51 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"names"
|
|
|
|
],
|
|
|
|
"formatEN": "delete container network [names]",
|
|
|
|
"formatZH": "删除容器网络 [names]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/network/search": {
|
|
|
|
"post": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取容器网络列表分页",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Network"
|
|
|
|
],
|
|
|
|
"summary": "Page networks",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
|
|
|
}
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/operate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "容器操作",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Operate Container",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ContainerOperation"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name",
|
|
|
|
"operation",
|
|
|
|
"newName"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "container [operation] [name] [newName]",
|
|
|
|
"formatZH": "容器 [name] 执行 [operation] [newName]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-23 19:00:06 +08:00
|
|
|
"/containers/prune": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "容器清理",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Container"
|
|
|
|
],
|
|
|
|
"summary": "Clean container",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ContainerPrune"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ContainerPruneReport"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"pruneType"
|
|
|
|
],
|
|
|
|
"formatEN": "clean container [pruneType]",
|
|
|
|
"formatZH": "清理容器 [pruneType]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/repo": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取镜像仓库列表",
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Container Image-repo"
|
|
|
|
],
|
|
|
|
"summary": "List image repos",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建镜像仓库",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image-repo"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create image repo",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-27 11:46:23 +08:00
|
|
|
"$ref": "#/definitions/dto.ImageRepoDelete"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create image repo [name]",
|
|
|
|
"formatZH": "创建镜像仓库 [name]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/repo/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除镜像仓库",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image-repo"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete image repo",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImageRepoDelete"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "image_repos",
|
|
|
|
"input_colume": "id",
|
2023-02-13 17:13:55 +08:00
|
|
|
"input_value": "ids",
|
|
|
|
"isList": true,
|
2023-01-05 11:57:03 +08:00
|
|
|
"output_colume": "name",
|
2023-02-13 17:13:55 +08:00
|
|
|
"output_value": "names"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"ids"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "delete image repo [names]",
|
|
|
|
"formatZH": "删除镜像仓库 [names]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/repo/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取镜像仓库列表分页",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
2023-01-04 22:31:51 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Image-repo"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page image repos",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"/containers/repo/status": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取 docker 仓库状态",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Container Image-repo"
|
|
|
|
],
|
|
|
|
"summary": "Load repo status",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.OperateByID"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-27 11:46:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/repo/update": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新镜像仓库",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"tags": [
|
|
|
|
"Container Image-repo"
|
|
|
|
],
|
|
|
|
"summary": "Update image repo",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ImageRepoUpdate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "image_repos",
|
|
|
|
"input_column": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"id"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "update image repo information [name]",
|
|
|
|
"formatZH": "更新镜像仓库 [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/search": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取容器列表分页",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page containers",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageContainer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/search/log": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "容器日志",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Container logs",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ContainerLog"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/stats/:id": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "容器监控信息",
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Container stats",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "integer",
|
|
|
|
"description": "容器id",
|
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.ContainterStats"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/template": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取容器编排模版列表",
|
|
|
|
"produces": [
|
2023-01-04 22:31:51 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose-template"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List compose templates",
|
2023-01-04 22:31:51 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "anrry"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建容器编排模版",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose-template"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create compose template",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ComposeTemplateCreate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create compose template [name]",
|
|
|
|
"formatZH": "创建 compose 模版 [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/template/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除容器编排模版",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose-template"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete compose template",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "compose_templates",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "ids",
|
|
|
|
"isList": true,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "names"
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"ids"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "delete compose template [names]",
|
|
|
|
"formatZH": "删除 compose 模版 [names]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/template/search": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取容器编排模版列表分页",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose-template"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page compose templates",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-07 18:48:32 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/template/update": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新容器编排模版",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Compose-template"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update compose template",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ComposeTemplateUpdate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "compose_templates",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"id"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "update compose template information [name]",
|
|
|
|
"formatZH": "更新 compose 模版 [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/volume": {
|
|
|
|
"post": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建容器存储卷",
|
|
|
|
"consumes": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Volume"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create volume",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.VolumeCreat"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"BeforeFuntions": [],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create container volume [name]",
|
|
|
|
"formatZH": "创建容器存储卷 [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/volume/del": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除容器存储卷",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Volume"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete volume",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.BatchDelete"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"names"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "delete container volume [names]",
|
|
|
|
"formatZH": "删除容器存储卷 [names]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/containers/volume/search": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取容器存储卷列表",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Volume"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List volumes",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageInfo"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取容器存储卷分页",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Container Volume"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page volumes",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建计划任务",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create cronjob",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.CronjobCreate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"type",
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"formatEN": "create cronjob [type][name]",
|
|
|
|
"formatZH": "创建计划任务 [type][name]",
|
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs/del": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除计划任务",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete cronjob",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-12 14:48:30 +08:00
|
|
|
"$ref": "#/definitions/dto.CronjobBatchDelete"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "cronjobs",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "ids",
|
|
|
|
"isList": true,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "names"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"ids"
|
|
|
|
],
|
|
|
|
"formatEN": "delete cronjob [names]",
|
|
|
|
"formatZH": "删除计划任务 [names]",
|
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs/download": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "下载计划任务记录",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Download cronjob records",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.CronjobDownload"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "job_records",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "recordID",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "file",
|
|
|
|
"output_value": "file"
|
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"recordID"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "download the cronjob record [file]",
|
|
|
|
"formatZH": "下载计划任务记录 [file]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs/handle": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "手动执行计划任务",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Handle cronjob once",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.OperateByID"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
2023-02-13 17:13:55 +08:00
|
|
|
"db": "cronjobs",
|
2023-01-05 11:57:03 +08:00
|
|
|
"input_colume": "id",
|
2023-02-13 17:13:55 +08:00
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
2023-01-05 11:57:03 +08:00
|
|
|
"output_colume": "name",
|
2023-02-13 17:13:55 +08:00
|
|
|
"output_value": "name"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"id"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "manually execute the cronjob [name]",
|
|
|
|
"formatZH": "手动执行计划任务 [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 12:02:10 +08:00
|
|
|
"/cronjobs/records/clean": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "清空计划任务记录",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Cronjob"
|
|
|
|
],
|
|
|
|
"summary": "Clean job records",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-12 14:48:30 +08:00
|
|
|
"$ref": "#/definitions/dto.CronjobClean"
|
2023-04-07 12:02:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-07 12:02:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "cronjobs",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"formatEN": "clean cronjob [name] records",
|
|
|
|
"formatZH": "清空计划任务记录 [name]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs/search": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取计划任务分页",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page cronjobs",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-07 18:48:32 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs/search/records": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取计划任务记录",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page job records",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchRecord"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs/status": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新计划任务状态",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update cronjob status",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.CronjobUpdateStatus"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "cronjobs",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"id",
|
|
|
|
"status"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "change the status of cronjob [name] to [status].",
|
|
|
|
"formatZH": "修改计划任务 [name] 状态为 [status]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/cronjobs/update": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新计划任务",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Cronjob"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update cronjob",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.CronjobUpdate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "cronjobs",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"id"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "update cronjob [name]",
|
|
|
|
"formatZH": "更新计划任务 [name]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/dashboard/base/:ioOption/:netOption": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取首页基础数据",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Dashboard"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load dashboard base info",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "string",
|
2023-01-04 22:31:51 +08:00
|
|
|
"description": "request",
|
2023-02-13 17:13:55 +08:00
|
|
|
"name": "ioOption",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "request",
|
|
|
|
"name": "netOption",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.DashboardBase"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"/dashboard/current/:ioOption/:netOption": {
|
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取首页实时数据",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Dashboard"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load dashboard current info",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "string",
|
2023-01-04 22:31:51 +08:00
|
|
|
"description": "request",
|
2023-02-13 17:13:55 +08:00
|
|
|
"name": "ioOption",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": "request",
|
|
|
|
"name": "netOption",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.DashboardCurrent"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建 mysql 数据库",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create mysql database",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.MysqlDBCreate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"name"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create mysql database [name]",
|
|
|
|
"formatZH": "创建 mysql 数据库 [name]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/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": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "修改 mysql 访问权限",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Change mysql access",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ChangeDBInfo"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
2023-02-13 17:13:55 +08:00
|
|
|
"db": "database_mysqls",
|
2023-01-05 11:57:03 +08:00
|
|
|
"input_colume": "id",
|
2023-02-13 17:13:55 +08:00
|
|
|
"input_value": "id",
|
2023-01-05 11:57:03 +08:00
|
|
|
"isList": false,
|
2023-02-13 17:13:55 +08:00
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"id"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Update database [name] access",
|
|
|
|
"formatZH": "更新数据库 [name] 访问权限",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/change/password": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "修改 mysql 密码",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Change mysql password",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ChangeDBInfo"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
2023-02-13 17:13:55 +08:00
|
|
|
"db": "database_mysqls",
|
2023-01-05 11:57:03 +08:00
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"id"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Update database [name] password",
|
|
|
|
"formatZH": "更新数据库 [name] 密码",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/conffile/update": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "上传替换 mysql 配置文件",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update mysql conf by upload file",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.MysqlConfUpdateByFile"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "update the mysql database configuration information",
|
|
|
|
"formatZH": "更新 mysql 数据库配置信息",
|
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除 mysql 数据库",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete mysql database",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.MysqlDBDelete"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"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": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/del/check": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "Mysql 数据库删除前检查",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Check before delete mysql database",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.OperateByID"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/description/update": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新 mysql 数据库库描述信息",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update mysql database description",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.UpdateDescription"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
2023-02-13 17:13:55 +08:00
|
|
|
"db": "database_mysqls",
|
2023-01-05 11:57:03 +08:00
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"id",
|
|
|
|
"description"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "The description of the mysql database [name] is modified =\u003e [description]",
|
|
|
|
"formatZH": "mysql 数据库 [name] 描述信息修改 [description]",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/options": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 mysql 数据库列表",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List mysql database names",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "request",
|
2023-02-13 17:13:55 +08:00
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageInfo"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "anrry"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/redis/backup/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 redis 备份记录分页",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Redis"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page redis backups",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-04 22:31:51 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageInfo"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/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": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新 redis 配置信息",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Redis"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update redis conf",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.RedisConfUpdate"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "update the redis database configuration information",
|
|
|
|
"formatZH": "更新 redis 数据库配置信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/redis/conffile/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "上传更新 redis 配置信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Redis"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update redis conf by file",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-04 22:31:51 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.RedisConfUpdateByFile"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "update the redis database configuration information",
|
|
|
|
"formatZH": "更新 redis 数据库配置信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/redis/password": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新 redis 密码",
|
2023-01-04 22:31:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Redis"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Change redis password",
|
2023-01-04 22:31:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ChangeDBInfo"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "change the password of the redis database",
|
|
|
|
"formatZH": "修改 redis 数据库密码",
|
2023-01-04 22:31:51 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/redis/persistence/conf": {
|
|
|
|
"get": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 redis 持久化配置",
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Redis"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load redis persistence conf",
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.RedisPersistence"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/redis/persistence/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新 redis 持久化配置",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Redis"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update redis persistence conf",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.RedisConfPersistenceUpdate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "redis database persistence configuration update",
|
|
|
|
"formatZH": "redis 数据库持久化配置更新",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/databases/redis/status": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 redis 状态信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Redis"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load redis status info",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.RedisStatus"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/databases/remote": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 mysql 远程访问权限",
|
|
|
|
"tags": [
|
|
|
|
"Database Mysql"
|
|
|
|
],
|
|
|
|
"summary": "Load mysql remote access",
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "boolean"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 mysql 数据库列表分页",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Database Mysql"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page mysql databases",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/status": {
|
|
|
|
"get": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 mysql 状态信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
|
|
|
"Database Mysql"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load mysql status info",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.MysqlStatus"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/databases/variables": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取 mysql 性能参数信息",
|
|
|
|
"tags": [
|
|
|
|
"Database Mysql"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load mysql variables info",
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.MysqlVariables"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/databases/variables/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "mysql 性能调优",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Database Mysql"
|
|
|
|
],
|
|
|
|
"summary": "Update mysql variables",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.MysqlVariablesUpdate"
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "adjust mysql database performance parameters",
|
|
|
|
"formatZH": "调整 mysql 数据库性能参数",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建文件/文件夹",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create file",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileCreate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"formatEN": "Create dir or file [path]",
|
|
|
|
"formatZH": "创建文件/文件夹 [path]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/batch/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "批量删除文件/文件夹",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Batch delete file",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileBatchDelete"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"bodyKeys": [
|
|
|
|
"paths"
|
|
|
|
],
|
|
|
|
"formatEN": "Batch delete dir or file [paths]",
|
|
|
|
"formatZH": "批量删除文件/文件夹 [paths]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-08 15:33:43 +08:00
|
|
|
"/files/check": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "检测文件是否存在",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
|
|
|
"summary": "Check file exist",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.FilePathCheck"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-08 15:33:43 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"formatEN": "Check whether file [path] exists",
|
|
|
|
"formatZH": "检测文件 [path] 是否存在",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"/files/chunkupload": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "分片上传文件",
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
|
|
|
"summary": "ChunkUpload file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"description": "request",
|
|
|
|
"name": "file",
|
|
|
|
"in": "formData",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-18 10:03:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/compress": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "压缩文件",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Compress file",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileCompress"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"bodyKeys": [
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"formatEN": "Compress file [name]",
|
|
|
|
"formatZH": "压缩文件 [name]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/content": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取文件内容",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load file content",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileOption"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.FileInfo"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"formatEN": "Load file content [path]",
|
|
|
|
"formatZH": "获取文件内容 [path]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/decompress": {
|
|
|
|
"post": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "解压文件",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Decompress file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileDeCompress"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"formatEN": "Decompress file [path]",
|
|
|
|
"formatZH": "解压 [path]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除文件/文件夹",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete file",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileDelete"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"formatEN": "Delete dir or file [path]",
|
|
|
|
"formatZH": "删除文件/文件夹 [path]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/download": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "下载文件",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
|
|
|
],
|
|
|
|
"summary": "Download file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.FileDownload"
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Download file [name]",
|
|
|
|
"formatZH": "下载文件 [name]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"/files/download/bypath": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "下载指定文件",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
|
|
|
"summary": "Download file with path",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-03-21 14:42:50 +08:00
|
|
|
"$ref": "#/definitions/dto.FilePath"
|
2023-03-18 10:03:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-18 10:03:40 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"formatEN": "Download file [path]",
|
|
|
|
"formatZH": "下载文件 [path]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/loadfile": {
|
|
|
|
"post": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "读取文件",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Read file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.FilePath"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/mode": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "修改文件权限",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Change file mode",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileCreate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path",
|
|
|
|
"mode"
|
|
|
|
],
|
|
|
|
"formatEN": "Change mode [paths] =\u003e [mode]",
|
|
|
|
"formatZH": "修改权限 [paths] =\u003e [mode]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/move": {
|
|
|
|
"post": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "移动文件",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Move file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileMove"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"oldPaths",
|
|
|
|
"newPath"
|
|
|
|
],
|
|
|
|
"formatEN": "Move [oldPaths] =\u003e [newPath]",
|
|
|
|
"formatZH": "移动文件 [oldPaths] =\u003e [newPath]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-26 22:18:16 +08:00
|
|
|
"/files/owner": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "修改文件用户/组",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
|
|
|
"summary": "Change file owner",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.FileRoleUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-26 22:18:16 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path",
|
|
|
|
"user",
|
|
|
|
"group"
|
|
|
|
],
|
|
|
|
"formatEN": "Change owner [paths] =\u003e [user]/[group]",
|
|
|
|
"formatZH": "修改用户/组 [paths] =\u003e [user]/[group]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/rename": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "修改文件名称",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"File"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Change file name",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileRename"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-02-13 17:13:55 +08:00
|
|
|
"bodyKeys": [
|
|
|
|
"oldName",
|
|
|
|
"newName"
|
|
|
|
],
|
|
|
|
"formatEN": "Rename [oldName] =\u003e [newName]",
|
|
|
|
"formatZH": "重命名 [oldName] =\u003e [newName]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/save": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新文件内容",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update file content",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileEdit"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Update file content [path]",
|
|
|
|
"formatZH": "更新文件内容 [path]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取文件列表",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List files",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileOption"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.FileInfo"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/size": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取文件夹大小",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load file size",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.DirSizeReq"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"path"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Load file size [path]",
|
|
|
|
"formatZH": "获取文件夹大小 [path]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/tree": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "加载文件树",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Load files tree",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.FileOption"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "anrry"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/files/upload": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "上传文件",
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
|
|
|
"summary": "Upload file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "file",
|
|
|
|
"description": "request",
|
|
|
|
"name": "file",
|
|
|
|
"in": "formData",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"path"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Upload file [path]",
|
|
|
|
"formatZH": "上传文件 [path]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-02 13:54:07 +08:00
|
|
|
"/files/upload/search": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "分页获取上传文件",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
|
|
|
"summary": "Page file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.SearchUploadWithPage"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/files/wget": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "下载远端文件",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"File"
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Wget file",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.FileWget"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"url",
|
|
|
|
"path",
|
|
|
|
"name"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Download url =\u003e [path]/[name]",
|
|
|
|
"formatZH": "下载 url =\u003e [path]/[name]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 17:46:10 +08:00
|
|
|
"/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.GroupCreate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-07 17:46:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"formatEN": "create group [name][type]",
|
|
|
|
"formatZH": "创建组 [name][type]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-07 17:46:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "groups",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"db": "groups",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "type",
|
|
|
|
"output_value": "type"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"formatEN": "delete group [type][name]",
|
|
|
|
"formatZH": "删除组 [type][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.GroupUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-07 17:46:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"formatEN": "update group [name][type]",
|
|
|
|
"formatZH": "更新组 [name][type]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"/host/conffile/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "上传文件更新 SSH 配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"SSH"
|
|
|
|
],
|
|
|
|
"summary": "Update host ssh setting by file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SSHConf"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "update SSH conf",
|
|
|
|
"formatZH": "修改 SSH 配置文件",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/host/ssh/generate": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "生成 ssh 密钥",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"SSH"
|
|
|
|
],
|
|
|
|
"summary": "Generate host ssh secret",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.GenerateSSH"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "generate SSH secret",
|
|
|
|
"formatZH": "生成 SSH 密钥 ",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/host/ssh/logs": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取 ssh 登录日志",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"SSH"
|
|
|
|
],
|
|
|
|
"summary": "Load host ssh logs",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SearchSSHLog"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SSHLog"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/host/ssh/operate": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "修改 SSH 服务状态",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"SSH"
|
|
|
|
],
|
|
|
|
"summary": "Operate ssh",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.Operate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"operation"
|
|
|
|
],
|
|
|
|
"formatEN": "[operation] SSH",
|
|
|
|
"formatZH": "[operation] SSH ",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/host/ssh/search": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "加载 SSH 配置信息",
|
|
|
|
"tags": [
|
|
|
|
"SSH"
|
|
|
|
],
|
|
|
|
"summary": "Load host ssh setting info",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SSHInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/host/ssh/secret": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取 ssh 密钥",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"SSH"
|
|
|
|
],
|
|
|
|
"summary": "Load host ssh secret",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.GenerateLoad"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/host/ssh/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新 SSH 配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"SSH"
|
|
|
|
],
|
|
|
|
"summary": "Update host ssh 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 SSH setting [key] =\u003e [value]",
|
|
|
|
"formatZH": "修改 SSH 配置 [key] =\u003e [value]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/hosts": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建主机",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create host",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.HostOperate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name",
|
|
|
|
"addr"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create host [name][addr]",
|
|
|
|
"formatZH": "创建主机 [name][addr]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/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/command": {
|
|
|
|
"get": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取快速命令列表",
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Command"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List commands",
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.CommandInfo"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "创建快速命令",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Command"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Create command",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.CommandOperate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name",
|
|
|
|
"command"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "create quick command [name][command]",
|
|
|
|
"formatZH": "创建快捷命令 [name][command]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/hosts/command/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除快速命令",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Command"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete command",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "commands",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "ids",
|
|
|
|
"isList": true,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "names"
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"ids"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "delete quick command [names]",
|
|
|
|
"formatZH": "删除快捷命令 [names]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/hosts/command/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取快速命令列表分页",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Command"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page commands",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/hosts/command/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新快速命令",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Command"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update command",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.CommandOperate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"name"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "update quick command [name]",
|
|
|
|
"formatZH": "更新快捷命令 [name]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/hosts/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "删除主机",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Delete host",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-03-02 13:54:07 +08:00
|
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "hosts",
|
|
|
|
"input_colume": "id",
|
2023-03-02 13:54:07 +08:00
|
|
|
"input_value": "ids",
|
|
|
|
"isList": true,
|
2023-02-13 17:13:55 +08:00
|
|
|
"output_colume": "addr",
|
2023-03-02 13:54:07 +08:00
|
|
|
"output_value": "addrs"
|
2023-02-13 17:13:55 +08:00
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [
|
2023-03-02 13:54:07 +08:00
|
|
|
"ids"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-03-02 13:54:07 +08:00
|
|
|
"formatEN": "delete host [addrs]",
|
|
|
|
"formatZH": "删除主机 [addrs]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-30 16:07:28 +08:00
|
|
|
"/hosts/firewall/base": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取防火墙基础信息",
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Load firewall base info",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.FirewallBaseInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-12 22:30:50 +08:00
|
|
|
"/hosts/firewall/batch": {
|
2023-03-30 16:07:28 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "批量删除防火墙规则",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Create group",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.BatchRuleOperate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-30 16:07:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-12 22:30:50 +08:00
|
|
|
"/hosts/firewall/ip": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "创建防火墙 IP 规则",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Create group",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.AddrRuleOperate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"strategy",
|
|
|
|
"address"
|
|
|
|
],
|
|
|
|
"formatEN": "create address rules [strategy][address]",
|
|
|
|
"formatZH": "添加 ip 规则 [strategy] [address]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-30 16:07:28 +08:00
|
|
|
"/hosts/firewall/operate": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "修改防火墙状态",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Page firewall status",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.FirewallOperation"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"operation"
|
|
|
|
],
|
|
|
|
"formatEN": "[operation] firewall",
|
|
|
|
"formatZH": "[operation] 防火墙",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/hosts/firewall/port": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "创建防火墙端口规则",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Create group",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PortRuleOperate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-30 16:07:28 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"port",
|
|
|
|
"strategy"
|
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"formatEN": "create port rules [strategy][port]",
|
|
|
|
"formatZH": "添加端口规则 [strategy] [port]",
|
2023-03-30 16:07:28 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/hosts/firewall/search": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取防火墙规则列表分页",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Page firewall rules",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-12 22:30:50 +08:00
|
|
|
"/hosts/firewall/update/addr": {
|
2023-03-30 16:07:28 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新 ip 防火墙规则",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Create group",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.AddrRuleUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-30 16:07:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/hosts/firewall/update/port": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新端口防火墙规则",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Firewall"
|
|
|
|
],
|
|
|
|
"summary": "Create group",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PortRuleUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-30 16:07:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 17:46:10 +08:00
|
|
|
"/hosts/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"description": "获取主机列表分页",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-07 17:46:10 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"summary": "Page host",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-07 17:46:10 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchHostWithPage"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-07 17:46:10 +08:00
|
|
|
"description": "OK",
|
2023-01-05 11:57:03 +08:00
|
|
|
"schema": {
|
2023-04-07 17:46:10 +08:00
|
|
|
"type": "anrry"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 17:46:10 +08:00
|
|
|
"/hosts/test/byid/:id": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"description": "测试主机连接",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-07 17:46:10 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"summary": "Test host conn by host id",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-04-07 17:46:10 +08:00
|
|
|
"type": "integer",
|
2023-01-05 11:57:03 +08:00
|
|
|
"description": "request",
|
2023-04-07 17:46:10 +08:00
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-04-07 17:46:10 +08:00
|
|
|
"type": "boolean"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 17:46:10 +08:00
|
|
|
"/hosts/test/byinfo": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"description": "测试主机连接",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-07 17:46:10 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"summary": "Test host conn by info",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-07 17:46:10 +08:00
|
|
|
"$ref": "#/definitions/dto.HostConnTest"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 17:46:10 +08:00
|
|
|
"/hosts/tree": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"description": "加载主机树",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"summary": "Load host tree",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-07 17:46:10 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchForTree"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 17:46:10 +08:00
|
|
|
"/hosts/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"description": "更新主机",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-07 17:46:10 +08:00
|
|
|
"summary": "Update host",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-07 17:46:10 +08:00
|
|
|
"$ref": "#/definitions/dto.HostOperate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-04-07 17:46:10 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"name",
|
|
|
|
"addr"
|
|
|
|
],
|
|
|
|
"formatEN": "update host [name][addr]",
|
|
|
|
"formatZH": "更新主机信息 [name][addr]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-07 17:46:10 +08:00
|
|
|
"/hosts/update/group": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-03-02 13:54:07 +08:00
|
|
|
"description": "切换分组",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Host"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-03-02 13:54:07 +08:00
|
|
|
"summary": "Update host group",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-03-02 13:54:07 +08:00
|
|
|
"$ref": "#/definitions/dto.ChangeHostGroup"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-03-02 13:54:07 +08:00
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "hosts",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "addr",
|
|
|
|
"output_value": "addr"
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"bodyKeys": [
|
2023-03-02 13:54:07 +08:00
|
|
|
"id",
|
|
|
|
"group"
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
2023-03-02 13:54:07 +08:00
|
|
|
"formatEN": "change host [addr] group =\u003e [group]",
|
|
|
|
"formatZH": "切换主机[addr]分组 =\u003e [group]",
|
2023-02-13 17:13:55 +08:00
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/logs/clean": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "清空操作日志",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Logs"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Clean operation logs",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.CleanLog"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"logType"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "Clean the [logType] log information",
|
|
|
|
"formatZH": "清空 [logType] 日志信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/logs/login": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取系统登录日志列表分页",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Logs"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page login logs",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchLgLogWithPage"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/logs/operation": {
|
|
|
|
"post": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取系统操作日志列表分页",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Logs"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Page operation logs",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
2023-02-13 17:13:55 +08:00
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SearchOpLogWithPage"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"/openResty": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"description": "获取 OpenResty 配置信息",
|
2023-02-13 17:13:55 +08:00
|
|
|
"tags": [
|
2023-02-27 11:46:23 +08:00
|
|
|
"OpenResty"
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"summary": "Load OpenResty conf",
|
2023-02-13 17:13:55 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.FileInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"/openResty/file": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"description": "上传更新 OpenResty 配置文件",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-27 11:46:23 +08:00
|
|
|
"OpenResty"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"summary": "Update OpenResty conf by upload file",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.NginxConfigFileUpdate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "Update nginx conf",
|
|
|
|
"formatZH": "更新 nginx 配置",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"/openResty/scope": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"description": "获取部分 OpenResty 配置信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-27 11:46:23 +08:00
|
|
|
"OpenResty"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"summary": "Load partial OpenResty conf",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/request.NginxScopeReq"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"/openResty/status": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"description": "获取 OpenResty 状态信息",
|
2023-02-13 17:13:55 +08:00
|
|
|
"tags": [
|
2023-02-27 11:46:23 +08:00
|
|
|
"OpenResty"
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"summary": "Load OpenResty status info",
|
2023-02-13 17:13:55 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.NginxStatus"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"/openResty/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"description": "更新 OpenResty 配置信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-27 11:46:23 +08:00
|
|
|
"OpenResty"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-27 11:46:23 +08:00
|
|
|
"summary": "Update OpenResty conf",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
2023-02-13 17:13:55 +08:00
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.NginxConfigUpdate"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"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": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/runtimes": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "创建运行环境",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"Runtime"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Create runtime",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/request.RuntimeCreate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"name"
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"formatEN": "Create runtime [name]",
|
|
|
|
"formatZH": "创建运行环境 [name]",
|
2023-02-13 17:13:55 +08:00
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/runtimes/:id": {
|
|
|
|
"get": {
|
2023-03-02 13:54:07 +08:00
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "获取运行环境",
|
2023-03-02 13:54:07 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"Runtime"
|
2023-03-02 13:54:07 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Get runtime",
|
2023-03-02 13:54:07 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
2023-04-06 00:09:58 +08:00
|
|
|
"type": "string",
|
2023-03-02 13:54:07 +08:00
|
|
|
"description": "request",
|
2023-04-06 00:09:58 +08:00
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
2023-03-02 13:54:07 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-02 13:54:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/runtimes/del": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "删除运行环境",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"Website"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Delete runtime",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/request.RuntimeDelete"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"BeforeFuntions": [],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"id"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"formatEN": "Delete website [name]",
|
|
|
|
"formatZH": "删除网站 [name]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/runtimes/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "获取运行环境列表",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"Runtime"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "List runtimes",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/request.RuntimeSearch"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/runtimes/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "更新运行环境",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"Runtime"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Update runtime",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/request.RuntimeUpdate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"name"
|
2023-02-13 17:13:55 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"formatEN": "Update runtime [name]",
|
|
|
|
"formatZH": "更新运行环境 [name]",
|
2023-02-13 17:13:55 +08:00
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/settings/backup": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "创建备份账号",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Backup Account"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Create backup account",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/dto.BackupOperate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
2023-04-06 00:09:58 +08:00
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"formatEN": "create backup account [type]",
|
|
|
|
"formatZH": "创建备份账号 [type]",
|
|
|
|
"paramKeys": []
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/settings/backup/": {
|
2023-03-02 13:54:07 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "备份系统数据",
|
2023-03-02 13:54:07 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Backup Account"
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Backup system data",
|
2023-03-02 13:54:07 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/dto.CommonBackup"
|
2023-03-02 13:54:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-02 13:54:07 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"type",
|
|
|
|
"name",
|
2023-04-06 00:09:58 +08:00
|
|
|
"detailName"
|
2023-03-02 13:54:07 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"formatEN": "backup [type] data [name][detailName]",
|
|
|
|
"formatZH": "备份 [type] 数据 [name][detailName]",
|
2023-03-02 13:54:07 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/settings/backup/del": {
|
2023-03-02 13:54:07 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"description": "删除备份账号",
|
2023-03-02 13:54:07 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Backup Account"
|
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Delete backup account",
|
2023-03-02 13:54:07 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/dto.BatchDeleteReq"
|
2023-03-02 13:54:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "backup_accounts",
|
|
|
|
"input_colume": "id",
|
2023-04-17 16:06:28 +08:00
|
|
|
"input_value": "id",
|
2023-04-06 00:09:58 +08:00
|
|
|
"isList": true,
|
|
|
|
"output_colume": "type",
|
|
|
|
"output_value": "types"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
2023-04-17 16:06:28 +08:00
|
|
|
"id"
|
2023-04-06 00:09:58 +08:00
|
|
|
],
|
|
|
|
"formatEN": "delete backup account [types]",
|
|
|
|
"formatZH": "删除备份账号 [types]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/settings/backup/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/settings/backup/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"source",
|
|
|
|
"fileName"
|
|
|
|
],
|
|
|
|
"formatEN": "download backup records [source][fileName]",
|
|
|
|
"formatZH": "下载备份记录 [source][fileName]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/settings/backup/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/settings/backup/recover": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "恢复系统数据",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Backup Account"
|
|
|
|
],
|
|
|
|
"summary": "Recover system data",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.CommonRecover"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"type",
|
|
|
|
"name",
|
|
|
|
"detailName",
|
|
|
|
"file"
|
|
|
|
],
|
|
|
|
"formatEN": "recover [type] data [name][detailName] from [file]",
|
|
|
|
"formatZH": "从 [file] 恢复 [type] 数据 [name][detailName]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/settings/backup/recover/byupload": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "从上传恢复系统数据",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Backup Account"
|
|
|
|
],
|
|
|
|
"summary": "Recover system data by upload",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.CommonRecover"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-02 13:54:07 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"type",
|
|
|
|
"name",
|
|
|
|
"detailName",
|
|
|
|
"file"
|
|
|
|
],
|
|
|
|
"formatEN": "recover [type] data [name][detailName] from [file]",
|
|
|
|
"formatZH": "从 [file] 恢复 [type] 数据 [name][detailName]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/settings/backup/search": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取备份账号列表",
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Backup Account"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List backup accounts",
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"type": "anrry"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:13:55 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取 bucket 列表",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Backup Account"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List buckets",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.ForBuckets"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/settings/backup/search/files": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "获取备份账号内文件列表",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Backup Account"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "List files from backup accounts",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.BackupSearchFile"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "anrry"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"/settings/backup/update": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"description": "更新备份账号信息",
|
2023-01-05 11:57:03 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"Backup Account"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"summary": "Update backup account",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"$ref": "#/definitions/dto.BackupOperate"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
2023-02-13 17:13:55 +08:00
|
|
|
"BeforeFuntions": [],
|
2023-01-05 11:57:03 +08:00
|
|
|
"bodyKeys": [
|
2023-02-13 17:13:55 +08:00
|
|
|
"type"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-02-13 17:13:55 +08:00
|
|
|
"formatEN": "update backup account [types]",
|
|
|
|
"formatZH": "更新备份账号 [types]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-30 21:05:20 +08:00
|
|
|
"/settings/basedir": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取安装根目录",
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Load local backup dir",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [],
|
|
|
|
"formatEN": "update system password",
|
|
|
|
"formatZH": "修改系统密码",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-29 16:38:34 +08:00
|
|
|
"/settings/port/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新系统端口",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Update system port",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PortUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-29 16:38:34 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"serverPort"
|
|
|
|
],
|
|
|
|
"formatEN": "update system port =\u003e [serverPort]",
|
|
|
|
"formatZH": "修改系统端口 =\u003e [serverPort]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/settings/search": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "加载系统配置信息",
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Load system setting info",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SettingInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-01 16:15:31 +08:00
|
|
|
"/settings/search/available": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取系统可用状态",
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Load system available status",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-01 16:15:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"/settings/snapshot": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "创建系统快照",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
2023-02-13 15:48:18 +08:00
|
|
|
"summary": "Create system snapshot",
|
2023-01-09 22:55:10 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SnapshotCreate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
2023-01-29 16:38:34 +08:00
|
|
|
"from",
|
2023-01-09 22:55:10 +08:00
|
|
|
"description"
|
|
|
|
],
|
2023-01-29 16:38:34 +08:00
|
|
|
"formatEN": "Create system backup [description] to [from]",
|
|
|
|
"formatZH": "创建系统快照 [description] 到 [from]",
|
2023-01-09 22:55:10 +08:00
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 15:48:18 +08:00
|
|
|
"/settings/snapshot/description/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新快照描述信息",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Update snapshot description",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.UpdateDescription"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-13 15:48:18 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "snapshots",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "name",
|
|
|
|
"output_value": "name"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"id",
|
|
|
|
"description"
|
|
|
|
],
|
|
|
|
"formatEN": "The description of the snapshot [name] is modified =\u003e [description]",
|
|
|
|
"formatZH": "快照 [name] 描述信息修改 [description]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/settings/snapshot/import": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "导入已有快照",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Import system snapshot",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SnapshotImport"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-02-13 15:48:18 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"from",
|
|
|
|
"names"
|
|
|
|
],
|
|
|
|
"formatEN": "Sync system snapshots [names] from [from]",
|
|
|
|
"formatZH": "从 [from] 同步系统快照 [names]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-02-10 15:55:56 +08:00
|
|
|
"$ref": "#/definitions/dto.SearchWithPage"
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-26 22:18:16 +08:00
|
|
|
"/settings/ssl/info": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取证书信息",
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Load system cert info",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SettingInfo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/settings/ssl/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "修改系统 ssl 登录",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Update system ssl",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.SSLUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-26 22:18:16 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"ssl"
|
|
|
|
],
|
|
|
|
"formatEN": "update system ssl =\u003e [ssl]",
|
|
|
|
"formatZH": "修改系统 ssl =\u003e [ssl]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"/settings/time/option": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "加载系统可用时区",
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Load time zone options",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/settings/time/sync": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "系统时间同步",
|
2023-05-23 15:43:51 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Sync system time",
|
2023-05-23 15:43:51 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-05-24 15:43:21 +08:00
|
|
|
"$ref": "#/definitions/dto.SyncTime"
|
2023-05-23 15:43:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-01-05 11:57:03 +08:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
2023-05-23 15:43:51 +08:00
|
|
|
"bodyKeys": [
|
2023-05-24 15:43:21 +08:00
|
|
|
"ntpSite"
|
2023-05-23 15:43:51 +08:00
|
|
|
],
|
2023-05-24 15:43:21 +08:00
|
|
|
"formatEN": "sync system time [ntpSite]",
|
|
|
|
"formatZH": "系统时间同步[ntpSite]",
|
2023-01-05 11:57:03 +08:00
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"key",
|
|
|
|
"value"
|
|
|
|
],
|
|
|
|
"formatEN": "update system setting [key] =\u003e [value]",
|
|
|
|
"formatZH": "修改系统配置 [key] =\u003e [value]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"/settings/upgrade": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-03-21 15:16:28 +08:00
|
|
|
"description": "获取版本 release notes",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2023-01-09 22:55:10 +08:00
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
2023-03-21 15:16:28 +08:00
|
|
|
"summary": "Load release notes by version",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
2023-01-09 22:55:10 +08:00
|
|
|
"schema": {
|
2023-03-21 15:16:28 +08:00
|
|
|
"$ref": "#/definitions/dto.Upgrade"
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
|
|
|
}
|
2023-03-21 15:16:28 +08:00
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-21 15:16:28 +08:00
|
|
|
}
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
2023-01-30 21:05:20 +08:00
|
|
|
},
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "系统更新",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"System Setting"
|
|
|
|
],
|
|
|
|
"summary": "Upgrade",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.Upgrade"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-30 21:05:20 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"version"
|
|
|
|
],
|
|
|
|
"formatEN": "upgrade service =\u003e [version]",
|
|
|
|
"formatZH": "更新系统 =\u003e [version]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [],
|
|
|
|
"bodyKeys": [
|
|
|
|
"primaryDomain"
|
|
|
|
],
|
|
|
|
"formatEN": "Create website [primaryDomain]",
|
|
|
|
"formatZH": "创建网站 [primaryDomain]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/websites/:id": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "通过 id 查询网站",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
2023-04-06 00:09:58 +08:00
|
|
|
"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/config/:type": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "通过 id 查询网站 nginx",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website Nginx"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
2023-04-06 00:09:58 +08:00
|
|
|
"summary": "Search website nginx by id",
|
2023-01-05 11:57:03 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "request",
|
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
2023-04-06 00:09:58 +08:00
|
|
|
"$ref": "#/definitions/response.FileInfo"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/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/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
2023-03-02 13:54:07 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/dto.PageResult"
|
|
|
|
}
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-25 18:10:17 +08:00
|
|
|
"/websites/auths": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取密码访问配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Get AuthBasic conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.NginxAuthReq"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-25 18:10:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/websites/auths/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新密码访问配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Get AuthBasic conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.NginxAuthUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-25 18:10:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-17 13:57:41 +08:00
|
|
|
"/websites/dir/permission": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新网站目录权限",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Update Site Dir permission",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.WebsiteUpdateDirPermission"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-17 13:57:41 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "websites",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "primary_domain",
|
|
|
|
"output_value": "domain"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"formatEN": "Update domain [domain] dir permission",
|
|
|
|
"formatZH": "更新网站 [domain] 目录权限",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-17 16:54:34 +08:00
|
|
|
"/websites/dir/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新网站目录",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Update Site Dir",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.WebsiteUpdateDir"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-17 16:54:34 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "websites",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "primary_domain",
|
|
|
|
"output_value": "domain"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"formatEN": "Update domain [domain] dir",
|
|
|
|
"formatZH": "更新网站 [domain] 目录",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-12 14:48:30 +08:00
|
|
|
"/websites/php/config": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新 网站 PHP 配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website PHP"
|
|
|
|
],
|
|
|
|
"summary": "Update website php conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.WebsitePHPConfigUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-12 14:48:30 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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] PHP conf update",
|
|
|
|
"formatZH": "[domain] PHP 配置修改",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"/websites/php/config/:id": {
|
|
|
|
"get": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取网站 php 配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Load websit php conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": "request",
|
|
|
|
"name": "id",
|
|
|
|
"in": "path",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/response.PHPConfig"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/websites/php/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
2023-04-12 14:48:30 +08:00
|
|
|
"description": "更新 php 配置",
|
2023-04-06 00:09:58 +08:00
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website PHP"
|
|
|
|
],
|
2023-04-12 14:48:30 +08:00
|
|
|
"summary": "Update php conf",
|
2023-04-06 00:09:58 +08:00
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
2023-04-12 14:48:30 +08:00
|
|
|
"$ref": "#/definitions/request.WebsitePHPFileUpdate"
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "websites",
|
|
|
|
"input_colume": "id",
|
2023-04-12 14:48:30 +08:00
|
|
|
"input_value": "websiteId",
|
2023-04-06 00:09:58 +08:00
|
|
|
"isList": false,
|
|
|
|
"output_colume": "primary_domain",
|
|
|
|
"output_value": "domain"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
2023-04-12 14:48:30 +08:00
|
|
|
"websiteId"
|
2023-04-06 00:09:58 +08:00
|
|
|
],
|
2023-04-12 14:48:30 +08:00
|
|
|
"formatEN": "Nginx conf update [domain]",
|
|
|
|
"formatZH": "php 配置修改 [domain]",
|
2023-04-06 00:09:58 +08:00
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-24 17:50:39 +08:00
|
|
|
"/websites/proxies": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取反向代理配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Get proxy conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.WebsiteProxyReq"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-24 17:50:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/websites/proxies/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "修改反向代理配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Update proxy conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.WebsiteProxyConfig"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-24 17:50:39 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"x-panel-log": {
|
|
|
|
"BeforeFuntions": [
|
|
|
|
{
|
|
|
|
"db": "websites",
|
|
|
|
"input_colume": "id",
|
|
|
|
"input_value": "id",
|
|
|
|
"isList": false,
|
|
|
|
"output_colume": "primary_domain",
|
|
|
|
"output_value": "domain"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bodyKeys": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"formatEN": "Update domain [domain] proxy config",
|
|
|
|
"formatZH": "修改网站 [domain] 反向代理配置 ",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/websites/proxy/file": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新反向代理文件",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Update proxy file",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.NginxProxyUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-24 17:50:39 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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 proxy file update [domain]",
|
|
|
|
"formatZH": "更新反向代理文件 [domain]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-14 16:01:06 +08:00
|
|
|
"/websites/rewrite": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "获取伪静态配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Get rewrite conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.NginxRewriteReq"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-14 16:01:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/websites/rewrite/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新伪静态配置",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website"
|
|
|
|
],
|
|
|
|
"summary": "Update rewrite conf",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.NginxRewriteUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-04-14 16:01:06 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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 rewrite update [domain]",
|
|
|
|
"formatZH": "伪静态配置修改 [domain]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-21 14:42:50 +08:00
|
|
|
"/websites/ssl/update": {
|
|
|
|
"post": {
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"ApiKeyAuth": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"description": "更新 ssl",
|
|
|
|
"consumes": [
|
|
|
|
"application/json"
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
"Website SSL"
|
|
|
|
],
|
|
|
|
"summary": "Update ssl",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"description": "request",
|
|
|
|
"name": "request",
|
|
|
|
"in": "body",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"$ref": "#/definitions/request.WebsiteSSLUpdate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-03-21 14:42:50 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": "Update ssl config [domain]",
|
|
|
|
"formatZH": "更新证书设置 [domain]",
|
|
|
|
"paramKeys": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"/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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"description": ""
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-03-30 16:07:28 +08:00
|
|
|
"dto.AddrRuleOperate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"address",
|
|
|
|
"operation",
|
|
|
|
"strategy"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"address": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"operation": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"add",
|
|
|
|
"remove"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"strategy": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"accept",
|
|
|
|
"drop"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.AddrRuleUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"newRule": {
|
|
|
|
"$ref": "#/definitions/dto.AddrRuleOperate"
|
|
|
|
},
|
|
|
|
"oldRule": {
|
|
|
|
"$ref": "#/definitions/dto.AddrRuleOperate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 15:48:18 +08:00
|
|
|
"dto.BackupSearchFile": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-30 16:07:28 +08:00
|
|
|
"dto.BatchRuleOperate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"rules": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/dto.PortRuleOperate"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.CaptchaResponse": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"captchaID": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"imagePath": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.ChangeDBInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"value"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-02 13:54:07 +08:00
|
|
|
"dto.ChangeHostGroup": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-03-06 17:18:13 +08:00
|
|
|
"groupID",
|
2023-03-02 13:54:07 +08:00
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
2023-03-06 17:18:13 +08:00
|
|
|
"groupID": {
|
|
|
|
"type": "integer"
|
2023-03-02 13:54:07 +08:00
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-02 13:54:07 +08:00
|
|
|
"dto.CommonBackup": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"detailName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"app",
|
|
|
|
"mysql",
|
|
|
|
"redis",
|
|
|
|
"website"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.CommonRecover": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-05-18 13:56:08 +08:00
|
|
|
"source",
|
2023-03-02 13:54:07 +08:00
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"detailName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"file": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"source": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"OSS",
|
|
|
|
"S3",
|
|
|
|
"SFTP",
|
|
|
|
"MINIO",
|
|
|
|
"LOCAL",
|
|
|
|
"COS",
|
|
|
|
"KODO"
|
|
|
|
]
|
|
|
|
},
|
2023-03-02 13:54:07 +08:00
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"app",
|
|
|
|
"mysql",
|
|
|
|
"redis",
|
|
|
|
"website"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.ComposeCreate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-03-18 10:03:40 +08:00
|
|
|
"from"
|
2023-01-05 11:57:03 +08:00
|
|
|
],
|
|
|
|
"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"
|
2023-04-27 22:44:16 +08:00
|
|
|
},
|
|
|
|
"withFile": {
|
|
|
|
"type": "boolean"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-23 19:00:06 +08:00
|
|
|
"dto.ContainerPrune": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"pruneType"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"pruneType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"container",
|
|
|
|
"image",
|
|
|
|
"volume",
|
|
|
|
"network"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"withTagAll": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.ContainerPruneReport": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"deletedNumber": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"spaceReclaimed": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-12 14:48:30 +08:00
|
|
|
"dto.CronjobBatchDelete": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"cleanData": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"ids": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.CronjobClean": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"cronjobID"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"cleanData": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"cronjobID": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.CronjobCreate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"specType",
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"day": {
|
2023-03-18 10:03:40 +08:00
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"dbName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"exclusionRules": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"hour": {
|
2023-03-18 10:03:40 +08:00
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"keepLocal": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"minute": {
|
2023-03-18 10:03:40 +08:00
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"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": {
|
2023-03-18 10:03:40 +08:00
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"dbName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"exclusionRules": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"hour": {
|
2023-03-18 10:03:40 +08:00
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"keepLocal": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"minute": {
|
2023-03-18 10:03:40 +08:00
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"iptables": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isSwarm": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"liveRestore": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"logMaxFile": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"logMaxSize": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"registryMirrors": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
2023-01-09 22:55:10 +08:00
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.DaemonJsonUpdateByFile": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"file": {
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
"hostname": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"kernelArch": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"kernelVersion": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
},
|
2023-03-29 21:50:08 +08:00
|
|
|
"diskData": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/dto.DiskInfo"
|
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"ioCount": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"ioReadBytes": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-03-29 20:56:13 +08:00
|
|
|
"ioReadTime": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"ioWriteBytes": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-03-29 20:56:13 +08:00
|
|
|
"ioWriteTime": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
},
|
2023-03-29 21:50:08 +08:00
|
|
|
"uptime": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "integer"
|
2023-03-29 21:50:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.DiskInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"device": {
|
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
2023-03-29 21:50:08 +08:00
|
|
|
"free": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"inodesFree": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"inodesTotal": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-03-29 21:50:08 +08:00
|
|
|
"inodesUsed": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"inodesUsedPercent": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"total": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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",
|
2023-04-07 12:02:10 +08:00
|
|
|
"LOCAL",
|
|
|
|
"COS",
|
|
|
|
"KODO"
|
2023-01-05 11:57:03 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.FilePath": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-30 16:07:28 +08:00
|
|
|
"dto.FirewallBaseInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-07 12:02:10 +08:00
|
|
|
"pingStatus": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-30 16:07:28 +08:00
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.FirewallOperation": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"operation"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"operation": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"start",
|
|
|
|
"stop",
|
2023-04-07 12:02:10 +08:00
|
|
|
"disablePing",
|
|
|
|
"enablePing"
|
2023-03-30 16:07:28 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.ForBuckets": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"credential",
|
|
|
|
"type",
|
|
|
|
"vars"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"accessKey": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"credential": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"vars": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"dto.GenerateLoad": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"encryptionMode"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"encryptionMode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"rsa",
|
|
|
|
"ed25519",
|
|
|
|
"ecdsa",
|
|
|
|
"dsa"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.GenerateSSH": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"encryptionMode"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"encryptionMode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"rsa",
|
|
|
|
"ed25519",
|
|
|
|
"ecdsa",
|
|
|
|
"dsa"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-06 17:18:13 +08:00
|
|
|
"dto.GroupCreate": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-06 17:18:13 +08:00
|
|
|
"dto.GroupUpdate": {
|
|
|
|
"type": "object",
|
2023-03-29 11:46:14 +08:00
|
|
|
"required": [
|
|
|
|
"type"
|
|
|
|
],
|
2023-03-06 17:18:13 +08:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"isDefault": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-03-29 11:46:14 +08:00
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
2023-03-06 17:18:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.HostConnTest": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"addr",
|
|
|
|
"port",
|
|
|
|
"user"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"addr": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"authMode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"password",
|
|
|
|
"key"
|
|
|
|
]
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"passPhrase": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
},
|
2023-03-06 17:18:13 +08:00
|
|
|
"groupID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"passPhrase": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"port": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"privateKey": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"rememberPassword": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"user": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.HostOperate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"addr",
|
|
|
|
"port",
|
|
|
|
"user"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"addr": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"authMode": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"password",
|
|
|
|
"key"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-06 17:18:13 +08:00
|
|
|
"groupID": {
|
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"passPhrase": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"type": "integer",
|
|
|
|
"maximum": 65535,
|
|
|
|
"minimum": 1
|
|
|
|
},
|
|
|
|
"privateKey": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"rememberPassword": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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.ImageRepoDelete": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"ids"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"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.InspectReq": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.Login": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"authMethod": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"captcha": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"captchaID": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-30 23:58:24 +08:00
|
|
|
"ignoreCaptcha": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.MFALogin": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"authMethod": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"code": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"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.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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"dto.Operate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"operation"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"operation": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.OperateByID": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"dto.OperationWithName": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.PageContainer": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"filters": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-07 18:48:32 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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": {
|
2023-04-26 22:18:16 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"hostIP": {
|
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"hostPort": {
|
2023-04-26 22:18:16 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"protocol": {
|
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-30 16:07:28 +08:00
|
|
|
"dto.PortRuleOperate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"operation",
|
|
|
|
"port",
|
|
|
|
"protocol",
|
|
|
|
"strategy"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"address": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"operation": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"add",
|
|
|
|
"remove"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"protocol": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"tcp",
|
|
|
|
"udp",
|
|
|
|
"tcp/udp"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"strategy": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"accept",
|
|
|
|
"drop"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.PortRuleUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"newRule": {
|
|
|
|
"$ref": "#/definitions/dto.PortRuleOperate"
|
|
|
|
},
|
|
|
|
"oldRule": {
|
|
|
|
"$ref": "#/definitions/dto.PortRuleOperate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-29 16:38:34 +08:00
|
|
|
"dto.PortUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"serverPort"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"serverPort": {
|
|
|
|
"type": "integer",
|
|
|
|
"maximum": 65535,
|
|
|
|
"minimum": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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.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": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"type"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"appendfsync": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"dto.SSHConf": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"file": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.SSHHistory": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"address": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"authMode": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"date": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"dateStr": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isLocal": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"message": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.SSHInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"listenAddress": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"passwordAuthentication": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"permitRootLogin": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"pubkeyAuthentication": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"useDNS": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.SSHLog": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"failedCount": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"logs": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/dto.SSHHistory"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"successfulCount": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"totalCount": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-26 22:18:16 +08:00
|
|
|
"dto.SSLUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"ssl"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"cert": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"domain": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"ssl": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"enable",
|
|
|
|
"disable"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sslID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"sslType": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.SearchForTree": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"info": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-02 13:54:07 +08:00
|
|
|
"dto.SearchHostWithPage": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
2023-03-06 17:18:13 +08:00
|
|
|
"groupID": {
|
|
|
|
"type": "integer"
|
2023-03-02 13:54:07 +08:00
|
|
|
},
|
|
|
|
"info": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-07 18:48:32 +08:00
|
|
|
"dto.SearchLgLogWithPage": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"ip": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.SearchOpLogWithPage": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"operation": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"source": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"dto.SearchSSHLog": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"Status",
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"Status": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"Success",
|
|
|
|
"Failed",
|
|
|
|
"All"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"info": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.SearchWithPage": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"info": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.SettingInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-05-23 15:43:51 +08:00
|
|
|
"allowIPs": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"appStoreLastModified": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-13 17:13:55 +08:00
|
|
|
"appStoreVersion": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"bindDomain": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"ntpSite": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"panelName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-29 16:38:34 +08:00
|
|
|
"port": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"securityEntrance": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"serverPort": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sessionTimeout": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-26 22:18:16 +08:00
|
|
|
"ssl": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sslType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"systemVersion": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"theme": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"timeZone": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"userName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"weChatVars": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dto.SettingUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"key"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"dto.SnapshotCreate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"from"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"description": {
|
2023-05-05 11:56:52 +08:00
|
|
|
"type": "string",
|
|
|
|
"maxLength": 256
|
2023-01-09 22:55:10 +08:00
|
|
|
},
|
|
|
|
"from": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"OSS",
|
|
|
|
"S3",
|
|
|
|
"SFTP",
|
2023-04-07 12:02:10 +08:00
|
|
|
"MINIO",
|
|
|
|
"COS",
|
|
|
|
"KODO"
|
2023-01-09 22:55:10 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 15:48:18 +08:00
|
|
|
"dto.SnapshotImport": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"description": {
|
2023-05-05 11:56:52 +08:00
|
|
|
"type": "string",
|
|
|
|
"maxLength": 256
|
2023-02-13 15:48:18 +08:00
|
|
|
},
|
|
|
|
"from": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"names": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"dto.SnapshotRecover": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"isNew": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"reDownload": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-24 15:43:21 +08:00
|
|
|
"dto.SyncTime": {
|
2023-05-23 15:43:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"ntpSite": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-13 15:48:18 +08:00
|
|
|
"dto.UpdateDescription": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"description": {
|
2023-05-05 11:56:52 +08:00
|
|
|
"type": "string",
|
|
|
|
"maxLength": 256
|
2023-02-13 15:48:18 +08:00
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-30 21:05:20 +08:00
|
|
|
"dto.Upgrade": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"dto.UpgradeInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-21 15:16:28 +08:00
|
|
|
"latestVersion": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-09 22:55:10 +08:00
|
|
|
"newVersion": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"releaseNote": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.UserLoginInfo": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"mfaStatus": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"token": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.VolumeCreat": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"driver": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"labels": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"options": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dto.VolumeHelper": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"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": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/files.FileInfo"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"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"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"mfa.Otp": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"qrImage": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"secret": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"model.App": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"crossVersionUpdate": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-02-01 16:15:31 +08:00
|
|
|
"document": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"github": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"icon": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"lastModified": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"readMe": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-10 15:55:56 +08:00
|
|
|
"recommend": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"resource": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"shortDescEn": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"shortDescZh": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
2023-02-01 16:15:31 +08:00
|
|
|
},
|
|
|
|
"website": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"model.AppInstall": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"app": {
|
|
|
|
"$ref": "#/definitions/model.App"
|
|
|
|
},
|
|
|
|
"appDetailId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"appId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"containerName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"dockerCompose": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"env": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"httpPort": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"httpsPort": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"message": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"param": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"serviceName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"model.Tag": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"createdAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"model.Website": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
},
|
2023-04-17 13:57:41 +08:00
|
|
|
"group": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"httpConfig": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"primaryDomain": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"protocol": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"proxy": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-14 16:01:06 +08:00
|
|
|
"proxyType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"remark": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-14 16:01:06 +08:00
|
|
|
"rewrite": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"runtimeID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-04-17 16:54:34 +08:00
|
|
|
"siteDir": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"status": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"updatedAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
2023-04-17 13:57:41 +08:00
|
|
|
"user": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"webSiteGroupId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"webSiteSSL": {
|
|
|
|
"$ref": "#/definitions/model.WebsiteSSL"
|
|
|
|
},
|
|
|
|
"webSiteSSLId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"model.WebsiteAcmeAccount": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"createdAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"email": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"url": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"model.WebsiteDomain": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"createdAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"domain": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"websiteId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"model.WebsiteSSL": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"acmeAccount": {
|
|
|
|
"$ref": "#/definitions/model.WebsiteAcmeAccount"
|
|
|
|
},
|
|
|
|
"acmeAccountId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"autoRenew": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"certURL": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dnsAccountId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"domains": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"expireDate": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"organization": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"pem": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"primaryDomain": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"privateKey": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"provider": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"startDate": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"websites": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"$ref": "#/definitions/model.Website"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.AppInstallCreate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"appDetailId",
|
|
|
|
"name"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-05-18 13:56:08 +08:00
|
|
|
"advanced": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"allowPort": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"appDetailId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"containerName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"cpuQuota": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"dockerCompose": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"editCompose": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"memoryLimit": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"memoryUnit": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"params": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": true
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"services": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.AppInstalledOperate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"installId",
|
|
|
|
"operate"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"backupId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"deleteBackup": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-03-08 15:33:43 +08:00
|
|
|
"deleteDB": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"detailId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"forceDelete": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"installId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"operate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.AppInstalledSearch": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"page",
|
|
|
|
"pageSize"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-02-01 16:15:31 +08:00
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-02-01 16:15:31 +08:00
|
|
|
},
|
|
|
|
"unused": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"update": {
|
|
|
|
"type": "boolean"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"request.AppInstalledUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"installId",
|
|
|
|
"params"
|
|
|
|
],
|
|
|
|
"properties": {
|
2023-05-18 13:56:08 +08:00
|
|
|
"advanced": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"allowPort": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"containerName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"cpuQuota": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"dockerCompose": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"editCompose": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"installId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"memoryLimit": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"memoryUnit": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"params": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.AppSearch": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"page": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-02-10 15:55:56 +08:00
|
|
|
"recommend": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"tags": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.DirSizeReq": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"path"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.FileBatchDelete": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"paths"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"isDir": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"paths": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileCompress": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"dst",
|
|
|
|
"files",
|
2023-01-04 22:31:51 +08:00
|
|
|
"name",
|
2023-01-05 11:57:03 +08:00
|
|
|
"type"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"dst": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"files": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"replace": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.FileCreate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"mode",
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"content": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"isDir": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"isLink": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"isSymlink": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"linkPath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"mode": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"path": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-04-27 22:44:16 +08:00
|
|
|
},
|
|
|
|
"sub": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileDeCompress": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"dst",
|
|
|
|
"path",
|
|
|
|
"type"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"dst": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileDelete": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"path"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"isDir": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"path": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileDownload": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
2023-03-08 15:33:43 +08:00
|
|
|
"compress",
|
2023-01-05 11:57:03 +08:00
|
|
|
"name",
|
|
|
|
"paths",
|
|
|
|
"type"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-03-08 15:33:43 +08:00
|
|
|
"compress": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"paths": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileEdit": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"content",
|
2023-01-04 22:31:51 +08:00
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"content": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileMove": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"newPath",
|
|
|
|
"oldPaths",
|
|
|
|
"type"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"newPath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"oldPaths": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileOption": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-02-07 18:48:32 +08:00
|
|
|
"containSub": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dir": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"expand": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"path": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"search": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"showHidden": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-08 15:33:43 +08:00
|
|
|
"request.FilePathCheck": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileRename": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"newName",
|
|
|
|
"oldName"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"newName": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"oldName": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-26 22:18:16 +08:00
|
|
|
"request.FileRoleUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"group",
|
|
|
|
"path",
|
|
|
|
"sub",
|
|
|
|
"user"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"group": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"sub": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.FileWget": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"name",
|
|
|
|
"path",
|
|
|
|
"url"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"path": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"url": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.NewAppInstall": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-05-18 13:56:08 +08:00
|
|
|
"advanced": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"allowPort": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"appDetailID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"containerName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"cpuQuota": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"dockerCompose": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"editCompose": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"memoryLimit": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"memoryUnit": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"params": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": true
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-25 18:10:17 +08:00
|
|
|
"request.NginxAuthReq": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"websiteID"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"websiteID": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.NginxAuthUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"operate",
|
|
|
|
"password",
|
|
|
|
"username",
|
|
|
|
"websiteID"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"operate": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"password": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"remark": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"username": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"websiteID": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.NginxConfigFileUpdate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"backup",
|
|
|
|
"content",
|
|
|
|
"filePath"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"backup": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"content": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"filePath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.NginxConfigUpdate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"websiteId"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"operate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"params": {},
|
|
|
|
"scope": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"websiteId": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-24 17:50:39 +08:00
|
|
|
"request.NginxProxyUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"content",
|
|
|
|
"name",
|
|
|
|
"websiteID"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"content": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"websiteID": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-14 16:01:06 +08:00
|
|
|
"request.NginxRewriteReq": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"websiteId"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"websiteId": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.NginxRewriteUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"content",
|
|
|
|
"name",
|
|
|
|
"websiteId"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"content": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"websiteId": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.NginxScopeReq": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"scope"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"scope": {
|
2023-04-27 22:44:16 +08:00
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"websiteId": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.PortUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"port": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"request.RuntimeCreate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"appDetailId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"image": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"params": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": true
|
|
|
|
},
|
|
|
|
"resource": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.RuntimeDelete": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.RuntimeSearch": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.RuntimeUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"image": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"params": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": true
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-02 13:54:07 +08:00
|
|
|
"request.SearchUploadWithPage": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize",
|
|
|
|
"path"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"path": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteAcmeAccountCreate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"email"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.WebsiteCreate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"alias",
|
|
|
|
"primaryDomain",
|
|
|
|
"type",
|
|
|
|
"webSiteGroupID"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"alias": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"appID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"appInstall": {
|
|
|
|
"$ref": "#/definitions/request.NewAppInstall"
|
|
|
|
},
|
|
|
|
"appInstallID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"appType": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"new",
|
|
|
|
"installed"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"otherDomains": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"port": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"primaryDomain": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"proxy": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"proxyType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"remark": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"runtimeID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"webSiteGroupID": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteDNSReq": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"acmeAccountId",
|
|
|
|
"domains"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"acmeAccountId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"domains": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteDefaultUpdate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteDelete": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"id"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"deleteApp": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"deleteBackup": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"forceDelete": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteDnsAccountCreate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"authorization",
|
|
|
|
"name",
|
|
|
|
"type"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"authorization": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteDnsAccountUpdate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"authorization",
|
|
|
|
"id",
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"authorization": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"id": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteDomainCreate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"domain",
|
|
|
|
"port",
|
|
|
|
"websiteId"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"domain": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"port": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"websiteId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteDomainDelete": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"id"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteHTTPSOp": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"enable",
|
|
|
|
"websiteId"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"HttpConfig": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"HTTPSOnly",
|
|
|
|
"HTTPAlso",
|
|
|
|
"HTTPToHTTPS"
|
|
|
|
]
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"SSLProtocol": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"algorithm": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"certificate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"privateKey": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"existed",
|
|
|
|
"auto",
|
|
|
|
"manual"
|
|
|
|
]
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"websiteId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"websiteSSLId": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.WebsiteInstallCheckReq": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"InstallIds"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"InstallIds": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteLogReq": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"logType",
|
|
|
|
"operate"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"logType": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"operate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.WebsiteNginxUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"content",
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"content": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.WebsiteOp": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"operate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"request.WebsitePHPConfigUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"params"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"params": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-12 14:48:30 +08:00
|
|
|
"request.WebsitePHPFileUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"content",
|
|
|
|
"id",
|
|
|
|
"type"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"content": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-24 17:50:39 +08:00
|
|
|
"request.WebsiteProxyConfig": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"cache",
|
|
|
|
"cacheTime",
|
|
|
|
"cacheUnit",
|
|
|
|
"enable",
|
|
|
|
"id",
|
|
|
|
"match",
|
|
|
|
"modifier",
|
|
|
|
"name",
|
|
|
|
"operate",
|
|
|
|
"proxyHost",
|
|
|
|
"proxyPass"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"cache": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"cacheTime": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"cacheUnit": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"content": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"filePath": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"match": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"modifier": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"operate": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"proxyHost": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"proxyPass": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"replaces": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"request.WebsiteProxyReq": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteResourceReq": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"id"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteSSLCreate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"acmeAccountId",
|
|
|
|
"autoRenew",
|
|
|
|
"primaryDomain",
|
|
|
|
"provider"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"acmeAccountId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"autoRenew": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"dnsAccountId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"otherDomains": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"primaryDomain": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"provider": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteSSLRenew": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"SSLId"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"SSLId": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteSSLSearch": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-03-21 14:42:50 +08:00
|
|
|
"request.WebsiteSSLUpdate": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"autoRenew",
|
|
|
|
"id"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"autoRenew": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteSearch": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"page",
|
|
|
|
"pageSize"
|
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"page": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"pageSize": {
|
|
|
|
"type": "integer"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"websiteGroupId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteUpdate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"primaryDomain",
|
|
|
|
"webSiteGroupID"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"expireDate": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"primaryDomain": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"remark": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"webSiteGroupID": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-17 16:54:34 +08:00
|
|
|
"request.WebsiteUpdateDir": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"siteDir"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"siteDir": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-17 13:57:41 +08:00
|
|
|
"request.WebsiteUpdateDirPermission": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"group",
|
|
|
|
"id",
|
|
|
|
"user"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"group": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteWafReq": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": [
|
|
|
|
"key",
|
|
|
|
"rule",
|
|
|
|
"websiteId"
|
|
|
|
],
|
2023-01-04 22:31:51 +08:00
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"key": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"rule": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"websiteId": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"request.WebsiteWafUpdate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"required": [
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable",
|
|
|
|
"key",
|
|
|
|
"websiteId"
|
2023-01-04 22:31:51 +08:00
|
|
|
],
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"websiteId": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response.AppDTO": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"crossVersionUpdate": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-02-01 16:15:31 +08:00
|
|
|
"document": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"github": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"icon": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"installed": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"lastModified": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"limit": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"readMe": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-10 15:55:56 +08:00
|
|
|
"recommend": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"required": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"resource": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-02-27 11:46:23 +08:00
|
|
|
"shortDescEn": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"shortDescZh": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"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"
|
|
|
|
}
|
2023-02-01 16:15:31 +08:00
|
|
|
},
|
|
|
|
"website": {
|
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response.AppDetailDTO": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"appId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-23 15:43:51 +08:00
|
|
|
"dockerCompose": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"downloadCallBackUrl": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"downloadUrl": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"image": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"lastModified": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"lastVersion": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"params": {},
|
|
|
|
"status": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-18 13:56:08 +08:00
|
|
|
"update": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"updatedAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response.AppInstalledCheck": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"app": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"appInstallId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"containerName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"createdAt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"installPath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"isExist": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"lastBackupAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"status": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"version": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.AppParam": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-18 10:03:40 +08:00
|
|
|
"edit": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"labelEn": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"labelZh": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"multiple": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"required": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"rule": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-22 15:38:30 +08:00
|
|
|
"showValue": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-03-22 15:38:30 +08:00
|
|
|
"value": {},
|
|
|
|
"values": {}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.FileInfo": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"content": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"extension": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"group": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"isDir": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"isHidden": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"isSymlink": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"itemTotal": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"items": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/files.FileInfo"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"linkPath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"mimeType": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"modTime": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"mode": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"path": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"size": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"updateTime": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"user": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.NginxParam": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"name": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"params": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.NginxStatus": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"accepts": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"active": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"handled": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"reading": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"requests": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"waiting": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"writing": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"response.PHPConfig": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"params": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.WebsiteAcmeAccountDTO": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"createdAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"email": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"updatedAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"url": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response.WebsiteDTO": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"accessLog": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"accessLogPath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"alias": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"appInstallId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-03-18 10:03:40 +08:00
|
|
|
"appName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"createdAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"defaultServer": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"domains": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/model.WebsiteDomain"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"errorLog": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"errorLogPath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"expireDate": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-17 13:57:41 +08:00
|
|
|
"group": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"httpConfig": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"id": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"primaryDomain": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"protocol": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
|
|
|
"proxy": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-14 16:01:06 +08:00
|
|
|
"proxyType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"remark": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-04-14 16:01:06 +08:00
|
|
|
"rewrite": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-06 00:09:58 +08:00
|
|
|
"runtimeID": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
2023-04-11 10:26:25 +08:00
|
|
|
"runtimeName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-04-17 16:54:34 +08:00
|
|
|
"siteDir": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"sitePath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"status": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"type": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"updatedAt": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
2023-01-05 11:57:03 +08:00
|
|
|
},
|
2023-04-17 13:57:41 +08:00
|
|
|
"user": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"webSiteGroupId": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"webSiteSSL": {
|
|
|
|
"$ref": "#/definitions/model.WebsiteSSL"
|
|
|
|
},
|
|
|
|
"webSiteSSLId": {
|
|
|
|
"type": "integer"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.WebsiteHTTPS": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"SSL": {
|
|
|
|
"$ref": "#/definitions/model.WebsiteSSL"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"SSLProtocol": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"algorithm": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"httpConfig": {
|
|
|
|
"type": "string"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.WebsiteLog": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"content": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.WebsiteNginxConfig": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"params": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"$ref": "#/definitions/response.NginxParam"
|
|
|
|
}
|
2023-01-04 22:31:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"response.WebsiteWafConfig": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-01-05 11:57:03 +08:00
|
|
|
"content": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"enable": {
|
|
|
|
"type": "boolean"
|
2023-01-04 22:31:51 +08:00
|
|
|
},
|
2023-01-05 11:57:03 +08:00
|
|
|
"filePath": {
|
2023-01-04 22:31:51 +08:00
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-12-14 19:39:32 +08:00
|
|
|
}
|