2022-12-14 19:39:32 +08:00
|
|
|
basePath: /api/v1
|
2023-01-04 22:31:51 +08:00
|
|
|
definitions:
|
2023-03-30 16:07:28 +08:00
|
|
|
dto.AddrRuleOperate:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
2023-08-15 22:48:11 +08:00
|
|
|
description:
|
|
|
|
type: string
|
2023-03-30 16:07:28 +08:00
|
|
|
operation:
|
|
|
|
enum:
|
|
|
|
- add
|
|
|
|
- remove
|
|
|
|
type: string
|
|
|
|
strategy:
|
|
|
|
enum:
|
|
|
|
- accept
|
|
|
|
- drop
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- address
|
|
|
|
- operation
|
|
|
|
- strategy
|
|
|
|
type: object
|
|
|
|
dto.AddrRuleUpdate:
|
|
|
|
properties:
|
|
|
|
newRule:
|
|
|
|
$ref: '#/definitions/dto.AddrRuleOperate'
|
|
|
|
oldRule:
|
|
|
|
$ref: '#/definitions/dto.AddrRuleOperate'
|
|
|
|
type: object
|
2023-08-23 22:44:14 +08:00
|
|
|
dto.AppInstallInfo:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.AppResource:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.AppVersion:
|
|
|
|
properties:
|
|
|
|
detailId:
|
|
|
|
type: integer
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.BackupInfo:
|
|
|
|
properties:
|
|
|
|
backupPath:
|
|
|
|
type: string
|
|
|
|
bucket:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
vars:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.BackupOperate:
|
|
|
|
properties:
|
|
|
|
accessKey:
|
|
|
|
type: string
|
2023-06-28 14:50:10 +08:00
|
|
|
backupPath:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
bucket:
|
|
|
|
type: string
|
|
|
|
credential:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
vars:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
- vars
|
|
|
|
type: object
|
2023-02-13 15:48:18 +08:00
|
|
|
dto.BackupSearchFile:
|
|
|
|
properties:
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.BatchDelete:
|
|
|
|
properties:
|
|
|
|
names:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
required:
|
|
|
|
- names
|
|
|
|
type: object
|
|
|
|
dto.BatchDeleteReq:
|
|
|
|
properties:
|
|
|
|
ids:
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
type: array
|
|
|
|
required:
|
|
|
|
- ids
|
|
|
|
type: object
|
2023-03-30 16:07:28 +08:00
|
|
|
dto.BatchRuleOperate:
|
|
|
|
properties:
|
|
|
|
rules:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.PortRuleOperate'
|
|
|
|
type: array
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.CaptchaResponse:
|
|
|
|
properties:
|
|
|
|
captchaID:
|
|
|
|
type: string
|
|
|
|
imagePath:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.ChangeDBInfo:
|
|
|
|
properties:
|
2023-09-16 13:16:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
2023-07-24 14:55:26 +08:00
|
|
|
from:
|
2023-08-29 10:50:15 +08:00
|
|
|
enum:
|
|
|
|
- local
|
|
|
|
- remote
|
2023-07-24 14:55:26 +08:00
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
2023-08-29 10:50:15 +08:00
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- mysql
|
|
|
|
- mariadb
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
required:
|
2023-09-16 13:16:15 +08:00
|
|
|
- database
|
2023-08-29 10:50:15 +08:00
|
|
|
- from
|
|
|
|
- type
|
2023-01-04 22:31:51 +08:00
|
|
|
- value
|
|
|
|
type: object
|
2023-03-02 13:54:07 +08:00
|
|
|
dto.ChangeHostGroup:
|
|
|
|
properties:
|
2023-03-06 17:18:13 +08:00
|
|
|
groupID:
|
|
|
|
type: integer
|
2023-03-02 13:54:07 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
2023-03-06 17:18:13 +08:00
|
|
|
- groupID
|
2023-03-02 13:54:07 +08:00
|
|
|
- id
|
|
|
|
type: object
|
2023-09-13 14:10:11 +08:00
|
|
|
dto.ChangeRedisPass:
|
|
|
|
properties:
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- value
|
|
|
|
type: object
|
2023-09-28 15:40:17 +08:00
|
|
|
dto.Clean:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
size:
|
|
|
|
type: integer
|
|
|
|
treeType:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.CleanLog:
|
|
|
|
properties:
|
|
|
|
logType:
|
|
|
|
enum:
|
|
|
|
- login
|
|
|
|
- operation
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- logType
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.CommandInfo:
|
|
|
|
properties:
|
|
|
|
command:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.CommandOperate:
|
|
|
|
properties:
|
|
|
|
command:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- command
|
|
|
|
- name
|
|
|
|
type: object
|
2023-03-02 13:54:07 +08:00
|
|
|
dto.CommonBackup:
|
|
|
|
properties:
|
|
|
|
detailName:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- app
|
|
|
|
- mysql
|
2023-08-29 10:50:15 +08:00
|
|
|
- mariadb
|
2023-03-02 13:54:07 +08:00
|
|
|
- redis
|
|
|
|
- website
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
dto.CommonRecover:
|
|
|
|
properties:
|
|
|
|
detailName:
|
|
|
|
type: string
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
2023-05-18 13:56:08 +08:00
|
|
|
source:
|
|
|
|
enum:
|
|
|
|
- OSS
|
|
|
|
- S3
|
|
|
|
- SFTP
|
|
|
|
- MINIO
|
|
|
|
- LOCAL
|
|
|
|
- COS
|
|
|
|
- KODO
|
2023-07-06 18:48:22 +08:00
|
|
|
- OneDrive
|
2023-05-18 13:56:08 +08:00
|
|
|
type: string
|
2023-03-02 13:54:07 +08:00
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- app
|
|
|
|
- mysql
|
2023-08-29 10:50:15 +08:00
|
|
|
- mariadb
|
2023-03-02 13:54:07 +08:00
|
|
|
- redis
|
|
|
|
- website
|
|
|
|
type: string
|
|
|
|
required:
|
2023-05-18 13:56:08 +08:00
|
|
|
- source
|
2023-03-02 13:54:07 +08:00
|
|
|
- type
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.ComposeCreate:
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
enum:
|
|
|
|
- edit
|
|
|
|
- path
|
|
|
|
- template
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
template:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- from
|
|
|
|
type: object
|
|
|
|
dto.ComposeOperation:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
operation:
|
|
|
|
enum:
|
|
|
|
- start
|
|
|
|
- stop
|
|
|
|
- down
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
2023-04-27 22:44:16 +08:00
|
|
|
withFile:
|
|
|
|
type: boolean
|
2023-01-04 22:31:51 +08:00
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- operation
|
|
|
|
- path
|
|
|
|
type: object
|
|
|
|
dto.ComposeTemplateCreate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.ComposeTemplateInfo:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.ComposeTemplateUpdate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
type: object
|
|
|
|
dto.ComposeUpdate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- name
|
|
|
|
- path
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.ContainerListStats:
|
|
|
|
properties:
|
|
|
|
containerID:
|
|
|
|
type: string
|
|
|
|
cpuPercent:
|
|
|
|
type: number
|
2023-09-25 17:50:14 +08:00
|
|
|
cpuTotalUsage:
|
|
|
|
type: integer
|
|
|
|
memoryCache:
|
|
|
|
type: integer
|
|
|
|
memoryLimit:
|
|
|
|
type: integer
|
2023-07-06 18:04:22 +08:00
|
|
|
memoryPercent:
|
|
|
|
type: number
|
2023-09-25 17:50:14 +08:00
|
|
|
memoryUsage:
|
|
|
|
type: integer
|
|
|
|
percpuUsage:
|
|
|
|
type: integer
|
|
|
|
systemUsage:
|
|
|
|
type: integer
|
2023-07-06 18:04:22 +08:00
|
|
|
type: object
|
2023-06-15 11:00:11 +08:00
|
|
|
dto.ContainerOperate:
|
2023-01-04 22:31:51 +08:00
|
|
|
properties:
|
|
|
|
autoRemove:
|
|
|
|
type: boolean
|
|
|
|
cmd:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-07-06 18:04:22 +08:00
|
|
|
containerID:
|
|
|
|
type: string
|
2023-06-16 17:54:11 +08:00
|
|
|
cpuShares:
|
2023-06-15 11:00:11 +08:00
|
|
|
type: integer
|
2023-09-11 18:28:19 +08:00
|
|
|
entrypoint:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-01-04 22:31:51 +08:00
|
|
|
env:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
exposedPorts:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.PortHelper'
|
|
|
|
type: array
|
2023-07-13 14:17:18 +08:00
|
|
|
forcePull:
|
|
|
|
type: boolean
|
2023-01-04 22:31:51 +08:00
|
|
|
image:
|
|
|
|
type: string
|
|
|
|
labels:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
memory:
|
2023-07-13 14:17:18 +08:00
|
|
|
type: number
|
2023-01-04 22:31:51 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
nanoCPUs:
|
2023-07-13 14:17:18 +08:00
|
|
|
type: number
|
2023-07-07 23:17:05 +08:00
|
|
|
network:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
publishAllPorts:
|
|
|
|
type: boolean
|
|
|
|
restartPolicy:
|
|
|
|
type: string
|
|
|
|
volumes:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.VolumeHelper'
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
dto.ContainerOperation:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
newName:
|
|
|
|
type: string
|
|
|
|
operation:
|
|
|
|
enum:
|
|
|
|
- start
|
|
|
|
- stop
|
|
|
|
- restart
|
|
|
|
- kill
|
|
|
|
- pause
|
|
|
|
- unpause
|
|
|
|
- rename
|
|
|
|
- remove
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- operation
|
|
|
|
type: object
|
2023-05-23 19:00:06 +08:00
|
|
|
dto.ContainerPrune:
|
|
|
|
properties:
|
|
|
|
pruneType:
|
|
|
|
enum:
|
|
|
|
- container
|
|
|
|
- image
|
|
|
|
- volume
|
|
|
|
- network
|
|
|
|
type: string
|
|
|
|
withTagAll:
|
|
|
|
type: boolean
|
|
|
|
required:
|
|
|
|
- pruneType
|
|
|
|
type: object
|
|
|
|
dto.ContainerPruneReport:
|
|
|
|
properties:
|
|
|
|
deletedNumber:
|
|
|
|
type: integer
|
|
|
|
spaceReclaimed:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.ContainerStats:
|
2023-01-04 22:31:51 +08:00
|
|
|
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
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.ContainerUpgrade:
|
|
|
|
properties:
|
2023-07-13 14:17:18 +08:00
|
|
|
forcePull:
|
|
|
|
type: boolean
|
2023-07-06 18:04:22 +08:00
|
|
|
image:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- image
|
|
|
|
- name
|
|
|
|
type: object
|
2023-04-12 14:48:30 +08:00
|
|
|
dto.CronjobBatchDelete:
|
|
|
|
properties:
|
|
|
|
cleanData:
|
|
|
|
type: boolean
|
|
|
|
ids:
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
dto.CronjobClean:
|
|
|
|
properties:
|
|
|
|
cleanData:
|
|
|
|
type: boolean
|
|
|
|
cronjobID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- cronjobID
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.CronjobCreate:
|
|
|
|
properties:
|
2023-08-23 22:44:14 +08:00
|
|
|
appID:
|
|
|
|
type: string
|
2023-07-03 16:36:18 +08:00
|
|
|
containerName:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
day:
|
|
|
|
type: integer
|
|
|
|
dbName:
|
|
|
|
type: string
|
|
|
|
exclusionRules:
|
|
|
|
type: string
|
|
|
|
hour:
|
|
|
|
type: integer
|
|
|
|
keepLocal:
|
|
|
|
type: boolean
|
|
|
|
minute:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
retainCopies:
|
|
|
|
minimum: 1
|
|
|
|
type: integer
|
|
|
|
script:
|
|
|
|
type: string
|
2023-05-29 11:24:28 +08:00
|
|
|
second:
|
|
|
|
type: integer
|
2023-01-04 22:31:51 +08:00
|
|
|
sourceDir:
|
|
|
|
type: string
|
|
|
|
specType:
|
|
|
|
type: string
|
|
|
|
targetDirID:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
website:
|
|
|
|
type: string
|
|
|
|
week:
|
2023-06-14 14:16:13 +08:00
|
|
|
maximum: 6
|
|
|
|
minimum: 0
|
2023-01-04 22:31:51 +08:00
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- specType
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
dto.CronjobDownload:
|
|
|
|
properties:
|
|
|
|
backupAccountID:
|
|
|
|
type: integer
|
|
|
|
recordID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- backupAccountID
|
|
|
|
- recordID
|
|
|
|
type: object
|
|
|
|
dto.CronjobUpdate:
|
|
|
|
properties:
|
2023-08-23 22:44:14 +08:00
|
|
|
appID:
|
|
|
|
type: string
|
2023-07-03 16:36:18 +08:00
|
|
|
containerName:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
day:
|
|
|
|
type: integer
|
|
|
|
dbName:
|
|
|
|
type: string
|
|
|
|
exclusionRules:
|
|
|
|
type: string
|
|
|
|
hour:
|
|
|
|
type: integer
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
keepLocal:
|
|
|
|
type: boolean
|
|
|
|
minute:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
retainCopies:
|
|
|
|
minimum: 1
|
|
|
|
type: integer
|
|
|
|
script:
|
|
|
|
type: string
|
2023-05-29 11:24:28 +08:00
|
|
|
second:
|
|
|
|
type: integer
|
2023-01-04 22:31:51 +08:00
|
|
|
sourceDir:
|
|
|
|
type: string
|
|
|
|
specType:
|
|
|
|
type: string
|
|
|
|
targetDirID:
|
|
|
|
type: integer
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
website:
|
|
|
|
type: string
|
|
|
|
week:
|
2023-06-14 14:16:13 +08:00
|
|
|
maximum: 6
|
|
|
|
minimum: 0
|
2023-01-04 22:31:51 +08:00
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- specType
|
|
|
|
type: object
|
|
|
|
dto.CronjobUpdateStatus:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- status
|
|
|
|
type: object
|
|
|
|
dto.DBBaseInfo:
|
|
|
|
properties:
|
|
|
|
containerName:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: integer
|
|
|
|
type: object
|
|
|
|
dto.DaemonJsonConf:
|
|
|
|
properties:
|
|
|
|
cgroupDriver:
|
|
|
|
type: string
|
|
|
|
insecureRegistries:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-04-11 10:26:25 +08:00
|
|
|
iptables:
|
|
|
|
type: boolean
|
|
|
|
isSwarm:
|
|
|
|
type: boolean
|
2023-01-04 22:31:51 +08:00
|
|
|
liveRestore:
|
|
|
|
type: boolean
|
2023-05-23 15:43:51 +08:00
|
|
|
logMaxFile:
|
|
|
|
type: string
|
|
|
|
logMaxSize:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
registryMirrors:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
status:
|
|
|
|
type: string
|
2023-01-09 22:55:10 +08:00
|
|
|
version:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
type: object
|
|
|
|
dto.DaemonJsonUpdateByFile:
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.DashboardBase:
|
|
|
|
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
|
|
|
|
type: object
|
|
|
|
dto.DashboardCurrent:
|
|
|
|
properties:
|
|
|
|
MemoryUsedPercent:
|
|
|
|
type: number
|
|
|
|
cpuPercent:
|
|
|
|
items:
|
|
|
|
type: number
|
|
|
|
type: array
|
|
|
|
cpuTotal:
|
|
|
|
type: integer
|
|
|
|
cpuUsed:
|
|
|
|
type: number
|
|
|
|
cpuUsedPercent:
|
|
|
|
type: number
|
2023-03-29 21:50:08 +08:00
|
|
|
diskData:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.DiskInfo'
|
|
|
|
type: array
|
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
|
|
|
|
load5:
|
|
|
|
type: number
|
|
|
|
load15:
|
|
|
|
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
|
|
|
|
uptime:
|
|
|
|
type: integer
|
2023-03-29 21:50:08 +08:00
|
|
|
type: object
|
2023-08-29 10:50:15 +08:00
|
|
|
dto.DatabaseCreate:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
enum:
|
|
|
|
- local
|
|
|
|
- remote
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
maxLength: 256
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- from
|
|
|
|
- name
|
|
|
|
- password
|
|
|
|
- type
|
|
|
|
- username
|
|
|
|
- version
|
|
|
|
type: object
|
|
|
|
dto.DatabaseInfo:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
maxLength: 256
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: integer
|
2023-09-05 22:28:11 +08:00
|
|
|
type:
|
|
|
|
type: string
|
2023-08-29 10:50:15 +08:00
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.DatabaseOption:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
database:
|
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.DatabaseSearch:
|
|
|
|
properties:
|
|
|
|
info:
|
|
|
|
type: string
|
|
|
|
order:
|
|
|
|
type: string
|
|
|
|
orderBy:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
|
|
|
dto.DatabaseUpdate:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: integer
|
2023-09-06 21:22:12 +08:00
|
|
|
type:
|
|
|
|
type: string
|
2023-08-29 10:50:15 +08:00
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- password
|
2023-09-06 21:22:12 +08:00
|
|
|
- type
|
2023-08-29 10:50:15 +08:00
|
|
|
- username
|
|
|
|
- version
|
|
|
|
type: object
|
2023-03-29 21:50:08 +08:00
|
|
|
dto.DiskInfo:
|
|
|
|
properties:
|
|
|
|
device:
|
|
|
|
type: string
|
|
|
|
free:
|
|
|
|
type: integer
|
|
|
|
inodesFree:
|
|
|
|
type: integer
|
|
|
|
inodesTotal:
|
|
|
|
type: integer
|
|
|
|
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
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.DockerOperation:
|
|
|
|
properties:
|
|
|
|
operation:
|
|
|
|
enum:
|
|
|
|
- start
|
|
|
|
- restart
|
|
|
|
- stop
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- operation
|
|
|
|
type: object
|
|
|
|
dto.DownloadRecord:
|
|
|
|
properties:
|
|
|
|
fileDir:
|
|
|
|
type: string
|
|
|
|
fileName:
|
|
|
|
type: string
|
|
|
|
source:
|
|
|
|
enum:
|
|
|
|
- OSS
|
|
|
|
- S3
|
|
|
|
- SFTP
|
|
|
|
- MINIO
|
|
|
|
- LOCAL
|
2023-04-07 12:02:10 +08:00
|
|
|
- COS
|
|
|
|
- KODO
|
2023-07-06 18:48:22 +08:00
|
|
|
- OneDrive
|
2023-01-04 22:31:51 +08:00
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- fileDir
|
|
|
|
- fileName
|
|
|
|
- source
|
|
|
|
type: object
|
2023-03-30 16:07:28 +08:00
|
|
|
dto.FirewallBaseInfo:
|
|
|
|
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
|
|
|
|
type: object
|
|
|
|
dto.FirewallOperation:
|
|
|
|
properties:
|
|
|
|
operation:
|
|
|
|
enum:
|
|
|
|
- start
|
|
|
|
- stop
|
2023-04-07 12:02:10 +08:00
|
|
|
- disablePing
|
|
|
|
- enablePing
|
2023-03-30 16:07:28 +08:00
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- operation
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.ForBuckets:
|
|
|
|
properties:
|
|
|
|
accessKey:
|
|
|
|
type: string
|
|
|
|
credential:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
vars:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- credential
|
|
|
|
- type
|
|
|
|
- vars
|
|
|
|
type: object
|
2023-05-18 13:56:08 +08:00
|
|
|
dto.GenerateLoad:
|
|
|
|
properties:
|
|
|
|
encryptionMode:
|
|
|
|
enum:
|
|
|
|
- rsa
|
|
|
|
- ed25519
|
|
|
|
- ecdsa
|
|
|
|
- dsa
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- encryptionMode
|
|
|
|
type: object
|
|
|
|
dto.GenerateSSH:
|
|
|
|
properties:
|
|
|
|
encryptionMode:
|
|
|
|
enum:
|
|
|
|
- rsa
|
|
|
|
- ed25519
|
|
|
|
- ecdsa
|
|
|
|
- dsa
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- encryptionMode
|
|
|
|
type: object
|
2023-03-06 17:18:13 +08:00
|
|
|
dto.GroupCreate:
|
2023-01-05 11:57:03 +08:00
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
type: object
|
2023-05-30 15:30:57 +08:00
|
|
|
dto.GroupInfo:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
isDefault:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.GroupSearch:
|
|
|
|
properties:
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
2023-03-06 17:18:13 +08:00
|
|
|
dto.GroupUpdate:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
isDefault:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
type: string
|
2023-03-29 11:46:14 +08:00
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
2023-03-06 17:18:13 +08:00
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.HostConnTest:
|
|
|
|
properties:
|
|
|
|
addr:
|
|
|
|
type: string
|
|
|
|
authMode:
|
|
|
|
enum:
|
|
|
|
- password
|
|
|
|
- key
|
|
|
|
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:
|
|
|
|
maximum: 65535
|
|
|
|
minimum: 1
|
|
|
|
type: integer
|
|
|
|
privateKey:
|
|
|
|
type: string
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- addr
|
|
|
|
- port
|
|
|
|
- user
|
|
|
|
type: object
|
|
|
|
dto.HostOperate:
|
|
|
|
properties:
|
|
|
|
addr:
|
|
|
|
type: string
|
|
|
|
authMode:
|
|
|
|
enum:
|
|
|
|
- password
|
|
|
|
- key
|
|
|
|
type: string
|
|
|
|
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:
|
|
|
|
maximum: 65535
|
|
|
|
minimum: 1
|
|
|
|
type: integer
|
|
|
|
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
|
|
|
|
required:
|
|
|
|
- addr
|
|
|
|
- port
|
|
|
|
- user
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.HostTree:
|
|
|
|
properties:
|
|
|
|
children:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.TreeChild'
|
|
|
|
type: array
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.ImageBuild:
|
|
|
|
properties:
|
|
|
|
dockerfile:
|
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
required:
|
|
|
|
- dockerfile
|
|
|
|
- from
|
|
|
|
- name
|
|
|
|
type: object
|
|
|
|
dto.ImageLoad:
|
|
|
|
properties:
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- path
|
|
|
|
type: object
|
|
|
|
dto.ImagePull:
|
|
|
|
properties:
|
|
|
|
imageName:
|
|
|
|
type: string
|
|
|
|
repoID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- imageName
|
|
|
|
type: object
|
|
|
|
dto.ImagePush:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
repoID:
|
|
|
|
type: integer
|
|
|
|
tagName:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- repoID
|
|
|
|
- tagName
|
|
|
|
type: object
|
|
|
|
dto.ImageRepoDelete:
|
|
|
|
properties:
|
|
|
|
ids:
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
type: array
|
|
|
|
required:
|
|
|
|
- ids
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.ImageRepoOption:
|
|
|
|
properties:
|
|
|
|
downloadUrl:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.ImageRepoUpdate:
|
|
|
|
properties:
|
|
|
|
auth:
|
|
|
|
type: boolean
|
|
|
|
downloadUrl:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
password:
|
2023-08-11 22:20:15 +08:00
|
|
|
maxLength: 256
|
2023-01-04 22:31:51 +08:00
|
|
|
type: string
|
|
|
|
protocol:
|
|
|
|
type: string
|
|
|
|
username:
|
2023-08-11 22:20:15 +08:00
|
|
|
maxLength: 256
|
2023-01-04 22:31:51 +08:00
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.ImageSave:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
tagName:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- path
|
|
|
|
- tagName
|
|
|
|
type: object
|
|
|
|
dto.ImageTag:
|
|
|
|
properties:
|
|
|
|
repoID:
|
|
|
|
type: integer
|
|
|
|
sourceID:
|
|
|
|
type: string
|
|
|
|
targetName:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- sourceID
|
|
|
|
- targetName
|
|
|
|
type: object
|
|
|
|
dto.InspectReq:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-05-29 11:24:28 +08:00
|
|
|
dto.LogOption:
|
|
|
|
properties:
|
|
|
|
logMaxFile:
|
|
|
|
type: string
|
|
|
|
logMaxSize:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.Login:
|
|
|
|
properties:
|
|
|
|
authMethod:
|
|
|
|
type: string
|
|
|
|
captcha:
|
|
|
|
type: string
|
|
|
|
captchaID:
|
|
|
|
type: string
|
2023-04-30 23:58:24 +08:00
|
|
|
ignoreCaptcha:
|
|
|
|
type: boolean
|
2023-07-25 17:24:15 +08:00
|
|
|
language:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.MFALogin:
|
|
|
|
properties:
|
|
|
|
authMethod:
|
|
|
|
type: string
|
|
|
|
code:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.MfaCredential:
|
|
|
|
properties:
|
|
|
|
code:
|
|
|
|
type: string
|
2023-06-28 14:50:10 +08:00
|
|
|
interval:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
secret:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.MysqlConfUpdateByFile:
|
|
|
|
properties:
|
2023-09-16 13:16:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
file:
|
|
|
|
type: string
|
2023-09-16 13:16:15 +08:00
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- mysql
|
|
|
|
- mariadb
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
required:
|
2023-09-16 13:16:15 +08:00
|
|
|
- database
|
|
|
|
- type
|
2023-01-04 22:31:51 +08:00
|
|
|
type: object
|
|
|
|
dto.MysqlDBCreate:
|
|
|
|
properties:
|
2023-09-16 13:16:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
format:
|
|
|
|
enum:
|
|
|
|
- utf8mb4
|
|
|
|
- utf8
|
|
|
|
- gbk
|
|
|
|
- big5
|
|
|
|
type: string
|
2023-07-24 14:55:26 +08:00
|
|
|
from:
|
2023-08-29 10:50:15 +08:00
|
|
|
enum:
|
|
|
|
- local
|
|
|
|
- remote
|
2023-07-24 14:55:26 +08:00
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
permission:
|
|
|
|
type: string
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
required:
|
2023-09-16 13:16:15 +08:00
|
|
|
- database
|
2023-01-04 22:31:51 +08:00
|
|
|
- format
|
2023-07-24 14:55:26 +08:00
|
|
|
- from
|
2023-01-04 22:31:51 +08:00
|
|
|
- name
|
|
|
|
- password
|
|
|
|
- permission
|
|
|
|
- username
|
|
|
|
type: object
|
|
|
|
dto.MysqlDBDelete:
|
|
|
|
properties:
|
2023-09-16 13:16:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
deleteBackup:
|
|
|
|
type: boolean
|
|
|
|
forceDelete:
|
|
|
|
type: boolean
|
|
|
|
id:
|
|
|
|
type: integer
|
2023-09-16 13:16:15 +08:00
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- mysql
|
|
|
|
- mariadb
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
required:
|
2023-09-16 13:16:15 +08:00
|
|
|
- database
|
2023-01-04 22:31:51 +08:00
|
|
|
- id
|
2023-09-16 13:16:15 +08:00
|
|
|
- type
|
2023-08-29 10:50:15 +08:00
|
|
|
type: object
|
|
|
|
dto.MysqlDBDeleteCheck:
|
|
|
|
properties:
|
2023-09-16 13:16:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
2023-08-29 10:50:15 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
2023-09-16 13:16:15 +08:00
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- mysql
|
|
|
|
- mariadb
|
|
|
|
type: string
|
2023-08-29 10:50:15 +08:00
|
|
|
required:
|
2023-09-16 13:16:15 +08:00
|
|
|
- database
|
2023-08-29 10:50:15 +08:00
|
|
|
- id
|
2023-09-16 13:16:15 +08:00
|
|
|
- type
|
2023-01-04 22:31:51 +08:00
|
|
|
type: object
|
2023-07-24 14:55:26 +08:00
|
|
|
dto.MysqlDBSearch:
|
|
|
|
properties:
|
2023-09-16 13:16:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
2023-07-24 14:55:26 +08:00
|
|
|
info:
|
|
|
|
type: string
|
|
|
|
order:
|
|
|
|
type: string
|
|
|
|
orderBy:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
required:
|
2023-09-16 13:16:15 +08:00
|
|
|
- database
|
2023-07-24 14:55:26 +08:00
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-09-16 13:16:15 +08:00
|
|
|
dto.MysqlLoadDB:
|
|
|
|
properties:
|
|
|
|
database:
|
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
enum:
|
|
|
|
- local
|
|
|
|
- remote
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- mysql
|
|
|
|
- mariadb
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- database
|
|
|
|
- from
|
|
|
|
- type
|
|
|
|
type: object
|
2023-08-03 16:19:30 +08:00
|
|
|
dto.MysqlOption:
|
|
|
|
properties:
|
2023-08-29 10:50:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
2023-08-03 16:19:30 +08:00
|
|
|
from:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
2023-08-31 22:28:13 +08:00
|
|
|
name:
|
|
|
|
type: string
|
2023-09-11 18:28:19 +08:00
|
|
|
type:
|
|
|
|
type: string
|
2023-08-03 16:19:30 +08:00
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.MysqlStatus:
|
|
|
|
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
|
|
|
|
type: object
|
|
|
|
dto.MysqlVariables:
|
|
|
|
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
|
|
|
|
type: object
|
|
|
|
dto.MysqlVariablesUpdate:
|
2023-08-29 10:50:15 +08:00
|
|
|
properties:
|
2023-09-16 13:16:15 +08:00
|
|
|
database:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- mysql
|
|
|
|
- mariadb
|
|
|
|
type: string
|
2023-08-29 10:50:15 +08:00
|
|
|
variables:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.MysqlVariablesUpdateHelper'
|
|
|
|
type: array
|
|
|
|
required:
|
2023-09-16 13:16:15 +08:00
|
|
|
- database
|
|
|
|
- type
|
2023-08-29 10:50:15 +08:00
|
|
|
type: object
|
|
|
|
dto.MysqlVariablesUpdateHelper:
|
2023-01-04 22:31:51 +08:00
|
|
|
properties:
|
|
|
|
param:
|
|
|
|
type: string
|
|
|
|
value: {}
|
|
|
|
type: object
|
2023-05-30 15:30:57 +08:00
|
|
|
dto.NetworkCreate:
|
2023-01-04 22:31:51 +08:00
|
|
|
properties:
|
|
|
|
driver:
|
|
|
|
type: string
|
|
|
|
gateway:
|
|
|
|
type: string
|
|
|
|
ipRange:
|
|
|
|
type: string
|
|
|
|
labels:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
options:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
subnet:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-07-06 18:48:22 +08:00
|
|
|
dto.NginxKey:
|
|
|
|
enum:
|
|
|
|
- index
|
|
|
|
- limit-conn
|
|
|
|
- ssl
|
|
|
|
- cache
|
|
|
|
- http-per
|
|
|
|
- proxy-cache
|
|
|
|
type: string
|
|
|
|
x-enum-varnames:
|
|
|
|
- Index
|
|
|
|
- LimitConn
|
|
|
|
- SSL
|
|
|
|
- CACHE
|
|
|
|
- HttpPer
|
|
|
|
- ProxyCache
|
2023-05-18 13:56:08 +08:00
|
|
|
dto.Operate:
|
|
|
|
properties:
|
|
|
|
operation:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- operation
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.OperateByID:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
2023-05-23 15:43:51 +08:00
|
|
|
dto.OperationWithName:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
type: object
|
2023-08-02 16:47:30 +08:00
|
|
|
dto.OperationWithNameAndType:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.Options:
|
|
|
|
properties:
|
|
|
|
option:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.PageContainer:
|
|
|
|
properties:
|
|
|
|
filters:
|
|
|
|
type: string
|
2023-02-07 18:48:32 +08:00
|
|
|
name:
|
|
|
|
type: string
|
2023-07-03 16:36:18 +08:00
|
|
|
order:
|
|
|
|
type: string
|
|
|
|
orderBy:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
|
|
|
dto.PageInfo:
|
|
|
|
properties:
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
|
|
|
dto.PageResult:
|
|
|
|
properties:
|
|
|
|
items: {}
|
|
|
|
total:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.PasswordUpdate:
|
|
|
|
properties:
|
|
|
|
newPassword:
|
|
|
|
type: string
|
|
|
|
oldPassword:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- newPassword
|
|
|
|
- oldPassword
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.PortHelper:
|
|
|
|
properties:
|
|
|
|
containerPort:
|
2023-04-26 22:18:16 +08:00
|
|
|
type: string
|
|
|
|
hostIP:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
hostPort:
|
2023-04-26 22:18:16 +08:00
|
|
|
type: string
|
|
|
|
protocol:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
type: object
|
2023-03-30 16:07:28 +08:00
|
|
|
dto.PortRuleOperate:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
2023-08-15 22:48:11 +08:00
|
|
|
description:
|
|
|
|
type: string
|
2023-03-30 16:07:28 +08:00
|
|
|
operation:
|
|
|
|
enum:
|
|
|
|
- add
|
|
|
|
- remove
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: string
|
|
|
|
protocol:
|
|
|
|
enum:
|
|
|
|
- tcp
|
|
|
|
- udp
|
|
|
|
- tcp/udp
|
|
|
|
type: string
|
|
|
|
strategy:
|
|
|
|
enum:
|
|
|
|
- accept
|
|
|
|
- drop
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- operation
|
|
|
|
- port
|
|
|
|
- protocol
|
|
|
|
- strategy
|
|
|
|
type: object
|
|
|
|
dto.PortRuleUpdate:
|
|
|
|
properties:
|
|
|
|
newRule:
|
|
|
|
$ref: '#/definitions/dto.PortRuleOperate'
|
|
|
|
oldRule:
|
|
|
|
$ref: '#/definitions/dto.PortRuleOperate'
|
|
|
|
type: object
|
2023-01-29 16:38:34 +08:00
|
|
|
dto.PortUpdate:
|
|
|
|
properties:
|
|
|
|
serverPort:
|
|
|
|
maximum: 65535
|
|
|
|
minimum: 1
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- serverPort
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.RecordSearch:
|
|
|
|
properties:
|
|
|
|
detailName:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
dto.RedisConf:
|
|
|
|
properties:
|
|
|
|
containerName:
|
|
|
|
type: string
|
|
|
|
maxclients:
|
|
|
|
type: string
|
|
|
|
maxmemory:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: integer
|
|
|
|
requirepass:
|
|
|
|
type: string
|
|
|
|
timeout:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.RedisConfPersistenceUpdate:
|
|
|
|
properties:
|
|
|
|
appendfsync:
|
|
|
|
type: string
|
|
|
|
appendonly:
|
|
|
|
type: string
|
|
|
|
save:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- aof
|
|
|
|
- rbd
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
dto.RedisConfUpdate:
|
|
|
|
properties:
|
|
|
|
maxclients:
|
|
|
|
type: string
|
|
|
|
maxmemory:
|
|
|
|
type: string
|
|
|
|
timeout:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.RedisConfUpdateByFile:
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
restartNow:
|
|
|
|
type: boolean
|
|
|
|
type: object
|
|
|
|
dto.RedisPersistence:
|
|
|
|
properties:
|
|
|
|
appendfsync:
|
|
|
|
type: string
|
|
|
|
appendonly:
|
|
|
|
type: string
|
|
|
|
save:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.RedisStatus:
|
|
|
|
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
|
|
|
|
type: object
|
2023-06-15 20:44:13 +08:00
|
|
|
dto.ResourceLimit:
|
|
|
|
properties:
|
|
|
|
cpu:
|
|
|
|
type: integer
|
|
|
|
memory:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2023-05-18 13:56:08 +08:00
|
|
|
dto.SSHConf:
|
|
|
|
properties:
|
|
|
|
file:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.SSHHistory:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
2023-06-14 14:16:13 +08:00
|
|
|
area:
|
|
|
|
type: string
|
2023-05-18 13:56:08 +08:00
|
|
|
authMode:
|
|
|
|
type: string
|
|
|
|
date:
|
|
|
|
type: string
|
|
|
|
dateStr:
|
|
|
|
type: string
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.SSHInfo:
|
|
|
|
properties:
|
|
|
|
listenAddress:
|
|
|
|
type: string
|
2023-06-01 18:27:53 +08:00
|
|
|
message:
|
|
|
|
type: string
|
2023-05-18 13:56:08 +08:00
|
|
|
passwordAuthentication:
|
|
|
|
type: string
|
|
|
|
permitRootLogin:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: string
|
|
|
|
pubkeyAuthentication:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
useDNS:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
dto.SSHLog:
|
|
|
|
properties:
|
|
|
|
failedCount:
|
|
|
|
type: integer
|
|
|
|
logs:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.SSHHistory'
|
|
|
|
type: array
|
|
|
|
successfulCount:
|
|
|
|
type: integer
|
|
|
|
totalCount:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2023-09-20 14:18:20 +08:00
|
|
|
dto.SSHLogAnalysis:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
area:
|
|
|
|
type: string
|
|
|
|
failedCount:
|
|
|
|
type: integer
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
successfulCount:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2023-04-26 22:18:16 +08:00
|
|
|
dto.SSLUpdate:
|
|
|
|
properties:
|
|
|
|
cert:
|
|
|
|
type: string
|
|
|
|
domain:
|
|
|
|
type: string
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
ssl:
|
|
|
|
enum:
|
|
|
|
- enable
|
|
|
|
- disable
|
|
|
|
type: string
|
|
|
|
sslID:
|
|
|
|
type: integer
|
|
|
|
sslType:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- ssl
|
|
|
|
type: object
|
2023-09-20 14:18:20 +08:00
|
|
|
dto.SearchForAnalysis:
|
|
|
|
properties:
|
|
|
|
orderBy:
|
|
|
|
enum:
|
|
|
|
- Success
|
|
|
|
- Failed
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- orderBy
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.SearchForTree:
|
|
|
|
properties:
|
|
|
|
info:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-03-02 13:54:07 +08:00
|
|
|
dto.SearchHostWithPage:
|
|
|
|
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
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-02-07 18:48:32 +08:00
|
|
|
dto.SearchLgLogWithPage:
|
|
|
|
properties:
|
|
|
|
ip:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
|
|
|
dto.SearchOpLogWithPage:
|
|
|
|
properties:
|
|
|
|
operation:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
source:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.SearchRecord:
|
|
|
|
properties:
|
|
|
|
cronjobID:
|
|
|
|
type: integer
|
|
|
|
endTime:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
startTime:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-05-18 13:56:08 +08:00
|
|
|
dto.SearchSSHLog:
|
|
|
|
properties:
|
|
|
|
Status:
|
|
|
|
enum:
|
|
|
|
- Success
|
|
|
|
- Failed
|
|
|
|
- All
|
|
|
|
type: string
|
|
|
|
info:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- Status
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-01-04 22:31:51 +08:00
|
|
|
dto.SearchWithPage:
|
|
|
|
properties:
|
|
|
|
info:
|
|
|
|
type: string
|
2023-07-03 16:36:18 +08:00
|
|
|
order:
|
|
|
|
type: string
|
|
|
|
orderBy:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.SettingInfo:
|
|
|
|
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
|
2023-09-20 14:18:20 +08:00
|
|
|
defaultNetwork:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
dingVars:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
emailVars:
|
|
|
|
type: string
|
|
|
|
expirationDays:
|
|
|
|
type: string
|
|
|
|
expirationTime:
|
|
|
|
type: string
|
|
|
|
language:
|
|
|
|
type: string
|
2023-09-28 15:40:17 +08:00
|
|
|
lastCleanData:
|
|
|
|
type: string
|
|
|
|
lastCleanSize:
|
|
|
|
type: string
|
|
|
|
lastCleanTime:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
localTime:
|
|
|
|
type: string
|
|
|
|
messageType:
|
|
|
|
type: string
|
2023-06-28 14:50:10 +08:00
|
|
|
mfaInterval:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
mfaSecret:
|
|
|
|
type: string
|
|
|
|
mfaStatus:
|
|
|
|
type: string
|
2023-05-29 11:24:28 +08:00
|
|
|
monitorInterval:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
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-07-03 16:36:18 +08:00
|
|
|
systemIP:
|
|
|
|
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
|
|
|
|
type: object
|
|
|
|
dto.SettingUpdate:
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- key
|
|
|
|
type: object
|
2023-01-09 22:55:10 +08:00
|
|
|
dto.SnapshotCreate:
|
|
|
|
properties:
|
|
|
|
description:
|
2023-05-05 11:56:52 +08:00
|
|
|
maxLength: 256
|
2023-01-09 22:55:10 +08:00
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
enum:
|
|
|
|
- OSS
|
|
|
|
- S3
|
|
|
|
- SFTP
|
|
|
|
- MINIO
|
2023-04-07 12:02:10 +08:00
|
|
|
- COS
|
|
|
|
- KODO
|
2023-07-06 18:48:22 +08:00
|
|
|
- OneDrive
|
2023-01-09 22:55:10 +08:00
|
|
|
type: string
|
2023-08-29 10:50:15 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
2023-01-09 22:55:10 +08:00
|
|
|
required:
|
|
|
|
- from
|
|
|
|
type: object
|
2023-02-13 15:48:18 +08:00
|
|
|
dto.SnapshotImport:
|
|
|
|
properties:
|
|
|
|
description:
|
2023-05-05 11:56:52 +08:00
|
|
|
maxLength: 256
|
2023-02-13 15:48:18 +08:00
|
|
|
type: string
|
|
|
|
from:
|
|
|
|
type: string
|
|
|
|
names:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
2023-01-09 22:55:10 +08:00
|
|
|
dto.SnapshotRecover:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
isNew:
|
|
|
|
type: boolean
|
|
|
|
reDownload:
|
|
|
|
type: boolean
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
2023-05-24 15:43:21 +08:00
|
|
|
dto.SyncTime:
|
2023-05-23 15:43:51 +08:00
|
|
|
properties:
|
|
|
|
ntpSite:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
dto.TreeChild:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-02-13 15:48:18 +08:00
|
|
|
dto.UpdateDescription:
|
|
|
|
properties:
|
|
|
|
description:
|
2023-05-05 11:56:52 +08:00
|
|
|
maxLength: 256
|
2023-02-13 15:48:18 +08:00
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
2023-08-15 22:48:11 +08:00
|
|
|
dto.UpdateFirewallDescription:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: string
|
|
|
|
protocol:
|
|
|
|
type: string
|
|
|
|
strategy:
|
|
|
|
enum:
|
|
|
|
- accept
|
|
|
|
- drop
|
|
|
|
type: string
|
2023-08-31 22:28:13 +08:00
|
|
|
type:
|
|
|
|
type: string
|
2023-08-15 22:48:11 +08:00
|
|
|
required:
|
|
|
|
- strategy
|
|
|
|
type: object
|
2023-01-30 21:05:20 +08:00
|
|
|
dto.Upgrade:
|
|
|
|
properties:
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-09 22:55:10 +08:00
|
|
|
dto.UpgradeInfo:
|
|
|
|
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
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
dto.UserLoginInfo:
|
|
|
|
properties:
|
|
|
|
mfaStatus:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
token:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-05-30 15:30:57 +08:00
|
|
|
dto.VolumeCreate:
|
2023-01-04 22:31:51 +08:00
|
|
|
properties:
|
|
|
|
driver:
|
|
|
|
type: string
|
|
|
|
labels:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
options:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
dto.VolumeHelper:
|
|
|
|
properties:
|
|
|
|
containerDir:
|
|
|
|
type: string
|
|
|
|
mode:
|
|
|
|
type: string
|
|
|
|
sourceDir:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
files.FileInfo:
|
2023-01-04 22:31:51 +08:00
|
|
|
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-09-06 15:00:12 +08:00
|
|
|
gid:
|
|
|
|
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
|
|
|
|
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:
|
2023-01-04 22:31:51 +08:00
|
|
|
items:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/files.FileInfo'
|
2023-01-04 22:31:51 +08:00
|
|
|
type: array
|
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
|
2023-09-06 15:00:12 +08:00
|
|
|
uid:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
updateTime:
|
|
|
|
type: string
|
|
|
|
user:
|
2023-01-04 22:31:51 +08:00
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
mfa.Otp:
|
|
|
|
properties:
|
|
|
|
qrImage:
|
|
|
|
type: string
|
|
|
|
secret:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
model.App:
|
|
|
|
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
|
|
|
|
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
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
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-05 11:57:03 +08:00
|
|
|
type: object
|
|
|
|
model.AppInstall:
|
|
|
|
properties:
|
|
|
|
app:
|
|
|
|
$ref: '#/definitions/model.App'
|
|
|
|
appDetailId:
|
|
|
|
type: integer
|
|
|
|
appId:
|
|
|
|
type: integer
|
|
|
|
containerName:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
dockerCompose:
|
|
|
|
type: string
|
|
|
|
env:
|
|
|
|
type: string
|
|
|
|
httpPort:
|
|
|
|
type: integer
|
|
|
|
httpsPort:
|
|
|
|
type: integer
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
param:
|
|
|
|
type: string
|
|
|
|
serviceName:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
model.Tag:
|
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
model.Website:
|
|
|
|
properties:
|
2023-05-30 15:30:57 +08:00
|
|
|
IPV6:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
accessLog:
|
|
|
|
type: boolean
|
|
|
|
alias:
|
|
|
|
type: string
|
|
|
|
appInstallId:
|
|
|
|
type: integer
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
defaultServer:
|
|
|
|
type: boolean
|
|
|
|
domains:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/model.WebsiteDomain'
|
|
|
|
type: array
|
|
|
|
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:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
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
|
|
|
|
type: object
|
|
|
|
model.WebsiteAcmeAccount:
|
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
model.WebsiteDomain:
|
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
domain:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
port:
|
|
|
|
type: integer
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
type: object
|
|
|
|
model.WebsiteSSL:
|
|
|
|
properties:
|
|
|
|
acmeAccount:
|
|
|
|
$ref: '#/definitions/model.WebsiteAcmeAccount'
|
|
|
|
acmeAccountId:
|
|
|
|
type: integer
|
|
|
|
autoRenew:
|
|
|
|
type: boolean
|
|
|
|
certURL:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
dnsAccountId:
|
|
|
|
type: integer
|
|
|
|
domains:
|
|
|
|
type: string
|
|
|
|
expireDate:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
organization:
|
|
|
|
type: string
|
|
|
|
pem:
|
|
|
|
type: string
|
|
|
|
primaryDomain:
|
|
|
|
type: string
|
|
|
|
privateKey:
|
|
|
|
type: string
|
|
|
|
provider:
|
|
|
|
type: string
|
|
|
|
startDate:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
websites:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/model.Website'
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
request.AppInstallCreate:
|
|
|
|
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-05 11:57:03 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
params:
|
|
|
|
additionalProperties: true
|
|
|
|
type: object
|
|
|
|
services:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- appDetailId
|
|
|
|
- name
|
|
|
|
type: object
|
2023-07-03 16:36:18 +08:00
|
|
|
request.AppInstalledIgnoreUpgrade:
|
|
|
|
properties:
|
2023-07-06 18:48:22 +08:00
|
|
|
detailID:
|
2023-07-03 16:36:18 +08:00
|
|
|
type: integer
|
2023-07-06 18:48:22 +08:00
|
|
|
operate:
|
|
|
|
enum:
|
|
|
|
- cancel
|
|
|
|
- ignore
|
|
|
|
type: string
|
2023-07-03 16:36:18 +08:00
|
|
|
required:
|
2023-07-06 18:48:22 +08:00
|
|
|
- detailID
|
|
|
|
- operate
|
2023-07-03 16:36:18 +08:00
|
|
|
type: object
|
2023-08-29 10:50:15 +08:00
|
|
|
request.AppInstalledInfo:
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- key
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.AppInstalledOperate:
|
|
|
|
properties:
|
2023-07-31 11:28:41 +08:00
|
|
|
backup:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
backupId:
|
|
|
|
type: integer
|
|
|
|
deleteBackup:
|
|
|
|
type: boolean
|
2023-03-08 15:33:43 +08:00
|
|
|
deleteDB:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
detailId:
|
|
|
|
type: integer
|
|
|
|
forceDelete:
|
|
|
|
type: boolean
|
|
|
|
installId:
|
|
|
|
type: integer
|
|
|
|
operate:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- installId
|
|
|
|
- operate
|
|
|
|
type: object
|
|
|
|
request.AppInstalledSearch:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
2023-02-01 16:15:31 +08:00
|
|
|
tags:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
type:
|
|
|
|
type: string
|
2023-02-01 16:15:31 +08:00
|
|
|
unused:
|
|
|
|
type: boolean
|
|
|
|
update:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-03-18 10:03:40 +08:00
|
|
|
request.AppInstalledUpdate:
|
|
|
|
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:
|
|
|
|
additionalProperties: true
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- installId
|
|
|
|
- params
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.AppSearch:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
2023-02-10 15:55:56 +08:00
|
|
|
recommend:
|
|
|
|
type: boolean
|
2023-09-26 22:50:16 +08:00
|
|
|
resource:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
|
|
|
request.DirSizeReq:
|
|
|
|
properties:
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- path
|
|
|
|
type: object
|
|
|
|
request.FileBatchDelete:
|
|
|
|
properties:
|
|
|
|
isDir:
|
|
|
|
type: boolean
|
|
|
|
paths:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
required:
|
|
|
|
- paths
|
|
|
|
type: object
|
|
|
|
request.FileCompress:
|
|
|
|
properties:
|
|
|
|
dst:
|
|
|
|
type: string
|
|
|
|
files:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
replace:
|
|
|
|
type: boolean
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- dst
|
|
|
|
- files
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.FileCreate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
isDir:
|
|
|
|
type: boolean
|
|
|
|
isLink:
|
|
|
|
type: boolean
|
|
|
|
isSymlink:
|
|
|
|
type: boolean
|
|
|
|
linkPath:
|
|
|
|
type: string
|
|
|
|
mode:
|
|
|
|
type: integer
|
|
|
|
path:
|
|
|
|
type: string
|
2023-04-27 22:44:16 +08:00
|
|
|
sub:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
required:
|
|
|
|
- mode
|
|
|
|
- path
|
|
|
|
type: object
|
|
|
|
request.FileDeCompress:
|
|
|
|
properties:
|
|
|
|
dst:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- dst
|
|
|
|
- path
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.FileDelete:
|
|
|
|
properties:
|
|
|
|
isDir:
|
|
|
|
type: boolean
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- path
|
|
|
|
type: object
|
|
|
|
request.FileDownload:
|
|
|
|
properties:
|
2023-03-08 15:33:43 +08:00
|
|
|
compress:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
paths:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
2023-03-08 15:33:43 +08:00
|
|
|
- compress
|
2023-01-05 11:57:03 +08:00
|
|
|
- name
|
|
|
|
- paths
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.FileEdit:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- path
|
|
|
|
type: object
|
|
|
|
request.FileMove:
|
|
|
|
properties:
|
|
|
|
newPath:
|
|
|
|
type: string
|
|
|
|
oldPaths:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- newPath
|
|
|
|
- oldPaths
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.FileOption:
|
|
|
|
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:
|
|
|
|
type: string
|
|
|
|
search:
|
|
|
|
type: string
|
|
|
|
showHidden:
|
|
|
|
type: boolean
|
|
|
|
type: object
|
2023-03-08 15:33:43 +08:00
|
|
|
request.FilePathCheck:
|
|
|
|
properties:
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- path
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.FileRename:
|
|
|
|
properties:
|
|
|
|
newName:
|
|
|
|
type: string
|
|
|
|
oldName:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- newName
|
|
|
|
- oldName
|
|
|
|
type: object
|
2023-04-26 22:18:16 +08:00
|
|
|
request.FileRoleUpdate:
|
|
|
|
properties:
|
|
|
|
group:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
sub:
|
|
|
|
type: boolean
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- group
|
|
|
|
- path
|
|
|
|
- sub
|
|
|
|
- user
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.FileWget:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- path
|
|
|
|
- url
|
|
|
|
type: object
|
2023-07-31 11:28:41 +08:00
|
|
|
request.HostToolConfig:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
operate:
|
|
|
|
enum:
|
|
|
|
- get
|
|
|
|
- set
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- supervisord
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.HostToolCreate:
|
|
|
|
properties:
|
|
|
|
configPath:
|
|
|
|
type: string
|
2023-08-02 18:29:50 +08:00
|
|
|
serviceName:
|
|
|
|
type: string
|
2023-07-31 11:28:41 +08:00
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.HostToolLogReq:
|
|
|
|
properties:
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- supervisord
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.HostToolReq:
|
|
|
|
properties:
|
|
|
|
operate:
|
|
|
|
enum:
|
|
|
|
- status
|
|
|
|
- restart
|
|
|
|
- start
|
|
|
|
- stop
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- supervisord
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.NewAppInstall:
|
|
|
|
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-05 11:57:03 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
params:
|
|
|
|
additionalProperties: true
|
|
|
|
type: object
|
|
|
|
type: object
|
2023-05-29 11:24:28 +08:00
|
|
|
request.NginxAntiLeechUpdate:
|
|
|
|
properties:
|
|
|
|
blocked:
|
|
|
|
type: boolean
|
|
|
|
cache:
|
|
|
|
type: boolean
|
|
|
|
cacheTime:
|
|
|
|
type: integer
|
|
|
|
cacheUint:
|
|
|
|
type: string
|
|
|
|
enable:
|
|
|
|
type: boolean
|
|
|
|
extends:
|
|
|
|
type: string
|
|
|
|
logEnable:
|
|
|
|
type: boolean
|
|
|
|
noneRef:
|
|
|
|
type: boolean
|
|
|
|
return:
|
|
|
|
type: string
|
|
|
|
serverNames:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- enable
|
|
|
|
- extends
|
|
|
|
- return
|
|
|
|
- websiteID
|
|
|
|
type: object
|
2023-04-25 18:10:17 +08:00
|
|
|
request.NginxAuthReq:
|
|
|
|
properties:
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- websiteID
|
|
|
|
type: object
|
|
|
|
request.NginxAuthUpdate:
|
|
|
|
properties:
|
|
|
|
operate:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
remark:
|
|
|
|
type: string
|
|
|
|
username:
|
|
|
|
type: string
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- operate
|
|
|
|
- password
|
|
|
|
- username
|
|
|
|
- websiteID
|
|
|
|
type: object
|
2023-05-29 11:24:28 +08:00
|
|
|
request.NginxCommonReq:
|
|
|
|
properties:
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- websiteID
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.NginxConfigFileUpdate:
|
|
|
|
properties:
|
|
|
|
backup:
|
|
|
|
type: boolean
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- backup
|
|
|
|
- content
|
|
|
|
type: object
|
|
|
|
request.NginxConfigUpdate:
|
|
|
|
properties:
|
|
|
|
operate:
|
|
|
|
type: string
|
|
|
|
params: {}
|
|
|
|
scope:
|
2023-07-06 18:48:22 +08:00
|
|
|
$ref: '#/definitions/dto.NginxKey'
|
2023-01-05 11:57:03 +08:00
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- websiteId
|
|
|
|
type: object
|
2023-04-24 17:50:39 +08:00
|
|
|
request.NginxProxyUpdate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- name
|
|
|
|
- websiteID
|
|
|
|
type: object
|
2023-07-22 22:02:21 +08:00
|
|
|
request.NginxRedirectReq:
|
|
|
|
properties:
|
|
|
|
domains:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
enable:
|
|
|
|
type: boolean
|
|
|
|
keepPath:
|
|
|
|
type: boolean
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
operate:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
redirect:
|
|
|
|
type: string
|
|
|
|
redirectRoot:
|
|
|
|
type: boolean
|
|
|
|
target:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- enable
|
|
|
|
- keepPath
|
|
|
|
- name
|
|
|
|
- operate
|
|
|
|
- redirect
|
|
|
|
- target
|
|
|
|
- type
|
|
|
|
- websiteID
|
|
|
|
type: object
|
|
|
|
request.NginxRedirectUpdate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- name
|
|
|
|
- websiteID
|
|
|
|
type: object
|
2023-04-14 16:01:06 +08:00
|
|
|
request.NginxRewriteReq:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- name
|
|
|
|
- websiteId
|
|
|
|
type: object
|
|
|
|
request.NginxRewriteUpdate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- name
|
|
|
|
- websiteId
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.NginxScopeReq:
|
|
|
|
properties:
|
|
|
|
scope:
|
2023-07-06 18:48:22 +08:00
|
|
|
$ref: '#/definitions/dto.NginxKey'
|
2023-01-05 11:57:03 +08:00
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- scope
|
|
|
|
type: object
|
2023-09-25 17:50:14 +08:00
|
|
|
request.NodePackageReq:
|
|
|
|
properties:
|
|
|
|
codeDir:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.PortUpdate:
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2023-06-28 14:50:10 +08:00
|
|
|
request.ProcessReq:
|
|
|
|
properties:
|
|
|
|
PID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- PID
|
|
|
|
type: object
|
2023-04-06 00:09:58 +08:00
|
|
|
request.RuntimeCreate:
|
|
|
|
properties:
|
|
|
|
appDetailId:
|
|
|
|
type: integer
|
2023-09-25 17:50:14 +08:00
|
|
|
clean:
|
|
|
|
type: boolean
|
|
|
|
codeDir:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
image:
|
|
|
|
type: string
|
2023-09-25 17:50:14 +08:00
|
|
|
install:
|
|
|
|
type: boolean
|
2023-04-06 00:09:58 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
params:
|
|
|
|
additionalProperties: true
|
|
|
|
type: object
|
|
|
|
resource:
|
|
|
|
type: string
|
2023-09-20 14:18:20 +08:00
|
|
|
source:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
request.RuntimeDelete:
|
|
|
|
properties:
|
2023-09-25 17:50:14 +08:00
|
|
|
forceDelete:
|
|
|
|
type: boolean
|
2023-04-06 00:09:58 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2023-09-26 22:50:16 +08:00
|
|
|
request.RuntimeOperate:
|
|
|
|
properties:
|
|
|
|
ID:
|
|
|
|
type: integer
|
|
|
|
operate:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-04-06 00:09:58 +08:00
|
|
|
request.RuntimeSearch:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
|
|
|
request.RuntimeUpdate:
|
|
|
|
properties:
|
2023-09-25 17:50:14 +08:00
|
|
|
clean:
|
|
|
|
type: boolean
|
|
|
|
codeDir:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
image:
|
|
|
|
type: string
|
2023-09-25 17:50:14 +08:00
|
|
|
install:
|
|
|
|
type: boolean
|
2023-04-06 00:09:58 +08:00
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
params:
|
|
|
|
additionalProperties: true
|
|
|
|
type: object
|
2023-08-31 22:28:13 +08:00
|
|
|
rebuild:
|
|
|
|
type: boolean
|
2023-09-20 14:18:20 +08:00
|
|
|
source:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-03-02 13:54:07 +08:00
|
|
|
request.SearchUploadWithPage:
|
|
|
|
properties:
|
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
- path
|
|
|
|
type: object
|
2023-07-31 11:28:41 +08:00
|
|
|
request.SupervisorProcessConfig:
|
|
|
|
properties:
|
|
|
|
command:
|
|
|
|
type: string
|
|
|
|
dir:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
numprocs:
|
|
|
|
type: string
|
|
|
|
operate:
|
|
|
|
type: string
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-08-01 17:31:42 +08:00
|
|
|
request.SupervisorProcessFileReq:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
file:
|
|
|
|
enum:
|
|
|
|
- out.log
|
|
|
|
- err.log
|
2023-08-02 16:47:30 +08:00
|
|
|
- config
|
2023-08-01 17:31:42 +08:00
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
operate:
|
|
|
|
enum:
|
|
|
|
- get
|
|
|
|
- clear
|
|
|
|
- update
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- file
|
|
|
|
- name
|
|
|
|
- operate
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.WebsiteAcmeAccountCreate:
|
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- email
|
|
|
|
type: object
|
2023-09-05 22:28:11 +08:00
|
|
|
request.WebsiteCommonReq:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.WebsiteCreate:
|
|
|
|
properties:
|
2023-05-30 15:30:57 +08:00
|
|
|
IPV6:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
alias:
|
|
|
|
type: string
|
|
|
|
appID:
|
|
|
|
type: integer
|
|
|
|
appInstall:
|
|
|
|
$ref: '#/definitions/request.NewAppInstall'
|
|
|
|
appInstallID:
|
|
|
|
type: integer
|
|
|
|
appType:
|
|
|
|
enum:
|
|
|
|
- new
|
|
|
|
- installed
|
|
|
|
type: string
|
|
|
|
otherDomains:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
port:
|
|
|
|
type: integer
|
2023-01-05 11:57:03 +08:00
|
|
|
primaryDomain:
|
|
|
|
type: string
|
|
|
|
proxy:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
proxyType:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
remark:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
runtimeID:
|
|
|
|
type: integer
|
2023-01-05 11:57:03 +08:00
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
webSiteGroupID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- alias
|
|
|
|
- primaryDomain
|
|
|
|
- type
|
|
|
|
- webSiteGroupID
|
|
|
|
type: object
|
|
|
|
request.WebsiteDNSReq:
|
|
|
|
properties:
|
|
|
|
acmeAccountId:
|
|
|
|
type: integer
|
|
|
|
domains:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
required:
|
|
|
|
- acmeAccountId
|
|
|
|
- domains
|
|
|
|
type: object
|
|
|
|
request.WebsiteDefaultUpdate:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
request.WebsiteDelete:
|
|
|
|
properties:
|
|
|
|
deleteApp:
|
|
|
|
type: boolean
|
|
|
|
deleteBackup:
|
|
|
|
type: boolean
|
|
|
|
forceDelete:
|
|
|
|
type: boolean
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
request.WebsiteDnsAccountCreate:
|
|
|
|
properties:
|
|
|
|
authorization:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- authorization
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.WebsiteDnsAccountUpdate:
|
|
|
|
properties:
|
|
|
|
authorization:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- authorization
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
type: object
|
|
|
|
request.WebsiteDomainCreate:
|
|
|
|
properties:
|
|
|
|
domain:
|
|
|
|
type: string
|
|
|
|
port:
|
|
|
|
type: integer
|
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- domain
|
|
|
|
- port
|
|
|
|
- websiteId
|
|
|
|
type: object
|
|
|
|
request.WebsiteDomainDelete:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
request.WebsiteHTTPSOp:
|
|
|
|
properties:
|
|
|
|
SSLProtocol:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
algorithm:
|
|
|
|
type: string
|
|
|
|
certificate:
|
|
|
|
type: string
|
2023-07-06 18:04:22 +08:00
|
|
|
certificatePath:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
enable:
|
|
|
|
type: boolean
|
2023-07-06 18:04:22 +08:00
|
|
|
httpConfig:
|
|
|
|
enum:
|
|
|
|
- HTTPSOnly
|
|
|
|
- HTTPAlso
|
|
|
|
- HTTPToHTTPS
|
|
|
|
type: string
|
|
|
|
importType:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
privateKey:
|
|
|
|
type: string
|
2023-07-06 18:04:22 +08:00
|
|
|
privateKeyPath:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
type:
|
|
|
|
enum:
|
|
|
|
- existed
|
|
|
|
- auto
|
|
|
|
- manual
|
|
|
|
type: string
|
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
websiteSSLId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- enable
|
|
|
|
- websiteId
|
|
|
|
type: object
|
|
|
|
request.WebsiteInstallCheckReq:
|
|
|
|
properties:
|
|
|
|
InstallIds:
|
|
|
|
items:
|
|
|
|
type: integer
|
|
|
|
type: array
|
|
|
|
required:
|
|
|
|
- InstallIds
|
|
|
|
type: object
|
|
|
|
request.WebsiteLogReq:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
logType:
|
|
|
|
type: string
|
|
|
|
operate:
|
|
|
|
type: string
|
2023-08-31 22:28:13 +08:00
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
2023-01-05 11:57:03 +08:00
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- logType
|
|
|
|
- operate
|
|
|
|
type: object
|
|
|
|
request.WebsiteNginxUpdate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
request.WebsiteOp:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
operate:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
2023-04-06 00:09:58 +08:00
|
|
|
request.WebsitePHPConfigUpdate:
|
|
|
|
properties:
|
2023-05-29 11:24:28 +08:00
|
|
|
disableFunctions:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-04-06 00:09:58 +08:00
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
params:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-05-29 11:24:28 +08:00
|
|
|
scope:
|
|
|
|
type: string
|
|
|
|
uploadMaxSize:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
required:
|
|
|
|
- id
|
2023-05-29 11:24:28 +08:00
|
|
|
- scope
|
2023-04-06 00:09:58 +08:00
|
|
|
type: object
|
2023-04-12 14:48:30 +08:00
|
|
|
request.WebsitePHPFileUpdate:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
- id
|
|
|
|
- type
|
|
|
|
type: object
|
2023-07-25 17:20:25 +08:00
|
|
|
request.WebsitePHPVersionReq:
|
|
|
|
properties:
|
|
|
|
retainConfig:
|
|
|
|
type: boolean
|
|
|
|
runtimeID:
|
|
|
|
type: integer
|
|
|
|
websiteID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- retainConfig
|
|
|
|
- runtimeID
|
|
|
|
- websiteID
|
|
|
|
type: object
|
2023-04-24 17:50:39 +08:00
|
|
|
request.WebsiteProxyConfig:
|
|
|
|
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:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- cache
|
|
|
|
- cacheTime
|
|
|
|
- cacheUnit
|
|
|
|
- enable
|
|
|
|
- id
|
|
|
|
- match
|
|
|
|
- modifier
|
|
|
|
- name
|
|
|
|
- operate
|
|
|
|
- proxyHost
|
|
|
|
- proxyPass
|
|
|
|
type: object
|
|
|
|
request.WebsiteProxyReq:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.WebsiteResourceReq:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
type: object
|
|
|
|
request.WebsiteSSLCreate:
|
|
|
|
properties:
|
|
|
|
acmeAccountId:
|
|
|
|
type: integer
|
|
|
|
autoRenew:
|
|
|
|
type: boolean
|
|
|
|
dnsAccountId:
|
|
|
|
type: integer
|
|
|
|
otherDomains:
|
|
|
|
type: string
|
|
|
|
primaryDomain:
|
|
|
|
type: string
|
|
|
|
provider:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- acmeAccountId
|
|
|
|
- autoRenew
|
|
|
|
- primaryDomain
|
|
|
|
- provider
|
|
|
|
type: object
|
|
|
|
request.WebsiteSSLRenew:
|
|
|
|
properties:
|
|
|
|
SSLId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- SSLId
|
|
|
|
type: object
|
|
|
|
request.WebsiteSSLSearch:
|
|
|
|
properties:
|
2023-07-13 14:17:18 +08:00
|
|
|
acmeAccountID:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
2023-03-21 14:42:50 +08:00
|
|
|
request.WebsiteSSLUpdate:
|
|
|
|
properties:
|
|
|
|
autoRenew:
|
|
|
|
type: boolean
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- autoRenew
|
|
|
|
- id
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.WebsiteSearch:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
2023-07-03 16:36:18 +08:00
|
|
|
order:
|
|
|
|
type: string
|
|
|
|
orderBy:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
page:
|
|
|
|
type: integer
|
|
|
|
pageSize:
|
|
|
|
type: integer
|
|
|
|
websiteGroupId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- page
|
|
|
|
- pageSize
|
|
|
|
type: object
|
|
|
|
request.WebsiteUpdate:
|
|
|
|
properties:
|
2023-05-30 15:30:57 +08:00
|
|
|
IPV6:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
expireDate:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
primaryDomain:
|
|
|
|
type: string
|
|
|
|
remark:
|
|
|
|
type: string
|
|
|
|
webSiteGroupID:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- primaryDomain
|
|
|
|
- webSiteGroupID
|
|
|
|
type: object
|
2023-04-17 16:54:34 +08:00
|
|
|
request.WebsiteUpdateDir:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
siteDir:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- siteDir
|
|
|
|
type: object
|
2023-04-17 13:57:41 +08:00
|
|
|
request.WebsiteUpdateDirPermission:
|
|
|
|
properties:
|
|
|
|
group:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- group
|
|
|
|
- id
|
|
|
|
- user
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
request.WebsiteWafReq:
|
|
|
|
properties:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
rule:
|
|
|
|
type: string
|
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- key
|
|
|
|
- rule
|
|
|
|
- websiteId
|
|
|
|
type: object
|
|
|
|
request.WebsiteWafUpdate:
|
|
|
|
properties:
|
|
|
|
enable:
|
|
|
|
type: boolean
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
websiteId:
|
|
|
|
type: integer
|
|
|
|
required:
|
|
|
|
- enable
|
|
|
|
- key
|
|
|
|
- websiteId
|
|
|
|
type: object
|
|
|
|
response.AppDTO:
|
|
|
|
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:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/model.Tag'
|
|
|
|
type: array
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
versions:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-02-01 16:15:31 +08:00
|
|
|
website:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
type: object
|
|
|
|
response.AppDetailDTO:
|
|
|
|
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-07-03 16:36:18 +08:00
|
|
|
ignoreUpgrade:
|
|
|
|
type: boolean
|
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
|
|
|
|
type: object
|
|
|
|
response.AppInstalledCheck:
|
|
|
|
properties:
|
|
|
|
app:
|
|
|
|
type: string
|
|
|
|
appInstallId:
|
|
|
|
type: integer
|
|
|
|
containerName:
|
|
|
|
type: string
|
|
|
|
createdAt:
|
|
|
|
type: string
|
2023-08-29 10:50:15 +08:00
|
|
|
httpPort:
|
|
|
|
type: integer
|
|
|
|
httpsPort:
|
|
|
|
type: integer
|
2023-01-05 11:57:03 +08:00
|
|
|
installPath:
|
|
|
|
type: string
|
|
|
|
isExist:
|
|
|
|
type: boolean
|
|
|
|
lastBackupAt:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
response.AppParam:
|
|
|
|
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-05 11:57:03 +08:00
|
|
|
type: string
|
|
|
|
value: {}
|
2023-03-22 15:38:30 +08:00
|
|
|
values: {}
|
2023-01-05 11:57:03 +08:00
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
response.AppService:
|
|
|
|
properties:
|
|
|
|
config: {}
|
|
|
|
label:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
response.FileInfo:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
extension:
|
|
|
|
type: string
|
2023-09-06 15:00:12 +08:00
|
|
|
gid:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
group:
|
|
|
|
type: string
|
|
|
|
isDir:
|
|
|
|
type: boolean
|
|
|
|
isHidden:
|
|
|
|
type: boolean
|
|
|
|
isSymlink:
|
|
|
|
type: boolean
|
|
|
|
itemTotal:
|
|
|
|
type: integer
|
|
|
|
items:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/files.FileInfo'
|
|
|
|
type: array
|
|
|
|
linkPath:
|
|
|
|
type: string
|
|
|
|
mimeType:
|
|
|
|
type: string
|
|
|
|
modTime:
|
|
|
|
type: string
|
|
|
|
mode:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
size:
|
|
|
|
type: integer
|
|
|
|
type:
|
|
|
|
type: string
|
2023-09-06 15:00:12 +08:00
|
|
|
uid:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
updateTime:
|
|
|
|
type: string
|
|
|
|
user:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
response.FileTree:
|
|
|
|
properties:
|
|
|
|
children:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.FileTree'
|
|
|
|
type: array
|
|
|
|
id:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
path:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-07-06 18:48:22 +08:00
|
|
|
response.IgnoredApp:
|
|
|
|
properties:
|
|
|
|
detailID:
|
|
|
|
type: integer
|
|
|
|
icon:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
response.NginxParam:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
params:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
response.NginxStatus:
|
|
|
|
properties:
|
|
|
|
accepts:
|
|
|
|
type: string
|
|
|
|
active:
|
|
|
|
type: string
|
|
|
|
handled:
|
|
|
|
type: string
|
|
|
|
reading:
|
|
|
|
type: string
|
|
|
|
requests:
|
|
|
|
type: string
|
|
|
|
waiting:
|
|
|
|
type: string
|
|
|
|
writing:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-04-06 00:09:58 +08:00
|
|
|
response.PHPConfig:
|
|
|
|
properties:
|
2023-05-29 11:24:28 +08:00
|
|
|
disableFunctions:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-04-06 00:09:58 +08:00
|
|
|
params:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-05-29 11:24:28 +08:00
|
|
|
uploadMaxSize:
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
response.WebsiteAcmeAccountDTO:
|
|
|
|
properties:
|
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
|
|
|
url:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
response.WebsiteDNSRes:
|
|
|
|
properties:
|
|
|
|
domain:
|
|
|
|
type: string
|
|
|
|
err:
|
|
|
|
type: string
|
|
|
|
resolve:
|
|
|
|
type: string
|
|
|
|
value:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
response.WebsiteDTO:
|
|
|
|
properties:
|
2023-05-30 15:30:57 +08:00
|
|
|
IPV6:
|
|
|
|
type: boolean
|
2023-01-05 11:57:03 +08:00
|
|
|
accessLog:
|
|
|
|
type: boolean
|
|
|
|
accessLogPath:
|
|
|
|
type: string
|
|
|
|
alias:
|
|
|
|
type: string
|
|
|
|
appInstallId:
|
|
|
|
type: integer
|
2023-03-18 10:03:40 +08:00
|
|
|
appName:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
createdAt:
|
|
|
|
type: string
|
|
|
|
defaultServer:
|
|
|
|
type: boolean
|
|
|
|
domains:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/model.WebsiteDomain'
|
|
|
|
type: array
|
|
|
|
errorLog:
|
|
|
|
type: boolean
|
|
|
|
errorLogPath:
|
|
|
|
type: string
|
|
|
|
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-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:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
type:
|
|
|
|
type: string
|
|
|
|
updatedAt:
|
|
|
|
type: string
|
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
|
|
|
|
type: object
|
|
|
|
response.WebsiteHTTPS:
|
|
|
|
properties:
|
|
|
|
SSL:
|
|
|
|
$ref: '#/definitions/model.WebsiteSSL'
|
|
|
|
SSLProtocol:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
algorithm:
|
|
|
|
type: string
|
|
|
|
enable:
|
|
|
|
type: boolean
|
|
|
|
httpConfig:
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
response.WebsiteLog:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
enable:
|
|
|
|
type: boolean
|
2023-08-31 22:28:13 +08:00
|
|
|
end:
|
|
|
|
type: boolean
|
2023-09-16 13:16:15 +08:00
|
|
|
path:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
type: object
|
|
|
|
response.WebsiteNginxConfig:
|
|
|
|
properties:
|
|
|
|
enable:
|
|
|
|
type: boolean
|
|
|
|
params:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.NginxParam'
|
|
|
|
type: array
|
|
|
|
type: object
|
2023-07-06 18:04:22 +08:00
|
|
|
response.WebsitePreInstallCheck:
|
|
|
|
properties:
|
|
|
|
appName:
|
|
|
|
type: string
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
type: object
|
2023-01-05 11:57:03 +08:00
|
|
|
response.WebsiteWafConfig:
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
type: string
|
|
|
|
enable:
|
|
|
|
type: boolean
|
|
|
|
type: object
|
|
|
|
host: localhost
|
|
|
|
info:
|
|
|
|
contact: {}
|
|
|
|
description: 开源Linux面板
|
|
|
|
license:
|
|
|
|
name: Apache 2.0
|
|
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
termsOfService: http://swagger.io/terms/
|
|
|
|
title: 1Panel
|
|
|
|
version: "1.0"
|
|
|
|
paths:
|
2023-02-10 15:55:56 +08:00
|
|
|
/apps/:key:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-10 15:55:56 +08:00
|
|
|
description: 通过 key 获取应用信息
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
2023-02-10 15:55:56 +08:00
|
|
|
- description: app key
|
2023-01-05 11:57:03 +08:00
|
|
|
in: path
|
2023-02-10 15:55:56 +08:00
|
|
|
name: key
|
2023-01-05 11:57:03 +08:00
|
|
|
required: true
|
2023-02-10 15:55:56 +08:00
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.AppDTO'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-10 15:55:56 +08:00
|
|
|
summary: Search app by key
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
|
|
|
- App
|
2023-03-18 10:03:40 +08:00
|
|
|
/apps/checkupdate:
|
|
|
|
get:
|
|
|
|
description: 获取应用更新版本
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-18 10:03:40 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get app list update
|
|
|
|
tags:
|
|
|
|
- App
|
2023-04-06 00:09:58 +08:00
|
|
|
/apps/detail/:appId/:version/:type:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-04-06 00:09:58 +08:00
|
|
|
description: 通过 appid 获取应用详情
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: app id
|
|
|
|
in: path
|
|
|
|
name: appId
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
- description: app 版本
|
|
|
|
in: path
|
|
|
|
name: version
|
|
|
|
required: true
|
|
|
|
type: string
|
2023-04-06 00:09:58 +08:00
|
|
|
- description: app 类型
|
|
|
|
in: path
|
|
|
|
name: version
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.AppDetailDTO'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Search app detail by appid
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
/apps/details/:id:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 id 获取应用详情
|
|
|
|
parameters:
|
|
|
|
- description: id
|
|
|
|
in: path
|
|
|
|
name: appId
|
|
|
|
required: true
|
|
|
|
type: integer
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.AppDetailDTO'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-04-06 00:09:58 +08:00
|
|
|
summary: Get app detail by id
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
|
|
|
- App
|
2023-07-06 18:48:22 +08:00
|
|
|
/apps/ingored:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取忽略的应用版本
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.IgnoredApp'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get Ignore App
|
|
|
|
tags:
|
|
|
|
- App
|
2023-01-05 11:57:03 +08:00
|
|
|
/apps/install:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 安装应用
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.AppInstallCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/model.AppInstall'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Install app
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: app_installs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: name
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: app_id
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: appId
|
|
|
|
- db: apps
|
|
|
|
info: appId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: key
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: appKey
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: Install app [appKey]-[name]
|
|
|
|
formatZH: 安装应用 [appKey]-[name]
|
|
|
|
paramKeys: []
|
|
|
|
/apps/installed/:appInstallId/versions:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 install id 获取应用更新版本
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: appInstallId
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.AppVersion'
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Search app update version by install id
|
|
|
|
tags:
|
|
|
|
- App
|
2023-08-29 10:50:15 +08:00
|
|
|
/apps/installed/check:
|
|
|
|
post:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 检查应用安装情况
|
|
|
|
parameters:
|
|
|
|
- description: request
|
2023-08-29 10:50:15 +08:00
|
|
|
in: body
|
|
|
|
name: request
|
2023-01-05 11:57:03 +08:00
|
|
|
required: true
|
2023-08-29 10:50:15 +08:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.AppInstalledInfo'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.AppInstalledCheck'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Check app installed
|
|
|
|
tags:
|
|
|
|
- App
|
2023-09-06 21:22:12 +08:00
|
|
|
/apps/installed/conf:
|
|
|
|
post:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 key 获取应用默认配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
2023-09-06 21:22:12 +08:00
|
|
|
in: body
|
|
|
|
name: request
|
2023-01-05 11:57:03 +08:00
|
|
|
required: true
|
2023-09-06 21:22:12 +08:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Search default config by key
|
|
|
|
tags:
|
|
|
|
- App
|
2023-04-11 10:26:25 +08:00
|
|
|
/apps/installed/conninfo/:key:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-04-11 10:26:25 +08:00
|
|
|
description: 获取应用连接信息
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
2023-04-11 10:26:25 +08:00
|
|
|
- description: request
|
2023-08-29 10:50:15 +08:00
|
|
|
in: body
|
|
|
|
name: request
|
2023-01-05 11:57:03 +08:00
|
|
|
required: true
|
2023-08-29 10:50:15 +08:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-04-11 10:26:25 +08:00
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-04-11 10:26:25 +08:00
|
|
|
summary: Search app password by key
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
|
|
|
- App
|
2023-04-11 10:26:25 +08:00
|
|
|
/apps/installed/delete/check/:appInstallId:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-04-11 10:26:25 +08:00
|
|
|
description: 删除前检查
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
2023-04-11 10:26:25 +08:00
|
|
|
- description: App install id
|
2023-01-05 11:57:03 +08:00
|
|
|
in: path
|
2023-04-11 10:26:25 +08:00
|
|
|
name: appInstallId
|
2023-01-05 11:57:03 +08:00
|
|
|
required: true
|
2023-04-11 10:26:25 +08:00
|
|
|
type: integer
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.AppResource'
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-04-11 10:26:25 +08:00
|
|
|
summary: Check before delete
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
|
|
|
- App
|
2023-07-03 16:36:18 +08:00
|
|
|
/apps/installed/ignore:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 忽略应用升级版本
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.AppInstalledIgnoreUpgrade'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-07-03 16:36:18 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: ignore App Update
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- installId
|
|
|
|
formatEN: Application param update [installId]
|
|
|
|
formatZH: 忽略应用 [installId] 版本升级
|
|
|
|
paramKeys: []
|
2023-08-23 22:44:14 +08:00
|
|
|
/apps/installed/list:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取已安装应用列表
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.AppInstallInfo'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List app installed
|
|
|
|
tags:
|
|
|
|
- App
|
2023-08-29 10:50:15 +08:00
|
|
|
/apps/installed/loadport:
|
|
|
|
post:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取应用端口
|
|
|
|
parameters:
|
|
|
|
- description: request
|
2023-08-29 10:50:15 +08:00
|
|
|
in: body
|
|
|
|
name: request
|
2023-01-05 11:57:03 +08:00
|
|
|
required: true
|
2023-08-29 10:50:15 +08:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: integer
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Search app port by key
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
/apps/installed/op:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 操作已安装应用
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.AppInstalledOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Operate installed app
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: app_installs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: installId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: app_id
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: appId
|
|
|
|
- db: app_installs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: installId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: appName
|
|
|
|
- db: apps
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: appId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: key
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: appKey
|
|
|
|
bodyKeys:
|
|
|
|
- installId
|
|
|
|
- operate
|
2023-06-14 14:16:13 +08:00
|
|
|
formatEN: '[operate] App [appKey][appName]'
|
|
|
|
formatZH: '[operate] 应用 [appKey][appName]'
|
2023-01-05 11:57:03 +08:00
|
|
|
paramKeys: []
|
|
|
|
/apps/installed/params/:appInstallId:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 install id 获取应用参数
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: appInstallId
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.AppParam'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Search params by appInstallId
|
|
|
|
tags:
|
|
|
|
- App
|
2023-03-18 10:03:40 +08:00
|
|
|
/apps/installed/params/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改应用参数
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.AppInstalledUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-18 10:03:40 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Change app params
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
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:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改应用端口
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.PortUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Change app port
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- key
|
|
|
|
- name
|
|
|
|
- port
|
|
|
|
formatEN: Application port update [key]-[name] => [port]
|
|
|
|
formatZH: 应用端口修改 [key]-[name] => [port]
|
|
|
|
paramKeys: []
|
2023-03-06 17:18:13 +08:00
|
|
|
/apps/installed/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-08-23 22:44:14 +08:00
|
|
|
description: 分页获取已安装应用列表
|
2023-03-06 17:18:13 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.AppInstalledSearch'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-06 17:18:13 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-08-23 22:44:14 +08:00
|
|
|
summary: Page app installed
|
2023-03-06 17:18:13 +08:00
|
|
|
tags:
|
|
|
|
- App
|
2023-01-05 11:57:03 +08:00
|
|
|
/apps/installed/sync:
|
|
|
|
post:
|
|
|
|
description: 同步已安装应用列表
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Sync app installed
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: Sync the list of installed apps
|
|
|
|
formatZH: 同步已安装应用列表
|
|
|
|
paramKeys: []
|
|
|
|
/apps/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取应用列表
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.AppSearch'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List apps
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
/apps/services/:key:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 key 获取应用 service
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: key
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.AppService'
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Search app service by key
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
/apps/sync:
|
|
|
|
post:
|
|
|
|
description: 同步应用列表
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Sync app list
|
|
|
|
tags:
|
|
|
|
- App
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: App store synchronization
|
|
|
|
formatZH: 应用商店同步
|
|
|
|
paramKeys: []
|
|
|
|
/auth/captcha:
|
|
|
|
get:
|
|
|
|
description: 加载验证码
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CaptchaResponse'
|
|
|
|
summary: Load captcha
|
|
|
|
tags:
|
|
|
|
- Auth
|
2023-03-18 10:03:40 +08:00
|
|
|
/auth/demo:
|
|
|
|
get:
|
|
|
|
description: 判断是否为demo环境
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-18 10:03:40 +08:00
|
|
|
summary: Check System isDemo
|
|
|
|
tags:
|
|
|
|
- Auth
|
2023-04-17 11:12:43 +08:00
|
|
|
/auth/issafety:
|
|
|
|
get:
|
|
|
|
description: 获取系统安全登录状态
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-17 11:12:43 +08:00
|
|
|
summary: Load safety status
|
|
|
|
tags:
|
|
|
|
- Auth
|
2023-07-25 17:24:15 +08:00
|
|
|
/auth/language:
|
|
|
|
get:
|
|
|
|
description: 获取系统语言设置
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
summary: Load System Language
|
|
|
|
tags:
|
|
|
|
- Auth
|
2023-01-05 11:57:03 +08:00
|
|
|
/auth/login:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 用户登录
|
|
|
|
parameters:
|
2023-09-18 14:06:18 +08:00
|
|
|
- description: 安全入口 base64 加密串
|
|
|
|
in: header
|
|
|
|
name: EntranceCode
|
|
|
|
required: true
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.Login'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.UserLoginInfo'
|
|
|
|
summary: User login
|
|
|
|
tags:
|
|
|
|
- Auth
|
|
|
|
/auth/logout:
|
|
|
|
post:
|
|
|
|
description: 用户登出
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: User logout
|
|
|
|
tags:
|
|
|
|
- Auth
|
|
|
|
/auth/mfalogin:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 用户 mfa 登录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.MFALogin'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
2023-09-06 15:00:12 +08:00
|
|
|
headers:
|
|
|
|
EntranceCode:
|
|
|
|
description: 安全入口
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.UserLoginInfo'
|
|
|
|
summary: User login with mfa
|
|
|
|
tags:
|
|
|
|
- Auth
|
2023-02-13 17:13:55 +08:00
|
|
|
/containers:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 创建容器
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-06-15 11:00:11 +08:00
|
|
|
$ref: '#/definitions/dto.ContainerOperate'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Create container
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container
|
2023-01-05 11:57:03 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-02-13 17:13:55 +08:00
|
|
|
- name
|
|
|
|
- image
|
|
|
|
formatEN: create container [name][image]
|
|
|
|
formatZH: 创建容器 [name][image]
|
2023-01-05 11:57:03 +08:00
|
|
|
paramKeys: []
|
2023-05-23 15:43:51 +08:00
|
|
|
/containers/clean/log:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 清理容器日志
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperationWithName'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-23 15:43:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Clean container log
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
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-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 创建容器编排
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.ComposeCreate'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Create compose
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Compose
|
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
|
|
|
- name
|
|
|
|
formatEN: create compose [name]
|
|
|
|
formatZH: 创建 compose [name]
|
2023-01-05 11:57:03 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/containers/compose/operate:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 容器编排操作
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.ComposeOperation'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Operate compose
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Compose
|
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
|
|
|
- name
|
|
|
|
- operation
|
|
|
|
formatEN: compose [operation] [name]
|
|
|
|
formatZH: compose [operation] [name]
|
2023-01-05 11:57:03 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/containers/compose/search:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 获取编排列表分页
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
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
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Page composes
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Compose
|
2023-09-28 10:56:16 +08:00
|
|
|
/containers/compose/search/log:
|
|
|
|
post:
|
|
|
|
description: docker-compose 日志
|
|
|
|
parameters:
|
|
|
|
- description: compose 文件地址
|
|
|
|
in: query
|
|
|
|
name: compose
|
|
|
|
type: string
|
|
|
|
- description: 时间筛选
|
|
|
|
in: query
|
|
|
|
name: since
|
|
|
|
type: string
|
|
|
|
- description: 是否追踪
|
|
|
|
in: query
|
|
|
|
name: follow
|
|
|
|
type: string
|
|
|
|
- description: 显示行号
|
|
|
|
in: query
|
|
|
|
name: tail
|
|
|
|
type: string
|
|
|
|
responses: {}
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Container Compose logs
|
|
|
|
tags:
|
|
|
|
- Container Compose
|
2023-03-21 18:42:37 +08:00
|
|
|
/containers/compose/test:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 测试 compose 是否可用
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ComposeCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-21 18:42:37 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Test compose
|
|
|
|
tags:
|
|
|
|
- Container Compose
|
|
|
|
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-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 更新容器编排
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.ComposeUpdate'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Update compose
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Compose
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: update compose information [name]
|
|
|
|
formatZH: 更新 compose [name]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/daemonjson:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 获取 docker 配置信息
|
|
|
|
produces:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.DaemonJsonConf'
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Load docker daemon.json
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Docker
|
|
|
|
/containers/daemonjson/file:
|
|
|
|
get:
|
|
|
|
description: 获取 docker 配置信息(表单)
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load docker daemon.json
|
|
|
|
tags:
|
|
|
|
- Container Docker
|
|
|
|
/containers/daemonjson/update:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-05-29 11:24:28 +08:00
|
|
|
description: 修改 docker 日志配置
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-05-29 11:24:28 +08:00
|
|
|
$ref: '#/definitions/dto.LogOption'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-05-29 11:24:28 +08:00
|
|
|
summary: Update docker daemon.json log option
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Docker
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
2023-05-29 11:24:28 +08:00
|
|
|
formatEN: Updated the docker daemon.json log option
|
|
|
|
formatZH: 更新 docker daemon.json 日志配置
|
2023-02-13 17:13:55 +08:00
|
|
|
paramKeys: []
|
|
|
|
/containers/daemonjson/update/byfile:
|
2023-02-13 15:48:18 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 上传替换 docker 配置文件
|
2023-02-13 15:48:18 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.DaemonJsonUpdateByFile'
|
2023-02-13 15:48:18 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 15:48:18 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Update docker daemon.json by upload file
|
2023-02-13 15:48:18 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Docker
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: Updated the docker daemon.json configuration
|
|
|
|
formatZH: 更新 docker daemon.json 配置
|
|
|
|
paramKeys: []
|
|
|
|
/containers/docker/operate:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: Docker 操作
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.DockerOperation'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Operate docker
|
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
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-02-13 17:13:55 +08:00
|
|
|
- operation
|
|
|
|
formatEN: '[operation] docker service'
|
|
|
|
formatZH: docker 服务 [operation]
|
2023-01-05 11:57:03 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/containers/docker/status:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 获取 docker 服务状态
|
|
|
|
produces:
|
|
|
|
- application/json
|
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
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Load docker status
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Docker
|
|
|
|
/containers/image:
|
|
|
|
get:
|
|
|
|
description: 获取镜像列表
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.Options'
|
|
|
|
type: array
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List images
|
|
|
|
tags:
|
|
|
|
- Container Image
|
|
|
|
/containers/image/build:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 构建镜像
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.ImageBuild'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-02-13 17:13:55 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Build image
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Image
|
2023-01-05 11:57:03 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
2023-02-13 17:13:55 +08:00
|
|
|
formatEN: build image [name]
|
|
|
|
formatZH: 构建镜像 [name]
|
2023-01-05 11:57:03 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/containers/image/load:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 导入镜像
|
2023-01-05 11:57:03 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.ImageLoad'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Load image
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Container Image
|
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
|
|
|
- path
|
|
|
|
formatEN: load image from [path]
|
|
|
|
formatZH: 从 [path] 加载镜像
|
2023-01-05 11:57:03 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/containers/image/pull:
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 拉取镜像
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ImagePull'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Pull image
|
|
|
|
tags:
|
|
|
|
- Container Image
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: image_repos
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: repoID
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: reponame
|
|
|
|
bodyKeys:
|
|
|
|
- repoID
|
|
|
|
- imageName
|
|
|
|
formatEN: image pull [reponame][imageName]
|
|
|
|
formatZH: 镜像拉取 [reponame][imageName]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/image/push:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 推送镜像
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ImagePush'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Push image
|
|
|
|
tags:
|
|
|
|
- Container Image
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: image_repos
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: repoID
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: reponame
|
|
|
|
bodyKeys:
|
|
|
|
- repoID
|
|
|
|
- tagName
|
|
|
|
- name
|
|
|
|
formatEN: push [tagName] to [reponame][name]
|
|
|
|
formatZH: '[tagName] 推送到 [reponame][name]'
|
|
|
|
paramKeys: []
|
|
|
|
/containers/image/remove:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除镜像
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDelete'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete image
|
|
|
|
tags:
|
|
|
|
- Container Image
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- names
|
|
|
|
formatEN: remove image [names]
|
|
|
|
formatZH: 移除镜像 [names]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/image/save:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 导出镜像
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ImageSave'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Save image
|
|
|
|
tags:
|
|
|
|
- Container Image
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- tagName
|
|
|
|
- path
|
|
|
|
- name
|
|
|
|
formatEN: save [tagName] as [path]/[name]
|
|
|
|
formatZH: 保留 [tagName] 为 [path]/[name]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/image/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取镜像列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-07 18:48:32 +08:00
|
|
|
$ref: '#/definitions/dto.SearchWithPage'
|
2023-01-05 11:57:03 +08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page images
|
|
|
|
tags:
|
|
|
|
- Container Image
|
|
|
|
/containers/image/tag:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Tag 镜像
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ImageTag'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Tag image
|
|
|
|
tags:
|
|
|
|
- Container Image
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: image_repos
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: repoID
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: reponame
|
|
|
|
bodyKeys:
|
|
|
|
- repoID
|
|
|
|
- targetName
|
|
|
|
formatEN: tag image [reponame][targetName]
|
|
|
|
formatZH: tag 镜像 [reponame][targetName]
|
|
|
|
paramKeys: []
|
2023-06-15 11:00:11 +08:00
|
|
|
/containers/info:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器表单信息
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperationWithName'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ContainerOperate'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load container info
|
|
|
|
tags:
|
|
|
|
- Container
|
2023-01-05 11:57:03 +08:00
|
|
|
/containers/inspect:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 容器详情
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.InspectReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Container inspect
|
|
|
|
tags:
|
|
|
|
- Container
|
2023-06-15 20:44:13 +08:00
|
|
|
/containers/limit:
|
|
|
|
get:
|
|
|
|
description: 获取容器限制
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ResourceLimit'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load container limis
|
2023-07-03 16:36:18 +08:00
|
|
|
/containers/list:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器名称
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-07-03 16:36:18 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List containers
|
|
|
|
tags:
|
|
|
|
- Container
|
2023-07-06 18:04:22 +08:00
|
|
|
/containers/list/stats:
|
|
|
|
get:
|
|
|
|
description: 获取容器列表资源占用
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.ContainerListStats'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load container stats
|
2023-08-02 16:47:30 +08:00
|
|
|
/containers/load/log:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器操作日志
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load container log
|
|
|
|
tags:
|
|
|
|
- Container
|
2023-01-05 11:57:03 +08:00
|
|
|
/containers/network:
|
2023-07-07 23:17:05 +08:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器网络列表
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.Options'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List networks
|
|
|
|
tags:
|
|
|
|
- Container Network
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建容器网络
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-05-30 15:30:57 +08:00
|
|
|
$ref: '#/definitions/dto.NetworkCreate'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create network
|
|
|
|
tags:
|
|
|
|
- Container Network
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: create container network [name]
|
|
|
|
formatZH: 创建容器网络 name
|
|
|
|
paramKeys: []
|
|
|
|
/containers/network/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除容器网络
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDelete'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete network
|
|
|
|
tags:
|
|
|
|
- Container Network
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- names
|
|
|
|
formatEN: delete container network [names]
|
|
|
|
formatZH: 删除容器网络 [names]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/network/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器网络列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-07 18:48:32 +08:00
|
|
|
$ref: '#/definitions/dto.SearchWithPage'
|
2023-01-05 11:57:03 +08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page networks
|
|
|
|
tags:
|
|
|
|
- Container Network
|
|
|
|
/containers/operate:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 容器操作
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ContainerOperation'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Operate Container
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- operation
|
|
|
|
- newName
|
|
|
|
formatEN: container [operation] [name] [newName]
|
|
|
|
formatZH: 容器 [name] 执行 [operation] [newName]
|
|
|
|
paramKeys: []
|
2023-05-23 19:00:06 +08:00
|
|
|
/containers/prune:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 容器清理
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ContainerPrune'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ContainerPruneReport'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Clean container
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- pruneType
|
|
|
|
formatEN: clean container [pruneType]
|
|
|
|
formatZH: 清理容器 [pruneType]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/containers/repo:
|
|
|
|
get:
|
|
|
|
description: 获取镜像仓库列表
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.ImageRepoOption'
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List image repos
|
|
|
|
tags:
|
|
|
|
- Container Image-repo
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建镜像仓库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-27 11:46:23 +08:00
|
|
|
$ref: '#/definitions/dto.ImageRepoDelete'
|
2023-01-05 11:57:03 +08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create image repo
|
|
|
|
tags:
|
|
|
|
- Container Image-repo
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: create image repo [name]
|
|
|
|
formatZH: 创建镜像仓库 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/repo/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除镜像仓库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ImageRepoDelete'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete image repo
|
|
|
|
tags:
|
|
|
|
- Container Image-repo
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: image_repos
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: ids
|
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: names
|
|
|
|
bodyKeys:
|
|
|
|
- ids
|
|
|
|
formatEN: delete image repo [names]
|
|
|
|
formatZH: 删除镜像仓库 [names]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/repo/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取镜像仓库列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-07 18:48:32 +08:00
|
|
|
$ref: '#/definitions/dto.SearchWithPage'
|
2023-01-05 11:57:03 +08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page image repos
|
|
|
|
tags:
|
|
|
|
- Container Image-repo
|
2023-02-27 11:46:23 +08:00
|
|
|
/containers/repo/status:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 docker 仓库状态
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperateByID'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-27 11:46:23 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load repo status
|
|
|
|
tags:
|
|
|
|
- Container Image-repo
|
2023-01-05 11:57:03 +08:00
|
|
|
/containers/repo/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新镜像仓库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ImageRepoUpdate'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update image repo
|
|
|
|
tags:
|
|
|
|
- Container Image-repo
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: image_repos
|
|
|
|
input_column: id
|
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: update image repo information [name]
|
|
|
|
formatZH: 更新镜像仓库 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageContainer'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page containers
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
/containers/search/log:
|
|
|
|
post:
|
|
|
|
description: 容器日志
|
|
|
|
parameters:
|
2023-06-14 14:16:13 +08:00
|
|
|
- description: 容器名称
|
|
|
|
in: query
|
|
|
|
name: container
|
|
|
|
type: string
|
|
|
|
- description: 时间筛选
|
|
|
|
in: query
|
|
|
|
name: since
|
|
|
|
type: string
|
|
|
|
- description: 是否追踪
|
|
|
|
in: query
|
|
|
|
name: follow
|
|
|
|
type: string
|
|
|
|
- description: 显示行号
|
|
|
|
in: query
|
|
|
|
name: tail
|
|
|
|
type: string
|
|
|
|
responses: {}
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Container logs
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
/containers/stats/:id:
|
|
|
|
get:
|
|
|
|
description: 容器监控信息
|
|
|
|
parameters:
|
|
|
|
- description: 容器id
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
$ref: '#/definitions/dto.ContainerStats'
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Container stats
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
/containers/template:
|
|
|
|
get:
|
|
|
|
description: 获取容器编排模版列表
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.ComposeTemplateInfo'
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List compose templates
|
|
|
|
tags:
|
|
|
|
- Container Compose-template
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建容器编排模版
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ComposeTemplateCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create compose template
|
|
|
|
tags:
|
|
|
|
- Container Compose-template
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: create compose template [name]
|
|
|
|
formatZH: 创建 compose 模版 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/template/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除容器编排模版
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDelete'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete compose template
|
|
|
|
tags:
|
|
|
|
- Container Compose-template
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: compose_templates
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: ids
|
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: names
|
|
|
|
bodyKeys:
|
|
|
|
- ids
|
|
|
|
formatEN: delete compose template [names]
|
|
|
|
formatZH: 删除 compose 模版 [names]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/template/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器编排模版列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-07 18:48:32 +08:00
|
|
|
$ref: '#/definitions/dto.SearchWithPage'
|
2023-01-05 11:57:03 +08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page compose templates
|
|
|
|
tags:
|
|
|
|
- Container Compose-template
|
|
|
|
/containers/template/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新容器编排模版
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ComposeTemplateUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update compose template
|
|
|
|
tags:
|
|
|
|
- Container Compose-template
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: compose_templates
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: update compose template information [name]
|
|
|
|
formatZH: 更新 compose 模版 [name]
|
|
|
|
paramKeys: []
|
2023-06-15 11:00:11 +08:00
|
|
|
/containers/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新容器
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ContainerOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-06-15 11:00:11 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update container
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- image
|
|
|
|
formatEN: update container [name][image]
|
|
|
|
formatZH: 更新容器 [name][image]
|
|
|
|
paramKeys: []
|
2023-06-16 17:54:11 +08:00
|
|
|
/containers/upgrade:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新容器镜像
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ContainerUpgrade'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-06-16 17:54:11 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Upgrade container
|
|
|
|
tags:
|
|
|
|
- Container
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- image
|
|
|
|
formatEN: upgrade container image [name][image]
|
|
|
|
formatZH: 更新容器镜像 [name][image]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/containers/volume:
|
2023-07-07 23:17:05 +08:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器存储卷列表
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.Options'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List volumes
|
|
|
|
tags:
|
|
|
|
- Container Volume
|
2023-01-05 11:57:03 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建容器存储卷
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-05-30 15:30:57 +08:00
|
|
|
$ref: '#/definitions/dto.VolumeCreate'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create volume
|
|
|
|
tags:
|
|
|
|
- Container Volume
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: create container volume [name]
|
|
|
|
formatZH: 创建容器存储卷 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/volume/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除容器存储卷
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDelete'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete volume
|
|
|
|
tags:
|
|
|
|
- Container Volume
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- names
|
|
|
|
formatEN: delete container volume [names]
|
|
|
|
formatZH: 删除容器存储卷 [names]
|
|
|
|
paramKeys: []
|
|
|
|
/containers/volume/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取容器存储卷分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-07 18:48:32 +08:00
|
|
|
$ref: '#/definitions/dto.SearchWithPage'
|
2023-01-05 11:57:03 +08:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page volumes
|
|
|
|
tags:
|
|
|
|
- Container Volume
|
2023-08-02 16:47:30 +08:00
|
|
|
/cronjob/record/log:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取计划任务记录日志
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperateByID'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load Cronjob record log
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
2023-01-05 11:57:03 +08:00
|
|
|
/cronjobs:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建计划任务
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CronjobCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create cronjob
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- type
|
|
|
|
- name
|
|
|
|
formatEN: create cronjob [type][name]
|
|
|
|
formatZH: 创建计划任务 [type][name]
|
|
|
|
paramKeys: []
|
|
|
|
/cronjobs/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除计划任务
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-04-12 14:48:30 +08:00
|
|
|
$ref: '#/definitions/dto.CronjobBatchDelete'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete cronjob
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: cronjobs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: ids
|
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: names
|
|
|
|
bodyKeys:
|
|
|
|
- ids
|
|
|
|
formatEN: delete cronjob [names]
|
|
|
|
formatZH: 删除计划任务 [names]
|
|
|
|
paramKeys: []
|
|
|
|
/cronjobs/download:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 下载计划任务记录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CronjobDownload'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Download cronjob records
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: job_records
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: recordID
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: file
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: file
|
|
|
|
bodyKeys:
|
|
|
|
- recordID
|
|
|
|
formatEN: download the cronjob record [file]
|
|
|
|
formatZH: 下载计划任务记录 [file]
|
|
|
|
paramKeys: []
|
|
|
|
/cronjobs/handle:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 手动执行计划任务
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperateByID'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Handle cronjob once
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: cronjobs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: manually execute the cronjob [name]
|
|
|
|
formatZH: 手动执行计划任务 [name]
|
|
|
|
paramKeys: []
|
2023-04-07 12:02:10 +08:00
|
|
|
/cronjobs/records/clean:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 清空计划任务记录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
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-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-07 12:02:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Clean job records
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: cronjobs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-07 12:02:10 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-04-07 12:02:10 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: clean cronjob [name] records
|
|
|
|
formatZH: 清空计划任务记录 [name]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/cronjobs/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取计划任务分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SearchWithPage'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page cronjobs
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
/cronjobs/search/records:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取计划任务记录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SearchRecord'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page job records
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
/cronjobs/status:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新计划任务状态
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CronjobUpdateStatus'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update cronjob status
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: cronjobs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
- status
|
|
|
|
formatEN: change the status of cronjob [name] to [status].
|
|
|
|
formatZH: 修改计划任务 [name] 状态为 [status]
|
|
|
|
paramKeys: []
|
|
|
|
/cronjobs/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新计划任务
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CronjobUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update cronjob
|
|
|
|
tags:
|
|
|
|
- Cronjob
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: cronjobs
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: update cronjob [name]
|
|
|
|
formatZH: 更新计划任务 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/dashboard/base/:ioOption/:netOption:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取首页基础数据
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: ioOption
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: netOption
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DashboardBase'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load dashboard base info
|
|
|
|
tags:
|
|
|
|
- Dashboard
|
|
|
|
/dashboard/current/:ioOption/:netOption:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取首页实时数据
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: ioOption
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: netOption
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DashboardCurrent'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load dashboard current info
|
|
|
|
tags:
|
|
|
|
- Dashboard
|
|
|
|
/databases:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建 mysql 数据库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.MysqlDBCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create mysql database
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: create mysql database [name]
|
|
|
|
formatZH: 创建 mysql 数据库 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/databases/baseinfo:
|
2023-08-29 10:50:15 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取 mysql 基础信息
|
2023-08-29 10:50:15 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-09-16 13:16:15 +08:00
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DBBaseInfo'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load mysql base info
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
/databases/change/access:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改 mysql 访问权限
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ChangeDBInfo'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Change mysql access
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: database_mysqls
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Update database [name] access
|
|
|
|
formatZH: 更新数据库 [name] 访问权限
|
|
|
|
paramKeys: []
|
|
|
|
/databases/change/password:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改 mysql 密码
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ChangeDBInfo'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Change mysql password
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: database_mysqls
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Update database [name] password
|
|
|
|
formatZH: 更新数据库 [name] 密码
|
|
|
|
paramKeys: []
|
|
|
|
/databases/conffile/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 上传替换 mysql 配置文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.MysqlConfUpdateByFile'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update mysql conf by upload file
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: update the mysql database configuration information
|
|
|
|
formatZH: 更新 mysql 数据库配置信息
|
|
|
|
paramKeys: []
|
2023-08-31 22:28:13 +08:00
|
|
|
/databases/db:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建远程数据库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DatabaseCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create database
|
|
|
|
tags:
|
|
|
|
- Database
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
formatEN: create database [name][type]
|
|
|
|
formatZH: 创建远程数据库 [name][type]
|
|
|
|
paramKeys: []
|
|
|
|
/databases/db/:name:
|
|
|
|
get:
|
|
|
|
description: 获取远程数据库
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DatabaseInfo'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get databases
|
|
|
|
tags:
|
|
|
|
- Database
|
|
|
|
/databases/db/check:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 检测远程数据库连接性
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DatabaseCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Check database
|
|
|
|
tags:
|
|
|
|
- Database
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
formatEN: check if database [name][type] is connectable
|
|
|
|
formatZH: 检测远程数据库 [name][type] 连接性
|
|
|
|
paramKeys: []
|
|
|
|
/databases/db/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除远程数据库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperateByID'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete database
|
|
|
|
tags:
|
|
|
|
- Database
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: databases
|
|
|
|
input_column: id
|
|
|
|
input_value: ids
|
|
|
|
isList: true
|
|
|
|
output_column: name
|
|
|
|
output_value: names
|
|
|
|
bodyKeys:
|
|
|
|
- ids
|
|
|
|
formatEN: delete database [names]
|
|
|
|
formatZH: 删除远程数据库 [names]
|
|
|
|
paramKeys: []
|
|
|
|
/databases/db/list/:type:
|
|
|
|
get:
|
|
|
|
description: 获取远程数据库列表
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.DatabaseOption'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List databases
|
|
|
|
tags:
|
|
|
|
- Database
|
|
|
|
/databases/db/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取远程数据库列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DatabaseSearch'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page databases
|
|
|
|
tags:
|
|
|
|
- Database
|
|
|
|
/databases/db/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新远程数据库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DatabaseUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update database
|
|
|
|
tags:
|
|
|
|
- Database
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: update database [name]
|
|
|
|
formatZH: 更新远程数据库 [name]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/databases/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除 mysql 数据库
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.MysqlDBDelete'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete mysql database
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: database_mysqls
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: delete mysql database [name]
|
|
|
|
formatZH: 删除 mysql 数据库 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/databases/del/check:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Mysql 数据库删除前检查
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-08-29 10:50:15 +08:00
|
|
|
$ref: '#/definitions/dto.MysqlDBDeleteCheck'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Check before delete mysql database
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
/databases/description/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 mysql 数据库库描述信息
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 15:48:18 +08:00
|
|
|
$ref: '#/definitions/dto.UpdateDescription'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update mysql database description
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: database_mysqls
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
- description
|
|
|
|
formatEN: The description of the mysql database [name] is modified => [description]
|
|
|
|
formatZH: mysql 数据库 [name] 描述信息修改 [description]
|
|
|
|
paramKeys: []
|
2023-08-29 10:50:15 +08:00
|
|
|
/databases/load:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-07-31 11:28:41 +08:00
|
|
|
description: 从服务器获取
|
2023-08-29 10:50:15 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-09-16 13:16:15 +08:00
|
|
|
$ref: '#/definitions/dto.MysqlLoadDB'
|
2023-07-31 11:28:41 +08:00
|
|
|
responses: {}
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load mysql database from remote
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
2023-08-02 16:47:30 +08:00
|
|
|
/databases/load/file:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取数据库文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load Database file
|
|
|
|
tags:
|
|
|
|
- Database
|
2023-01-05 11:57:03 +08:00
|
|
|
/databases/options:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 mysql 数据库列表
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageInfo'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
2023-08-03 16:19:30 +08:00
|
|
|
$ref: '#/definitions/dto.MysqlOption'
|
2023-07-06 18:04:22 +08:00
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List mysql database names
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
/databases/redis/backup/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 redis 备份记录分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageInfo'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page redis backups
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
/databases/redis/conf:
|
|
|
|
get:
|
|
|
|
description: 获取 redis 配置信息
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.RedisConf'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load redis conf
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
/databases/redis/conf/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 redis 配置信息
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.RedisConfUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update redis conf
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: update the redis database configuration information
|
|
|
|
formatZH: 更新 redis 数据库配置信息
|
|
|
|
paramKeys: []
|
|
|
|
/databases/redis/conffile/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 上传更新 redis 配置信息
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.RedisConfUpdateByFile'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update redis conf by file
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: update the redis database configuration information
|
|
|
|
formatZH: 更新 redis 数据库配置信息
|
|
|
|
paramKeys: []
|
|
|
|
/databases/redis/password:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 redis 密码
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-09-13 14:10:11 +08:00
|
|
|
$ref: '#/definitions/dto.ChangeRedisPass'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Change redis password
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: change the password of the redis database
|
|
|
|
formatZH: 修改 redis 数据库密码
|
|
|
|
paramKeys: []
|
|
|
|
/databases/redis/persistence/conf:
|
|
|
|
get:
|
|
|
|
description: 获取 redis 持久化配置
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.RedisPersistence'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load redis persistence conf
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
/databases/redis/persistence/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 redis 持久化配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.RedisConfPersistenceUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update redis persistence conf
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: redis database persistence configuration update
|
|
|
|
formatZH: redis 数据库持久化配置更新
|
|
|
|
paramKeys: []
|
|
|
|
/databases/redis/status:
|
|
|
|
get:
|
|
|
|
description: 获取 redis 状态信息
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.RedisStatus'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load redis status info
|
|
|
|
tags:
|
|
|
|
- Database Redis
|
|
|
|
/databases/remote:
|
2023-07-24 14:55:26 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-08-29 10:50:15 +08:00
|
|
|
description: 获取 mysql 远程访问权限
|
2023-07-24 14:55:26 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-09-16 13:16:15 +08:00
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
2023-07-24 14:55:26 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
2023-08-29 10:50:15 +08:00
|
|
|
schema:
|
|
|
|
type: boolean
|
2023-07-24 14:55:26 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-08-29 10:50:15 +08:00
|
|
|
summary: Load mysql remote access
|
2023-07-24 14:55:26 +08:00
|
|
|
tags:
|
2023-08-29 10:50:15 +08:00
|
|
|
- Database Mysql
|
2023-01-05 11:57:03 +08:00
|
|
|
/databases/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 mysql 数据库列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-07-24 14:55:26 +08:00
|
|
|
$ref: '#/definitions/dto.MysqlDBSearch'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page mysql databases
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
/databases/status:
|
2023-08-29 10:50:15 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取 mysql 状态信息
|
2023-08-29 10:50:15 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-09-16 13:16:15 +08:00
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.MysqlStatus'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load mysql status info
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
/databases/variables:
|
2023-08-29 10:50:15 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取 mysql 性能参数信息
|
2023-08-29 10:50:15 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-09-16 13:16:15 +08:00
|
|
|
$ref: '#/definitions/dto.OperationWithNameAndType'
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.MysqlVariables'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load mysql variables info
|
|
|
|
tags:
|
|
|
|
- Database Mysql
|
|
|
|
/databases/variables/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: mysql 性能调优
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.MysqlVariablesUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update mysql variables
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Database Mysql
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: adjust mysql database performance parameters
|
|
|
|
formatZH: 调整 mysql 数据库性能参数
|
|
|
|
paramKeys: []
|
|
|
|
/files:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 创建文件/文件夹
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Create file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- path
|
|
|
|
formatEN: Create dir or file [path]
|
|
|
|
formatZH: 创建文件/文件夹 [path]
|
|
|
|
paramKeys: []
|
|
|
|
/files/batch/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 批量删除文件/文件夹
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileBatchDelete'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Batch delete file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- paths
|
|
|
|
formatEN: Batch delete dir or file [paths]
|
|
|
|
formatZH: 批量删除文件/文件夹 [paths]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-03-08 15:33:43 +08:00
|
|
|
/files/check:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 检测文件是否存在
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.FilePathCheck'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-08 15:33:43 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Check file exist
|
|
|
|
tags:
|
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- path
|
|
|
|
formatEN: Check whether file [path] exists
|
|
|
|
formatZH: 检测文件 [path] 是否存在
|
|
|
|
paramKeys: []
|
2023-05-30 15:30:57 +08:00
|
|
|
/files/chunkdownload:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 分片下载下载文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.FileDownload'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-30 15:30:57 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Chunk Download file
|
|
|
|
tags:
|
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: Download file [name]
|
|
|
|
formatZH: 下载文件 [name]
|
|
|
|
paramKeys: []
|
2023-03-18 10:03:40 +08:00
|
|
|
/files/chunkupload:
|
|
|
|
post:
|
|
|
|
description: 分片上传文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: formData
|
|
|
|
name: file
|
|
|
|
required: true
|
|
|
|
type: file
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-18 10:03:40 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: ChunkUpload file
|
|
|
|
tags:
|
|
|
|
- File
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/compress:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 压缩文件
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileCompress'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Compress file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
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
|
|
|
|
formatEN: Compress file [name]
|
|
|
|
formatZH: 压缩文件 [name]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/content:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取文件内容
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileOption'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-01-05 11:57:03 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.FileInfo'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Load file content
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
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
|
|
|
- path
|
|
|
|
formatEN: Load file content [path]
|
|
|
|
formatZH: 获取文件内容 [path]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/decompress:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 解压文件
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileDeCompress'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Decompress file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- path
|
|
|
|
formatEN: Decompress file [path]
|
|
|
|
formatZH: 解压 [path]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 删除文件/文件夹
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileDelete'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Delete file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- path
|
|
|
|
formatEN: Delete dir or file [path]
|
|
|
|
formatZH: 删除文件/文件夹 [path]
|
|
|
|
paramKeys: []
|
|
|
|
/files/download:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 下载文件
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileDownload'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Download file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: Download file [name]
|
|
|
|
formatZH: 下载文件 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/files/mode:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 修改文件权限
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Change file mode
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- path
|
|
|
|
- mode
|
|
|
|
formatEN: Change mode [paths] => [mode]
|
|
|
|
formatZH: 修改权限 [paths] => [mode]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/move:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 移动文件
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileMove'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Move file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- oldPaths
|
|
|
|
- newPath
|
|
|
|
formatEN: Move [oldPaths] => [newPath]
|
|
|
|
formatZH: 移动文件 [oldPaths] => [newPath]
|
|
|
|
paramKeys: []
|
2023-04-26 22:18:16 +08:00
|
|
|
/files/owner:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改文件用户/组
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.FileRoleUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-26 22:18:16 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Change file owner
|
|
|
|
tags:
|
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- path
|
|
|
|
- user
|
|
|
|
- group
|
|
|
|
formatEN: Change owner [paths] => [user]/[group]
|
|
|
|
formatZH: 修改用户/组 [paths] => [user]/[group]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/rename:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 修改文件名称
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileRename'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Change file name
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
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
|
|
|
- oldName
|
|
|
|
- newName
|
|
|
|
formatEN: Rename [oldName] => [newName]
|
|
|
|
formatZH: 重命名 [oldName] => [newName]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/save:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新文件内容
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileEdit'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update file content
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- path
|
|
|
|
formatEN: Update file content [path]
|
|
|
|
formatZH: 更新文件内容 [path]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/search:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取文件列表
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileOption'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-01-05 11:57:03 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.FileInfo'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: List files
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
|
|
|
/files/size:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取文件夹大小
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.DirSizeReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Load file size
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- path
|
|
|
|
formatEN: Load file size [path]
|
|
|
|
formatZH: 获取文件夹大小 [path]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/tree:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 加载文件树
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileOption'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.FileTree'
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load files tree
|
|
|
|
tags:
|
|
|
|
- File
|
|
|
|
/files/upload:
|
|
|
|
post:
|
|
|
|
description: 上传文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: formData
|
|
|
|
name: file
|
|
|
|
required: true
|
|
|
|
type: file
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Upload file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- path
|
|
|
|
formatEN: Upload file [path]
|
|
|
|
formatZH: 上传文件 [path]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-03-02 13:54:07 +08:00
|
|
|
/files/upload/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 分页获取上传文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.SearchUploadWithPage'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.FileInfo'
|
|
|
|
type: array
|
2023-03-02 13:54:07 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page file
|
|
|
|
tags:
|
|
|
|
- File
|
2023-01-05 11:57:03 +08:00
|
|
|
/files/wget:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 下载远端文件
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.FileWget'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Wget file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- File
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- url
|
|
|
|
- path
|
|
|
|
- name
|
|
|
|
formatEN: Download url => [path]/[name]
|
|
|
|
formatZH: 下载 url => [path]/[name]
|
|
|
|
paramKeys: []
|
2023-04-07 17:46:10 +08:00
|
|
|
/groups:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建系统组
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.GroupCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-07 17:46:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create group
|
|
|
|
tags:
|
|
|
|
- System Group
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- type
|
|
|
|
formatEN: create group [name][type]
|
|
|
|
formatZH: 创建组 [name][type]
|
|
|
|
paramKeys: []
|
|
|
|
/groups/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除系统组
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperateByID'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-07 17:46:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete group
|
|
|
|
tags:
|
|
|
|
- System Group
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: groups
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-07 17:46:10 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-04-07 17:46:10 +08:00
|
|
|
output_value: name
|
|
|
|
- db: groups
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-07 17:46:10 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: type
|
2023-04-07 17:46:10 +08:00
|
|
|
output_value: type
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: delete group [type][name]
|
|
|
|
formatZH: 删除组 [type][name]
|
|
|
|
paramKeys: []
|
|
|
|
/groups/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 查询系统组
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.GroupSearch'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-05-30 15:30:57 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.GroupInfo'
|
|
|
|
type: array
|
2023-04-07 17:46:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List groups
|
|
|
|
tags:
|
|
|
|
- System Group
|
|
|
|
/groups/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新系统组
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.GroupUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-07 17:46:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update group
|
|
|
|
tags:
|
|
|
|
- System Group
|
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 上传文件更新 SSH 配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SSHConf'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-18 13:56:08 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Update host SSH setting by file
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: update SSH conf
|
|
|
|
formatZH: 修改 SSH 配置文件
|
|
|
|
paramKeys: []
|
2023-08-02 16:47:30 +08:00
|
|
|
/host/ssh/conf:
|
|
|
|
get:
|
2023-09-20 14:18:20 +08:00
|
|
|
description: 获取 SSH 配置文件
|
2023-08-02 16:47:30 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Load host SSH conf
|
2023-08-02 16:47:30 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
2023-05-18 13:56:08 +08:00
|
|
|
/host/ssh/generate:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-09-20 14:18:20 +08:00
|
|
|
description: 生成 SSH 密钥
|
2023-05-18 13:56:08 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.GenerateSSH'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-18 13:56:08 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Generate host SSH secret
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: generate SSH secret
|
|
|
|
formatZH: '生成 SSH 密钥 '
|
|
|
|
paramKeys: []
|
2023-09-20 14:18:20 +08:00
|
|
|
/host/ssh/log:
|
2023-05-18 13:56:08 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-09-20 14:18:20 +08:00
|
|
|
description: 获取 SSH 登录日志
|
2023-05-18 13:56:08 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SearchSSHLog'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SSHLog'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Load host SSH logs
|
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
/host/ssh/log/analysis:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 分析 SSH 登录日志
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SearchForAnalysis'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.SSHLogAnalysis'
|
|
|
|
type: array
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Analysis host SSH logs
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
/host/ssh/operate:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改 SSH 服务状态
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.Operate'
|
|
|
|
responses: {}
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Operate SSH
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- operation
|
|
|
|
formatEN: '[operation] SSH'
|
|
|
|
formatZH: '[operation] SSH '
|
|
|
|
paramKeys: []
|
|
|
|
/host/ssh/search:
|
|
|
|
post:
|
|
|
|
description: 加载 SSH 配置信息
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SSHInfo'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Load host SSH setting info
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
/host/ssh/secret:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-09-20 14:18:20 +08:00
|
|
|
description: 获取 SSH 密钥
|
2023-05-18 13:56:08 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.GenerateLoad'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-18 13:56:08 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Load host SSH secret
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
/host/ssh/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 SSH 配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SettingUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-18 13:56:08 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-09-20 14:18:20 +08:00
|
|
|
summary: Update host SSH setting
|
2023-05-18 13:56:08 +08:00
|
|
|
tags:
|
|
|
|
- SSH
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- key
|
|
|
|
- value
|
|
|
|
formatEN: update SSH setting [key] => [value]
|
|
|
|
formatZH: 修改 SSH 配置 [key] => [value]
|
|
|
|
paramKeys: []
|
2023-07-31 11:28:41 +08:00
|
|
|
/host/tool:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取主机工具状态
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.HostToolReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get tool
|
|
|
|
tags:
|
|
|
|
- Host tool
|
|
|
|
/host/tool/config:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 操作主机工具配置文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.HostToolConfig'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get tool config
|
|
|
|
tags:
|
|
|
|
- Host tool
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- operate
|
|
|
|
formatEN: '[operate] tool config'
|
|
|
|
formatZH: '[operate] 主机工具配置文件 '
|
|
|
|
paramKeys: []
|
|
|
|
/host/tool/create:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建主机工具配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.HostToolCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create Host tool Config
|
|
|
|
tags:
|
|
|
|
- Host tool
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- type
|
|
|
|
formatEN: create [type] config
|
|
|
|
formatZH: 创建 [type] 配置
|
|
|
|
paramKeys: []
|
|
|
|
/host/tool/log:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取主机工具日志
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.HostToolLogReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get tool
|
|
|
|
tags:
|
|
|
|
- Host tool
|
|
|
|
/host/tool/operate:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 操作主机工具
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.HostToolReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Operate tool
|
|
|
|
tags:
|
|
|
|
- Host tool
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- operate
|
|
|
|
- type
|
|
|
|
formatEN: '[operate] [type]'
|
|
|
|
formatZH: '[operate] [type] '
|
|
|
|
paramKeys: []
|
|
|
|
/host/tool/supervisor/process:
|
2023-08-01 17:31:42 +08:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 Supervisor 进程配置
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get Supervisor process config
|
|
|
|
tags:
|
|
|
|
- Host tool
|
2023-07-31 11:28:41 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 操作守护进程
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.SupervisorProcessConfig'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create Supervisor process
|
|
|
|
tags:
|
|
|
|
- Host tool
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- operate
|
|
|
|
formatEN: '[operate] process'
|
|
|
|
formatZH: '[operate] 守护进程 '
|
|
|
|
paramKeys: []
|
2023-08-01 17:31:42 +08:00
|
|
|
/host/tool/supervisor/process/file:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 操作 Supervisor 进程文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.SupervisorProcessFileReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get Supervisor process config
|
|
|
|
tags:
|
|
|
|
- Host tool
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- operate
|
2023-08-02 16:47:30 +08:00
|
|
|
formatEN: '[operate] Supervisor Process Config file'
|
2023-08-01 17:31:42 +08:00
|
|
|
formatZH: '[operate] Supervisor 进程文件 '
|
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/hosts:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 创建主机
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.HostOperate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Create host
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Host
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
2023-02-13 17:13:55 +08:00
|
|
|
- addr
|
|
|
|
formatEN: create host [name][addr]
|
|
|
|
formatZH: 创建主机 [name][addr]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/hosts/command:
|
|
|
|
get:
|
|
|
|
description: 获取快速命令列表
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CommandInfo'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List commands
|
|
|
|
tags:
|
|
|
|
- Command
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 创建快速命令
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.CommandOperate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Create command
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Command
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- command
|
|
|
|
formatEN: create quick command [name][command]
|
|
|
|
formatZH: 创建快捷命令 [name][command]
|
|
|
|
paramKeys: []
|
|
|
|
/hosts/command/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除快速命令
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDeleteReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete command
|
|
|
|
tags:
|
|
|
|
- Command
|
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: commands
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-02-13 17:13:55 +08:00
|
|
|
input_value: ids
|
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: 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
|
|
|
|
formatEN: delete quick command [names]
|
|
|
|
formatZH: 删除快捷命令 [names]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/hosts/command/search:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 获取快速命令列表分页
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
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-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
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Page commands
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Command
|
|
|
|
/hosts/command/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 更新快速命令
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-13 17:13:55 +08:00
|
|
|
$ref: '#/definitions/dto.CommandOperate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Update command
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-13 17:13:55 +08:00
|
|
|
- Command
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- name
|
2023-02-13 17:13:55 +08:00
|
|
|
formatEN: update quick command [name]
|
|
|
|
formatZH: 更新快捷命令 [name]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/hosts/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-13 17:13:55 +08:00
|
|
|
description: 删除主机
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-03-02 13:54:07 +08:00
|
|
|
$ref: '#/definitions/dto.BatchDeleteReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 17:13:55 +08:00
|
|
|
summary: Delete host
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Host
|
2023-02-13 17:13:55 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: hosts
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-03-02 13:54:07 +08:00
|
|
|
input_value: ids
|
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: addr
|
2023-03-02 13:54:07 +08:00
|
|
|
output_value: addrs
|
2023-02-13 17:13:55 +08:00
|
|
|
bodyKeys:
|
2023-03-02 13:54:07 +08:00
|
|
|
- ids
|
|
|
|
formatEN: delete host [addrs]
|
|
|
|
formatZH: 删除主机 [addrs]
|
2023-02-13 17:13:55 +08:00
|
|
|
paramKeys: []
|
2023-03-30 16:07:28 +08:00
|
|
|
/hosts/firewall/base:
|
|
|
|
get:
|
|
|
|
description: 获取防火墙基础信息
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.FirewallBaseInfo'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load firewall base info
|
|
|
|
tags:
|
|
|
|
- Firewall
|
2023-05-12 22:30:50 +08:00
|
|
|
/hosts/firewall/batch:
|
2023-03-30 16:07:28 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 批量删除防火墙规则
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchRuleOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-30 16:07:28 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create group
|
|
|
|
tags:
|
|
|
|
- Firewall
|
2023-05-12 22:30:50 +08:00
|
|
|
/hosts/firewall/ip:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建防火墙 IP 规则
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.AddrRuleOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-12 22:30:50 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create group
|
|
|
|
tags:
|
|
|
|
- Firewall
|
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改防火墙状态
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.FirewallOperation'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page firewall status
|
|
|
|
tags:
|
|
|
|
- Firewall
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- operation
|
|
|
|
formatEN: '[operation] firewall'
|
|
|
|
formatZH: '[operation] 防火墙'
|
|
|
|
paramKeys: []
|
|
|
|
/hosts/firewall/port:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建防火墙端口规则
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PortRuleOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-30 16:07:28 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create group
|
|
|
|
tags:
|
|
|
|
- Firewall
|
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取防火墙规则列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SearchWithPage'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page firewall rules
|
|
|
|
tags:
|
|
|
|
- Firewall
|
2023-05-12 22:30:50 +08:00
|
|
|
/hosts/firewall/update/addr:
|
2023-03-30 16:07:28 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 ip 防火墙规则
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.AddrRuleUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-30 16:07:28 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create group
|
|
|
|
tags:
|
|
|
|
- Firewall
|
2023-08-15 22:48:11 +08:00
|
|
|
/hosts/firewall/update/description:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新防火墙描述
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.UpdateFirewallDescription'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update rule description
|
|
|
|
tags:
|
|
|
|
- Firewall
|
2023-03-30 16:07:28 +08:00
|
|
|
/hosts/firewall/update/port:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新端口防火墙规则
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PortRuleUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-30 16:07:28 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create group
|
|
|
|
tags:
|
|
|
|
- Firewall
|
2023-01-05 11:57:03 +08:00
|
|
|
/hosts/search:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-03-02 13:54:07 +08:00
|
|
|
description: 获取主机列表分页
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-03-02 13:54:07 +08:00
|
|
|
$ref: '#/definitions/dto.SearchHostWithPage'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.HostTree'
|
|
|
|
type: array
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-03-02 13:54:07 +08:00
|
|
|
summary: Page host
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Host
|
|
|
|
/hosts/test/byid/:id:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 测试主机连接
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
2023-01-05 11:57:03 +08:00
|
|
|
in: path
|
|
|
|
name: id
|
2023-01-04 22:31:51 +08:00
|
|
|
required: true
|
2023-01-05 11:57:03 +08:00
|
|
|
type: integer
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
type: boolean
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Test host conn by host id
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Host
|
|
|
|
/hosts/test/byinfo:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 测试主机连接
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.HostConnTest'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Test host conn by info
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Host
|
2023-03-02 13:54:07 +08:00
|
|
|
/hosts/tree:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 加载主机树
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SearchForTree'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.HostTree'
|
|
|
|
type: array
|
2023-03-02 13:54:07 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load host tree
|
|
|
|
tags:
|
|
|
|
- Host
|
2023-01-05 11:57:03 +08:00
|
|
|
/hosts/update:
|
2023-04-07 17:46:10 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新主机
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.HostOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-07 17:46:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update host
|
|
|
|
tags:
|
|
|
|
- Host
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
- addr
|
|
|
|
formatEN: update host [name][addr]
|
|
|
|
formatZH: 更新主机信息 [name][addr]
|
|
|
|
paramKeys: []
|
|
|
|
/hosts/update/group:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-03-02 13:54:07 +08:00
|
|
|
description: 切换分组
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-03-02 13:54:07 +08:00
|
|
|
$ref: '#/definitions/dto.ChangeHostGroup'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-03-02 13:54:07 +08:00
|
|
|
summary: Update host group
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Host
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-03-02 13:54:07 +08:00
|
|
|
BeforeFuntions:
|
|
|
|
- db: hosts
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-03-02 13:54:07 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: addr
|
2023-03-02 13:54:07 +08:00
|
|
|
output_value: addr
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
2023-03-02 13:54:07 +08:00
|
|
|
- id
|
|
|
|
- group
|
|
|
|
formatEN: change host [addr] group => [group]
|
|
|
|
formatZH: 切换主机[addr]分组 => [group]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/logs/clean:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 清空操作日志
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.CleanLog'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PageResult'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Clean operation logs
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Logs
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- logType
|
|
|
|
formatEN: Clean the [logType] log information
|
|
|
|
formatZH: 清空 [logType] 日志信息
|
|
|
|
paramKeys: []
|
|
|
|
/logs/login:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取系统登录日志列表分页
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-07 18:48:32 +08:00
|
|
|
$ref: '#/definitions/dto.SearchLgLogWithPage'
|
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
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Page login logs
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Logs
|
|
|
|
/logs/operation:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取系统操作日志列表分页
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-02-07 18:48:32 +08:00
|
|
|
$ref: '#/definitions/dto.SearchOpLogWithPage'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.PageResult'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Page operation logs
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Logs
|
2023-08-02 16:47:30 +08:00
|
|
|
/logs/system:
|
2023-09-20 16:24:26 +08:00
|
|
|
post:
|
2023-08-02 16:47:30 +08:00
|
|
|
description: 获取系统日志
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load system logs
|
|
|
|
tags:
|
|
|
|
- Logs
|
2023-09-20 16:24:26 +08:00
|
|
|
/logs/system/files:
|
|
|
|
get:
|
|
|
|
description: 获取系统日志文件列表
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load system log files
|
|
|
|
tags:
|
|
|
|
- Logs
|
2023-02-27 11:46:23 +08:00
|
|
|
/openResty:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
2023-02-27 11:46:23 +08:00
|
|
|
description: 获取 OpenResty 配置信息
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-01-05 11:57:03 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.FileInfo'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-27 11:46:23 +08:00
|
|
|
summary: Load OpenResty conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-27 11:46:23 +08:00
|
|
|
- OpenResty
|
|
|
|
/openResty/file:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-27 11:46:23 +08:00
|
|
|
description: 上传更新 OpenResty 配置文件
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.NginxConfigFileUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-27 11:46:23 +08:00
|
|
|
summary: Update OpenResty conf by upload file
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-27 11:46:23 +08:00
|
|
|
- OpenResty
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
2023-01-05 11:57:03 +08:00
|
|
|
bodyKeys: []
|
|
|
|
formatEN: Update nginx conf
|
|
|
|
formatZH: 更新 nginx 配置
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-02-27 11:46:23 +08:00
|
|
|
/openResty/scope:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-27 11:46:23 +08:00
|
|
|
description: 获取部分 OpenResty 配置信息
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.NginxScopeReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.NginxParam'
|
|
|
|
type: array
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-27 11:46:23 +08:00
|
|
|
summary: Load partial OpenResty conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-27 11:46:23 +08:00
|
|
|
- OpenResty
|
|
|
|
/openResty/status:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
2023-02-27 11:46:23 +08:00
|
|
|
description: 获取 OpenResty 状态信息
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.NginxStatus'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-27 11:46:23 +08:00
|
|
|
summary: Load OpenResty status info
|
2023-01-05 11:57:03 +08:00
|
|
|
tags:
|
2023-02-27 11:46:23 +08:00
|
|
|
- OpenResty
|
|
|
|
/openResty/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-02-27 11:46:23 +08:00
|
|
|
description: 更新 OpenResty 配置信息
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.NginxConfigUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-27 11:46:23 +08:00
|
|
|
summary: Update OpenResty conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-02-27 11:46:23 +08:00
|
|
|
- OpenResty
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: websiteId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- websiteId
|
|
|
|
formatEN: Update nginx conf [domain]
|
|
|
|
formatZH: 更新 nginx 配置 [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-06-28 14:50:10 +08:00
|
|
|
/process/stop:
|
|
|
|
post:
|
|
|
|
description: 停止进程
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.ProcessReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-06-28 14:50:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Stop Process
|
|
|
|
tags:
|
|
|
|
- Process
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- PID
|
|
|
|
formatEN: 结束进程 [PID]
|
|
|
|
formatZH: 结束进程 [PID]
|
|
|
|
paramKeys: []
|
2023-04-06 00:09:58 +08:00
|
|
|
/runtimes:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建运行环境
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.RuntimeCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-06 00:09:58 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create runtime
|
|
|
|
tags:
|
|
|
|
- Runtime
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: Create runtime [name]
|
|
|
|
formatZH: 创建运行环境 [name]
|
|
|
|
paramKeys: []
|
|
|
|
/runtimes/:id:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取运行环境
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-06 00:09:58 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get runtime
|
|
|
|
tags:
|
|
|
|
- Runtime
|
|
|
|
/runtimes/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除运行环境
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.RuntimeDelete'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-06 00:09:58 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete runtime
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Delete website [name]
|
|
|
|
formatZH: 删除网站 [name]
|
|
|
|
paramKeys: []
|
2023-09-25 17:50:14 +08:00
|
|
|
/runtimes/node/package:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 Node 项目的 scripts
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NodePackageReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get Node package scripts
|
|
|
|
tags:
|
|
|
|
- Runtime
|
2023-09-26 22:50:16 +08:00
|
|
|
/runtimes/operate:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 操作运行环境
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.RuntimeOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Operate runtime
|
|
|
|
tags:
|
|
|
|
- Runtime
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Operate runtime [name]
|
|
|
|
formatZH: 操作运行环境 [name]
|
|
|
|
paramKeys: []
|
2023-04-06 00:09:58 +08:00
|
|
|
/runtimes/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取运行环境列表
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.RuntimeSearch'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-06 00:09:58 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List runtimes
|
|
|
|
tags:
|
|
|
|
- Runtime
|
|
|
|
/runtimes/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新运行环境
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.RuntimeUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-06 00:09:58 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update runtime
|
|
|
|
tags:
|
|
|
|
- Runtime
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: Update runtime [name]
|
|
|
|
formatZH: 更新运行环境 [name]
|
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/settings/backup:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建备份账号
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BackupOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Create backup account
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- type
|
|
|
|
formatEN: create backup account [type]
|
|
|
|
formatZH: 创建备份账号 [type]
|
|
|
|
paramKeys: []
|
2023-03-02 13:54:07 +08:00
|
|
|
/settings/backup/:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 备份系统数据
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CommonBackup'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-02 13:54:07 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Backup system data
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- type
|
|
|
|
- name
|
|
|
|
- detailName
|
|
|
|
formatEN: backup [type] data [name][detailName]
|
|
|
|
formatZH: 备份 [type] 数据 [name][detailName]
|
|
|
|
paramKeys: []
|
2023-02-13 17:13:55 +08:00
|
|
|
/settings/backup/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除备份账号
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDeleteReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete backup account
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: backup_accounts
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-17 16:06:28 +08:00
|
|
|
input_value: id
|
2023-02-13 17:13:55 +08:00
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: type
|
2023-02-13 17:13:55 +08:00
|
|
|
output_value: types
|
|
|
|
bodyKeys:
|
2023-04-17 16:06:28 +08:00
|
|
|
- id
|
2023-02-13 17:13:55 +08:00
|
|
|
formatEN: delete backup account [types]
|
|
|
|
formatZH: 删除备份账号 [types]
|
|
|
|
paramKeys: []
|
2023-07-04 16:16:12 +08:00
|
|
|
/settings/backup/onedrive:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 OneDrive 信息
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load OneDrive info
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
2023-02-13 17:13:55 +08:00
|
|
|
/settings/backup/record/del:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除备份记录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDeleteReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete backup record
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: backup_records
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-02-13 17:13:55 +08:00
|
|
|
input_value: ids
|
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: file_name
|
2023-02-13 17:13:55 +08:00
|
|
|
output_value: files
|
|
|
|
bodyKeys:
|
|
|
|
- ids
|
|
|
|
formatEN: delete backup records [files]
|
|
|
|
formatZH: 删除备份记录 [files]
|
|
|
|
paramKeys: []
|
|
|
|
/settings/backup/record/download:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 下载备份记录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.DownloadRecord'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Download backup record
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- source
|
|
|
|
- fileName
|
|
|
|
formatEN: download backup records [source][fileName]
|
|
|
|
formatZH: 下载备份记录 [source][fileName]
|
|
|
|
paramKeys: []
|
|
|
|
/settings/backup/record/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取备份记录列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.RecordSearch'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page backup records
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
2023-03-02 13:54:07 +08:00
|
|
|
/settings/backup/recover:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 恢复系统数据
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CommonRecover'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-02 13:54:07 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Recover system data
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 从上传恢复系统数据
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.CommonRecover'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-02 13:54:07 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Recover system data by upload
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
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:
|
|
|
|
get:
|
|
|
|
description: 获取备份账号列表
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.BackupInfo'
|
|
|
|
type: array
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List backup accounts
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取 bucket 列表
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.ForBuckets'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List buckets
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
/settings/backup/search/files:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取备份账号内文件列表
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BackupSearchFile'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List files from backup accounts
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
/settings/backup/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新备份账号信息
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BackupOperate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 17:13:55 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update backup account
|
|
|
|
tags:
|
|
|
|
- Backup Account
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- type
|
|
|
|
formatEN: update backup account [types]
|
|
|
|
formatZH: 更新备份账号 [types]
|
|
|
|
paramKeys: []
|
2023-01-30 21:05:20 +08:00
|
|
|
/settings/basedir:
|
|
|
|
get:
|
|
|
|
description: 获取安装根目录
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load local backup dir
|
|
|
|
tags:
|
|
|
|
- System Setting
|
2023-09-28 15:40:17 +08:00
|
|
|
/settings/clean:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 清理系统垃圾文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/dto.Clean'
|
|
|
|
type: array
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: System clean
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: Clean system junk files
|
|
|
|
formatZH: 清理系统垃圾文件
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/settings/expired/handle:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 重置过期系统登录密码
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.PasswordUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Reset system password expired
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- System Setting
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
2023-01-05 11:57:03 +08:00
|
|
|
bodyKeys: []
|
|
|
|
formatEN: reset an expired Password
|
|
|
|
formatZH: 重置过期密码
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-06-28 14:50:10 +08:00
|
|
|
/settings/mfa/:interval:
|
2023-01-05 11:57:03 +08:00
|
|
|
get:
|
|
|
|
description: 获取 mfa 信息
|
2023-06-28 14:50:10 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: interval
|
|
|
|
required: true
|
|
|
|
type: string
|
2023-01-05 11:57:03 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/mfa.Otp'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load mfa info
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
/settings/mfa/bind:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: Mfa 绑定
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.MfaCredential'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Bind mfa
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- System Setting
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: bind mfa
|
|
|
|
formatZH: mfa 绑定
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/settings/monitor/clean:
|
|
|
|
post:
|
|
|
|
description: 清空监控数据
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Clean monitor datas
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: clean monitor datas
|
|
|
|
formatZH: 清空监控数据
|
|
|
|
paramKeys: []
|
|
|
|
/settings/password/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新系统登录密码
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.PasswordUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update system password
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: update system password
|
|
|
|
formatZH: 修改系统密码
|
|
|
|
paramKeys: []
|
2023-01-29 16:38:34 +08:00
|
|
|
/settings/port/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新系统端口
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.PortUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-29 16:38:34 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update system port
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- serverPort
|
|
|
|
formatEN: update system port => [serverPort]
|
|
|
|
formatZH: 修改系统端口 => [serverPort]
|
|
|
|
paramKeys: []
|
2023-09-28 15:40:17 +08:00
|
|
|
/settings/scan:
|
|
|
|
post:
|
|
|
|
description: 扫描系统垃圾文件
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Scan system
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys: []
|
|
|
|
formatEN: scan System Junk Files
|
|
|
|
formatZH: 扫描系统垃圾文件
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/settings/search:
|
|
|
|
post:
|
|
|
|
description: 加载系统配置信息
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.SettingInfo'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Load system setting info
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- System Setting
|
2023-02-01 16:15:31 +08:00
|
|
|
/settings/search/available:
|
|
|
|
get:
|
|
|
|
description: 获取系统可用状态
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-01 16:15:31 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load system available status
|
|
|
|
tags:
|
|
|
|
- System Setting
|
2023-01-09 22:55:10 +08:00
|
|
|
/settings/snapshot:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 创建系统快照
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SnapshotCreate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-09 22:55:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-02-13 15:48:18 +08:00
|
|
|
summary: Create system snapshot
|
2023-01-09 22:55:10 +08:00
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 删除系统快照
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.BatchDeleteReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-09 22:55:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Delete system backup
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: snapshots
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-09 22:55:10 +08:00
|
|
|
input_value: ids
|
|
|
|
isList: true
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-09 22:55:10 +08:00
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新快照描述信息
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.UpdateDescription'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 15:48:18 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update snapshot description
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: snapshots
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-02-13 15:48:18 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-02-13 15:48:18 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
- description
|
|
|
|
formatEN: The description of the snapshot [name] is modified => [description]
|
|
|
|
formatZH: 快照 [name] 描述信息修改 [description]
|
|
|
|
paramKeys: []
|
|
|
|
/settings/snapshot/import:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 导入已有快照
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SnapshotImport'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-02-13 15:48:18 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Import system snapshot
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 从系统快照恢复
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SnapshotRecover'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-09 22:55:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Recover system backup
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: snapshots
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-09 22:55:10 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-09 22:55:10 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Recover from system backup [name]
|
|
|
|
formatZH: 从系统快照 [name] 恢复
|
|
|
|
paramKeys: []
|
|
|
|
/settings/snapshot/rollback:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 从系统快照回滚
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SnapshotRecover'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-09 22:55:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Rollback system backup
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: snapshots
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-09 22:55:10 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-09 22:55:10 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Rollback from system backup [name]
|
|
|
|
formatZH: 从系统快照 [name] 回滚
|
|
|
|
paramKeys: []
|
|
|
|
/settings/snapshot/search:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取系统快照列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
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'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Page system snapshot
|
|
|
|
tags:
|
|
|
|
- System Setting
|
2023-08-29 10:50:15 +08:00
|
|
|
/settings/snapshot/status:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取快照状态
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.OperateByID'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load Snapshot status
|
|
|
|
tags:
|
|
|
|
- System Setting
|
2023-08-02 22:36:37 +08:00
|
|
|
/settings/ssl/download:
|
|
|
|
post:
|
|
|
|
description: 下载证书
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Download system cert
|
|
|
|
tags:
|
|
|
|
- System Setting
|
2023-04-26 22:18:16 +08:00
|
|
|
/settings/ssl/info:
|
|
|
|
get:
|
|
|
|
description: 获取证书信息
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SettingInfo'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load system cert info
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
/settings/ssl/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改系统 ssl 登录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.SSLUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-26 22:18:16 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update system ssl
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- ssl
|
|
|
|
formatEN: update system ssl => [ssl]
|
|
|
|
formatZH: 修改系统 ssl => [ssl]
|
|
|
|
paramKeys: []
|
2023-05-23 15:43:51 +08:00
|
|
|
/settings/time/option:
|
|
|
|
get:
|
|
|
|
description: 加载系统可用时区
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-23 15:43:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load time zone options
|
|
|
|
tags:
|
|
|
|
- System Setting
|
2023-01-05 11:57:03 +08:00
|
|
|
/settings/time/sync:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
2023-05-23 15:43:51 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 系统时间同步
|
2023-05-23 15:43:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-05-24 15:43:21 +08:00
|
|
|
$ref: '#/definitions/dto.SyncTime'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-01-05 11:57:03 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
type: string
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Sync system time
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- System Setting
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions: []
|
2023-05-23 15:43:51 +08:00
|
|
|
bodyKeys:
|
|
|
|
- ntpSite
|
2023-05-24 15:43:21 +08:00
|
|
|
formatEN: sync system time [ntpSite]
|
|
|
|
formatZH: 系统时间同步[ntpSite]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/settings/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新系统配置
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/dto.SettingUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update system setting
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- key
|
|
|
|
- value
|
|
|
|
formatEN: update system setting [key] => [value]
|
|
|
|
formatZH: 修改系统配置 [key] => [value]
|
|
|
|
paramKeys: []
|
2023-01-09 22:55:10 +08:00
|
|
|
/settings/upgrade:
|
|
|
|
get:
|
2023-03-21 15:16:28 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取版本 release notes
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.Upgrade'
|
2023-01-09 22:55:10 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-09 22:55:10 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-03-21 15:16:28 +08:00
|
|
|
summary: Load release notes by version
|
2023-01-09 22:55:10 +08:00
|
|
|
tags:
|
|
|
|
- System Setting
|
2023-01-30 21:05:20 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 系统更新
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/dto.Upgrade'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-30 21:05:20 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Upgrade
|
|
|
|
tags:
|
|
|
|
- System Setting
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- version
|
|
|
|
formatEN: upgrade service => [version]
|
|
|
|
formatZH: 更新系统 => [version]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 创建网站
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Create website
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- primaryDomain
|
|
|
|
formatEN: Create website [primaryDomain]
|
|
|
|
formatZH: 创建网站 [primaryDomain]
|
|
|
|
paramKeys: []
|
|
|
|
/websites/:id:
|
2023-01-04 22:31:51 +08:00
|
|
|
get:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 id 查询网站
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
2023-01-05 11:57:03 +08:00
|
|
|
- description: request
|
2023-01-04 22:31:51 +08:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/response.WebsiteDTO'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Search website by id
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
2023-04-06 00:09:58 +08:00
|
|
|
/websites/:id/config/:type:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 id 查询网站 nginx
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.FileInfo'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Search website nginx by id
|
|
|
|
tags:
|
|
|
|
- Website Nginx
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/:id/https:
|
2023-01-04 22:31:51 +08:00
|
|
|
get:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
2023-01-04 22:31:51 +08:00
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取 https 配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/response.WebsiteHTTPS'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Load https conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website HTTPS
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新 https 配置
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteHTTPSOp'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-01-05 11:57:03 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.WebsiteHTTPS'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update https conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website HTTPS
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: websiteId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- websiteId
|
|
|
|
formatEN: Update website https [domain] conf
|
|
|
|
formatZH: 更新网站 [domain] https 配置
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/acme:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 创建网站 acme
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteAcmeAccountCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/response.WebsiteAcmeAccountDTO'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Create website acme account
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Acme
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- email
|
|
|
|
formatEN: Create website acme [email]
|
|
|
|
formatZH: 创建网站 acme [email]
|
|
|
|
paramKeys: []
|
|
|
|
/websites/acme/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 删除网站 acme
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteResourceReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Delete website acme account
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Acme
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
2023-01-05 11:57:03 +08:00
|
|
|
- db: website_acme_accounts
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-04 22:31:51 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: email
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: email
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
|
|
|
- id
|
2023-01-05 11:57:03 +08:00
|
|
|
formatEN: Delete website acme [email]
|
|
|
|
formatZH: 删除网站 acme [email]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/acme/search:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取网站 acme 列表分页
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +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
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Page website acme accounts
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Acme
|
2023-04-25 18:10:17 +08:00
|
|
|
/websites/auths:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取密码访问配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxAuthReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-25 18:10:17 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get AuthBasic conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
/websites/auths/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新密码访问配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxAuthUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-25 18:10:17 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get AuthBasic conf
|
|
|
|
tags:
|
|
|
|
- Website
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/check:
|
|
|
|
post:
|
2023-01-04 22:31:51 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 网站创建前检查
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteInstallCheckReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.WebsitePreInstallCheck'
|
|
|
|
type: array
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Check before create website
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
|
|
|
/websites/config:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取 nginx 配置
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.NginxScopeReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/response.WebsiteNginxConfig'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Load nginx conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Nginx
|
|
|
|
/websites/config/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新 nginx 配置
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.NginxConfigUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update nginx conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Nginx
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
2023-01-05 11:57:03 +08:00
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: websiteId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- websiteId
|
|
|
|
formatEN: Nginx conf update [domain]
|
|
|
|
formatZH: nginx 配置修改 [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/default/server:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 操作网站日志
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteDefaultUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Change default server
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
2023-01-05 11:57:03 +08:00
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
2023-01-04 22:31:51 +08:00
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- id
|
|
|
|
- operate
|
|
|
|
formatEN: Change default server => [domain]
|
|
|
|
formatZH: 修改默认 server => [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 删除网站
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteDelete'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Delete website
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
2023-01-05 11:57:03 +08:00
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-04 22:31:51 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
|
|
|
- id
|
2023-01-05 11:57:03 +08:00
|
|
|
formatEN: Delete website [domain]
|
|
|
|
formatZH: 删除网站 [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-09-05 22:28:11 +08:00
|
|
|
/websites/dir:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取网站目录配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteCommonReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get website dir
|
|
|
|
tags:
|
|
|
|
- Website
|
2023-04-17 13:57:41 +08:00
|
|
|
/websites/dir/permission:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新网站目录权限
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteUpdateDirPermission'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-17 13:57:41 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update Site Dir permission
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-17 13:57:41 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-04-17 13:57:41 +08:00
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新网站目录
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteUpdateDir'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-17 16:54:34 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update Site Dir
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-17 16:54:34 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-04-17 16:54:34 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Update domain [domain] dir
|
|
|
|
formatZH: 更新网站 [domain] 目录
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/dns:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 创建网站 dns
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteDnsAccountCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Create website dns account
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website DNS
|
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
|
|
|
|
formatEN: Create website dns [name]
|
|
|
|
formatZH: 创建网站 dns [name]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/dns/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 删除网站 dns
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteResourceReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Delete website dns account
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website DNS
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
2023-01-05 11:57:03 +08:00
|
|
|
- db: website_dns_accounts
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-04 22:31:51 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: name
|
2023-01-04 22:31:51 +08:00
|
|
|
output_value: name
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
2023-01-05 11:57:03 +08:00
|
|
|
formatEN: Delete website dns [name]
|
|
|
|
formatZH: 删除网站 dns [name]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/dns/search:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取网站 dns 列表分页
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +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
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Page website dns accounts
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website DNS
|
|
|
|
/websites/dns/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新网站 dns
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteDnsAccountUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update website dns account
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website DNS
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- name
|
|
|
|
formatEN: Update website dns [name]
|
|
|
|
formatZH: 更新网站 dns [name]
|
|
|
|
paramKeys: []
|
|
|
|
/websites/domains:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 创建网站域名
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteDomainCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/model.WebsiteDomain'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Create website domain
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Domain
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- domain
|
|
|
|
formatEN: Create domain [domain]
|
|
|
|
formatZH: 创建域名 [domain]
|
|
|
|
paramKeys: []
|
|
|
|
/websites/domains/:websiteId:
|
|
|
|
get:
|
2023-01-04 22:31:51 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 通过网站 id 查询域名
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
2023-01-05 11:57:03 +08:00
|
|
|
in: path
|
|
|
|
name: websiteId
|
2023-01-04 22:31:51 +08:00
|
|
|
required: true
|
2023-01-05 11:57:03 +08:00
|
|
|
type: integer
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-01-05 11:57:03 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/model.WebsiteDomain'
|
|
|
|
type: array
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Search website domains by websiteId
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Domain
|
|
|
|
/websites/domains/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 删除网站域名
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteDomainDelete'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Delete website domain
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Domain
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions:
|
|
|
|
- db: website_domains
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
2023-01-05 11:57:03 +08:00
|
|
|
- id
|
|
|
|
formatEN: Delete domain [domain]
|
|
|
|
formatZH: 删除域名 [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-05-29 11:24:28 +08:00
|
|
|
/websites/leech:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取防盗链配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxCommonReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-29 11:24:28 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get AntiLeech conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
/websites/leech/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新防盗链配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxAntiLeechUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-05-29 11:24:28 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update AntiLeech
|
|
|
|
tags:
|
|
|
|
- Website
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/list:
|
|
|
|
get:
|
|
|
|
description: 获取网站列表
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.WebsiteDTO'
|
|
|
|
type: array
|
2023-01-05 11:57:03 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: List websites
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
/websites/log:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 操作网站日志
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteLogReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-01-05 11:57:03 +08:00
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.WebsiteLog'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Operate website log
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
2023-01-05 11:57:03 +08:00
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-04 22:31:51 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
|
|
|
- id
|
2023-01-05 11:57:03 +08:00
|
|
|
- operate
|
|
|
|
formatEN: '[domain][operate] logs'
|
|
|
|
formatZH: '[domain][operate] 日志'
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/nginx/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新 网站 nginx 配置
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteNginxUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update website nginx conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website Nginx
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: '[domain] Nginx conf update'
|
|
|
|
formatZH: '[domain] Nginx 配置修改'
|
|
|
|
paramKeys: []
|
|
|
|
/websites/operate:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 操作网站
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteOp'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Operate website
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
2023-01-05 11:57:03 +08:00
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-04 22:31:51 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
2023-01-04 22:31:51 +08:00
|
|
|
bodyKeys:
|
|
|
|
- id
|
2023-01-05 11:57:03 +08:00
|
|
|
- operate
|
|
|
|
formatEN: '[operate] website [domain]'
|
|
|
|
formatZH: '[operate] 网站 [domain]'
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/options:
|
2023-01-04 22:31:51 +08:00
|
|
|
get:
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取网站列表
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: List website names
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
2023-04-12 14:48:30 +08:00
|
|
|
/websites/php/config:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 网站 PHP 配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsitePHPConfigUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-12 14:48:30 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update website php conf
|
|
|
|
tags:
|
|
|
|
- Website PHP
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-12 14:48:30 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-04-12 14:48:30 +08:00
|
|
|
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:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取网站 php 配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/response.PHPConfig'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Load websit php conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
/websites/php/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-07-03 16:36:18 +08:00
|
|
|
description: 更新 php 配置文件
|
2023-04-06 00:09:58 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
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-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-06 00:09:58 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-04-12 14:48:30 +08:00
|
|
|
summary: Update php conf
|
2023-04-06 00:09:58 +08:00
|
|
|
tags:
|
|
|
|
- Website PHP
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-12 14:48:30 +08:00
|
|
|
input_value: websiteId
|
2023-04-06 00:09:58 +08:00
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-04-06 00:09:58 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
2023-04-12 14:48:30 +08:00
|
|
|
- websiteId
|
|
|
|
formatEN: Nginx conf update [domain]
|
|
|
|
formatZH: php 配置修改 [domain]
|
2023-04-06 00:09:58 +08:00
|
|
|
paramKeys: []
|
2023-07-25 17:20:25 +08:00
|
|
|
/websites/php/version:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 变更 php 版本
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsitePHPVersionReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update php version
|
|
|
|
tags:
|
|
|
|
- Website PHP
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
|
|
|
input_column: id
|
|
|
|
input_value: websiteId
|
|
|
|
isList: false
|
|
|
|
output_column: primary_domain
|
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- websiteId
|
|
|
|
formatEN: php version update [domain]
|
|
|
|
formatZH: php 版本变更 [domain]
|
|
|
|
paramKeys: []
|
2023-04-24 17:50:39 +08:00
|
|
|
/websites/proxies:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取反向代理配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteProxyReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-24 17:50:39 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get proxy conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
/websites/proxies/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改反向代理配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteProxyConfig'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-24 17:50:39 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update proxy conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-24 17:50:39 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-04-24 17:50:39 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Update domain [domain] proxy config
|
|
|
|
formatZH: '修改网站 [domain] 反向代理配置 '
|
|
|
|
paramKeys: []
|
|
|
|
/websites/proxy/file:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新反向代理文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxProxyUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-24 17:50:39 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update proxy file
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-24 17:50:39 +08:00
|
|
|
input_value: websiteID
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-04-24 17:50:39 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- websiteID
|
|
|
|
formatEN: Nginx conf proxy file update [domain]
|
|
|
|
formatZH: 更新反向代理文件 [domain]
|
|
|
|
paramKeys: []
|
2023-07-22 22:02:21 +08:00
|
|
|
/websites/redirect:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取重定向配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteProxyReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-07-25 17:20:25 +08:00
|
|
|
summary: Get redirect conf
|
2023-07-22 22:02:21 +08:00
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
/websites/redirect/file:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新重定向文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxRedirectUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update redirect file
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
|
|
|
input_column: id
|
|
|
|
input_value: websiteID
|
|
|
|
isList: false
|
|
|
|
output_column: primary_domain
|
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- websiteID
|
|
|
|
formatEN: Nginx conf redirect file update [domain]
|
|
|
|
formatZH: 更新重定向文件 [domain]
|
|
|
|
paramKeys: []
|
|
|
|
/websites/redirect/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 修改重定向配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxRedirectReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update redirect conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
|
|
|
input_column: id
|
|
|
|
input_value: websiteID
|
|
|
|
isList: false
|
|
|
|
output_column: primary_domain
|
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- websiteID
|
|
|
|
formatEN: Update domain [domain] redirect config
|
|
|
|
formatZH: '修改网站 [domain] 重定向理配置 '
|
|
|
|
paramKeys: []
|
2023-04-14 16:01:06 +08:00
|
|
|
/websites/rewrite:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取伪静态配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxRewriteReq'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-14 16:01:06 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Get rewrite conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
/websites/rewrite/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新伪静态配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.NginxRewriteUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-04-14 16:01:06 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update rewrite conf
|
|
|
|
tags:
|
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-04-14 16:01:06 +08:00
|
|
|
input_value: websiteID
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-04-14 16:01:06 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- websiteID
|
|
|
|
formatEN: Nginx conf rewrite update [domain]
|
|
|
|
formatZH: 伪静态配置修改 [domain]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/search:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取网站列表分页
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteSearch'
|
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
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Page websites
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
|
|
|
/websites/ssl:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 创建网站 ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteSSLCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteSSLCreate'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Create website ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website SSL
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- primaryDomain
|
|
|
|
formatEN: Create website ssl [primaryDomain]
|
|
|
|
formatZH: 创建网站 ssl [primaryDomain]
|
|
|
|
paramKeys: []
|
|
|
|
/websites/ssl/:id:
|
2023-01-04 22:31:51 +08:00
|
|
|
get:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过 id 查询 ssl
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Search website ssl by id
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website SSL
|
|
|
|
/websites/ssl/del:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 删除网站 ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteResourceReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Delete website ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website SSL
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions:
|
|
|
|
- db: website_ssls
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- id
|
|
|
|
formatEN: Delete ssl [domain]
|
|
|
|
formatZH: 删除 ssl [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/ssl/renew:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 重置网站 ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteSSLRenew'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Reset website ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website SSL
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions:
|
|
|
|
- db: website_ssls
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: SSLId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- SSLId
|
|
|
|
formatEN: Renew ssl [domain]
|
|
|
|
formatZH: 重置 ssl [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/ssl/resolve:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 解析网站 ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteDNSReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-07-06 18:04:22 +08:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/response.WebsiteDNSRes'
|
|
|
|
type: array
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Resolve website ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website SSL
|
|
|
|
/websites/ssl/search:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 获取网站 ssl 列表分页
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteSSLSearch'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Page website ssl
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website SSL
|
2023-03-21 14:42:50 +08:00
|
|
|
/websites/ssl/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 ssl
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteSSLUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-03-21 14:42:50 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update ssl
|
|
|
|
tags:
|
|
|
|
- Website SSL
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: website_ssls
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-03-21 14:42:50 +08:00
|
|
|
input_value: id
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-03-21 14:42:50 +08:00
|
|
|
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:
|
2023-01-04 22:31:51 +08:00
|
|
|
get:
|
2023-01-05 11:57:03 +08:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 通过网站 id 查询 ssl
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: path
|
|
|
|
name: websiteId
|
|
|
|
required: true
|
|
|
|
type: integer
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Search website ssl by website id
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website SSL
|
|
|
|
/websites/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新网站
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update website
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions: []
|
|
|
|
bodyKeys:
|
|
|
|
- primaryDomain
|
|
|
|
formatEN: Update website [primaryDomain]
|
|
|
|
formatZH: 更新网站 [primaryDomain]
|
|
|
|
paramKeys: []
|
|
|
|
/websites/waf/config:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 获取网站 waf 配置
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteWafReq'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/response.WebsiteWafConfig'
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Load websit waf conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website WAF
|
2023-08-02 22:38:32 +08:00
|
|
|
/websites/waf/file/update:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: 更新 网站 waf 配置文件
|
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/request.WebsiteWafUpdate'
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
summary: Update website waf file
|
|
|
|
tags:
|
|
|
|
- Website WAF
|
|
|
|
x-panel-log:
|
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
|
|
|
input_column: id
|
|
|
|
input_value: websiteId
|
|
|
|
isList: false
|
|
|
|
output_column: primary_domain
|
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- websiteId
|
|
|
|
formatEN: WAF conf file update [domain]
|
|
|
|
formatZH: WAF 配置文件修改 [domain]
|
|
|
|
paramKeys: []
|
2023-01-05 11:57:03 +08:00
|
|
|
/websites/waf/update:
|
2023-01-04 22:31:51 +08:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2023-01-05 11:57:03 +08:00
|
|
|
description: 更新 网站 waf 配置
|
2023-01-04 22:31:51 +08:00
|
|
|
parameters:
|
|
|
|
- description: request
|
|
|
|
in: body
|
|
|
|
name: request
|
|
|
|
required: true
|
|
|
|
schema:
|
2023-01-05 11:57:03 +08:00
|
|
|
$ref: '#/definitions/request.WebsiteWafUpdate'
|
2023-01-04 22:31:51 +08:00
|
|
|
responses:
|
|
|
|
"200":
|
2023-07-06 18:48:22 +08:00
|
|
|
description: OK
|
2023-01-04 22:31:51 +08:00
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
2023-01-05 11:57:03 +08:00
|
|
|
summary: Update website waf conf
|
2023-01-04 22:31:51 +08:00
|
|
|
tags:
|
2023-01-05 11:57:03 +08:00
|
|
|
- Website WAF
|
2023-01-04 22:31:51 +08:00
|
|
|
x-panel-log:
|
2023-01-05 11:57:03 +08:00
|
|
|
BeforeFuntions:
|
|
|
|
- db: websites
|
2023-05-30 15:30:57 +08:00
|
|
|
input_column: id
|
2023-01-05 11:57:03 +08:00
|
|
|
input_value: websiteId
|
|
|
|
isList: false
|
2023-05-30 15:30:57 +08:00
|
|
|
output_column: primary_domain
|
2023-01-05 11:57:03 +08:00
|
|
|
output_value: domain
|
|
|
|
bodyKeys:
|
|
|
|
- websiteId
|
|
|
|
formatEN: WAF conf update [domain]
|
|
|
|
formatZH: WAF 配置修改 [domain]
|
2023-01-04 22:31:51 +08:00
|
|
|
paramKeys: []
|
2022-12-14 19:39:32 +08:00
|
|
|
swagger: "2.0"
|