Skip to content

Commit a1c5df0

Browse files
author
root
committed
fix docker tabs
1 parent 48267bb commit a1c5df0

44 files changed

Lines changed: 7184 additions & 1440 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

backend/docs/openapi/api.yaml

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6904,6 +6904,58 @@ paths:
69046904
summary: List Compose projects
69056905
tags:
69066906
- Docker
6907+
/api/servers/{serverId}/docker/compose/metadata:
6908+
post:
6909+
description: Returns compact metadata for the requested Compose projects, including linked containers. Superuser only.
6910+
operationId: post_api_servers_serverid_docker_compose_metadata
6911+
parameters:
6912+
- description: server ID
6913+
in: path
6914+
name: serverId
6915+
required: true
6916+
schema:
6917+
type: string
6918+
requestBody:
6919+
content:
6920+
application/json:
6921+
schema:
6922+
$ref: '#/components/schemas/GenericRequest'
6923+
description: 'projects: array of Compose project names'
6924+
required: true
6925+
responses:
6926+
"200":
6927+
content:
6928+
application/json:
6929+
schema:
6930+
additionalProperties: true
6931+
type: object
6932+
description: OK
6933+
"400":
6934+
content:
6935+
application/json:
6936+
schema:
6937+
additionalProperties: true
6938+
type: object
6939+
description: Bad Request
6940+
"401":
6941+
content:
6942+
application/json:
6943+
schema:
6944+
additionalProperties: true
6945+
type: object
6946+
description: Unauthorized
6947+
"500":
6948+
content:
6949+
application/json:
6950+
schema:
6951+
additionalProperties: true
6952+
type: object
6953+
description: Internal Server Error
6954+
security:
6955+
- bearerAuth: []
6956+
summary: Get Compose metadata
6957+
tags:
6958+
- Docker
69076959
/api/servers/{serverId}/docker/compose/restart:
69086960
post:
69096961
description: Runs `docker compose restart` in the given project directory. Writes audit entry. Superuser only.
@@ -7492,6 +7544,58 @@ paths:
74927544
summary: Stop container
74937545
tags:
74947546
- Docker
7547+
/api/servers/{serverId}/docker/containers/metadata:
7548+
post:
7549+
description: Returns compact metadata for the requested container IDs, including created time, compose project, and linked volume names. Superuser only.
7550+
operationId: post_api_servers_serverid_docker_containers_metadata
7551+
parameters:
7552+
- description: server ID
7553+
in: path
7554+
name: serverId
7555+
required: true
7556+
schema:
7557+
type: string
7558+
requestBody:
7559+
content:
7560+
application/json:
7561+
schema:
7562+
$ref: '#/components/schemas/GenericRequest'
7563+
description: 'ids: array of container IDs or names'
7564+
required: true
7565+
responses:
7566+
"200":
7567+
content:
7568+
application/json:
7569+
schema:
7570+
additionalProperties: true
7571+
type: object
7572+
description: OK
7573+
"400":
7574+
content:
7575+
application/json:
7576+
schema:
7577+
additionalProperties: true
7578+
type: object
7579+
description: Bad Request
7580+
"401":
7581+
content:
7582+
application/json:
7583+
schema:
7584+
additionalProperties: true
7585+
type: object
7586+
description: Unauthorized
7587+
"500":
7588+
content:
7589+
application/json:
7590+
schema:
7591+
additionalProperties: true
7592+
type: object
7593+
description: Internal Server Error
7594+
security:
7595+
- bearerAuth: []
7596+
summary: Get container metadata
7597+
tags:
7598+
- Docker
74957599
/api/servers/{serverId}/docker/containers/stats:
74967600
get:
74977601
description: Returns CPU/memory/network usage for all running containers. Superuser only.
@@ -8074,6 +8178,57 @@ paths:
80748178
summary: Remove network
80758179
tags:
80768180
- Docker
8181+
/api/servers/{serverId}/docker/networks/{id}/inspect:
8182+
get:
8183+
description: Returns docker network inspect output for the given network ID or name. Superuser only.
8184+
operationId: get_api_servers_serverid_docker_networks_id_inspect
8185+
parameters:
8186+
- description: server ID
8187+
in: path
8188+
name: serverId
8189+
required: true
8190+
schema:
8191+
type: string
8192+
- description: network ID or name
8193+
in: path
8194+
name: id
8195+
required: true
8196+
schema:
8197+
type: string
8198+
responses:
8199+
"200":
8200+
content:
8201+
application/json:
8202+
schema:
8203+
additionalProperties: true
8204+
type: object
8205+
description: OK
8206+
"400":
8207+
content:
8208+
application/json:
8209+
schema:
8210+
additionalProperties: true
8211+
type: object
8212+
description: Bad Request
8213+
"401":
8214+
content:
8215+
application/json:
8216+
schema:
8217+
additionalProperties: true
8218+
type: object
8219+
description: Unauthorized
8220+
"500":
8221+
content:
8222+
application/json:
8223+
schema:
8224+
additionalProperties: true
8225+
type: object
8226+
description: Internal Server Error
8227+
security:
8228+
- bearerAuth: []
8229+
summary: Inspect network
8230+
tags:
8231+
- Docker
80778232
/api/servers/{serverId}/docker/volumes:
80788233
get:
80798234
description: Returns all Docker volumes on the specified server. Superuser only.

backend/docs/openapi/ext-api.yaml

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5418,6 +5418,57 @@ paths:
54185418
schema:
54195419
type: object
54205420
additionalProperties: true
5421+
/api/servers/{serverId}/docker/compose/metadata:
5422+
post:
5423+
tags: [Docker]
5424+
summary: Get Compose metadata
5425+
description: "Returns compact metadata for the requested Compose projects, including linked containers. Superuser only."
5426+
operationId: post_api_servers_serverid_docker_compose_metadata
5427+
parameters:
5428+
- name: serverId
5429+
in: path
5430+
description: "server ID"
5431+
required: true
5432+
schema:
5433+
type: string
5434+
requestBody:
5435+
description: "projects: array of Compose project names"
5436+
required: true
5437+
content:
5438+
application/json:
5439+
schema:
5440+
$ref: '#/components/schemas/GenericRequest'
5441+
security:
5442+
- bearerAuth: [] # superuser required
5443+
responses:
5444+
"200":
5445+
description: OK
5446+
content:
5447+
application/json:
5448+
schema:
5449+
type: object
5450+
additionalProperties: true
5451+
"401":
5452+
description: Unauthorized
5453+
content:
5454+
application/json:
5455+
schema:
5456+
type: object
5457+
additionalProperties: true
5458+
"400":
5459+
description: Bad Request
5460+
content:
5461+
application/json:
5462+
schema:
5463+
type: object
5464+
additionalProperties: true
5465+
"500":
5466+
description: Internal Server Error
5467+
content:
5468+
application/json:
5469+
schema:
5470+
type: object
5471+
additionalProperties: true
54215472
/api/servers/{serverId}/docker/compose/restart:
54225473
post:
54235474
tags: [Docker]
@@ -5666,6 +5717,57 @@ paths:
56665717
schema:
56675718
type: object
56685719
additionalProperties: true
5720+
/api/servers/{serverId}/docker/containers/metadata:
5721+
post:
5722+
tags: [Docker]
5723+
summary: Get container metadata
5724+
description: "Returns compact metadata for the requested container IDs, including created time, compose project, and linked volume names. Superuser only."
5725+
operationId: post_api_servers_serverid_docker_containers_metadata
5726+
parameters:
5727+
- name: serverId
5728+
in: path
5729+
description: "server ID"
5730+
required: true
5731+
schema:
5732+
type: string
5733+
requestBody:
5734+
description: "ids: array of container IDs or names"
5735+
required: true
5736+
content:
5737+
application/json:
5738+
schema:
5739+
$ref: '#/components/schemas/GenericRequest'
5740+
security:
5741+
- bearerAuth: [] # superuser required
5742+
responses:
5743+
"200":
5744+
description: OK
5745+
content:
5746+
application/json:
5747+
schema:
5748+
type: object
5749+
additionalProperties: true
5750+
"401":
5751+
description: Unauthorized
5752+
content:
5753+
application/json:
5754+
schema:
5755+
type: object
5756+
additionalProperties: true
5757+
"400":
5758+
description: Bad Request
5759+
content:
5760+
application/json:
5761+
schema:
5762+
type: object
5763+
additionalProperties: true
5764+
"500":
5765+
description: Internal Server Error
5766+
content:
5767+
application/json:
5768+
schema:
5769+
type: object
5770+
additionalProperties: true
56695771
/api/servers/{serverId}/docker/containers/stats:
56705772
get:
56715773
tags: [Docker]
@@ -6565,6 +6667,56 @@ paths:
65656667
schema:
65666668
type: object
65676669
additionalProperties: true
6670+
/api/servers/{serverId}/docker/networks/{id}/inspect:
6671+
get:
6672+
tags: [Docker]
6673+
summary: Inspect network
6674+
description: "Returns docker network inspect output for the given network ID or name. Superuser only."
6675+
operationId: get_api_servers_serverid_docker_networks_id_inspect
6676+
parameters:
6677+
- name: serverId
6678+
in: path
6679+
description: "server ID"
6680+
required: true
6681+
schema:
6682+
type: string
6683+
- name: id
6684+
in: path
6685+
description: "network ID or name"
6686+
required: true
6687+
schema:
6688+
type: string
6689+
security:
6690+
- bearerAuth: [] # superuser required
6691+
responses:
6692+
"200":
6693+
description: OK
6694+
content:
6695+
application/json:
6696+
schema:
6697+
type: object
6698+
additionalProperties: true
6699+
"401":
6700+
description: Unauthorized
6701+
content:
6702+
application/json:
6703+
schema:
6704+
type: object
6705+
additionalProperties: true
6706+
"400":
6707+
description: Bad Request
6708+
content:
6709+
application/json:
6710+
schema:
6711+
type: object
6712+
additionalProperties: true
6713+
"500":
6714+
description: Internal Server Error
6715+
content:
6716+
application/json:
6717+
schema:
6718+
type: object
6719+
additionalProperties: true
65686720
/api/servers/{serverId}/docker/volumes:
65696721
get:
65706722
tags: [Docker]

0 commit comments

Comments
 (0)