4825 lines
116 KiB
JSON
4825 lines
116 KiB
JSON
|
|
{
|
|||
|
|
"openapi": "3.0.3",
|
|||
|
|
"info": {
|
|||
|
|
"title": "VDI 管理平台 API",
|
|||
|
|
"version": "0.1.0",
|
|||
|
|
"description": "第一阶段接口。平台票据不替代 Sunshine 配对;HTTP 202 只代表已提交。"
|
|||
|
|
},
|
|||
|
|
"servers": [
|
|||
|
|
{
|
|||
|
|
"url": "/api/v1"
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"paths": {
|
|||
|
|
"/auth/login": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "login",
|
|||
|
|
"security": [],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/LoginInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/LoginResult"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/auth/me": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "me",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Administrator"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/auth/logout": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "logout",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"204": {
|
|||
|
|
"description": "Successful response"
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/overview": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "overview",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Overview"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/settings": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "settings",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Settings"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/resources": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "resources",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/ResourceList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/resources/vms": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "discoverVMs",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/DiscoveredVMList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/resources/sync": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "syncResources",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "Idempotency-Key",
|
|||
|
|
"in": "header",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string",
|
|||
|
|
"maxLength": 100
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"202": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Task"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/desktops": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "desktops",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/DesktopList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/desktops/import": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "importDesktop",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/ImportInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Desktop"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/desktops/{id}": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "desktop",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "id",
|
|||
|
|
"in": "path",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Desktop"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/desktops/{id}/actions": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "desktopAction",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/DesktopAction"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "id",
|
|||
|
|
"in": "path",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "Idempotency-Key",
|
|||
|
|
"in": "header",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string",
|
|||
|
|
"maxLength": 100
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"202": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Task"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminals": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "terminals",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/TerminalList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "enrollTerminal",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/EnrollmentInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"201": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Enrollment"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminals/{id}/commands": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "terminalCommand",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/TerminalAction"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "id",
|
|||
|
|
"in": "path",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "Idempotency-Key",
|
|||
|
|
"in": "header",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string",
|
|||
|
|
"maxLength": 100
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"202": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Task"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/users": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "users",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/UserList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "createUser",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/CreateUserInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"201": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/User"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/users/{id}/bindings": {
|
|||
|
|
"put": {
|
|||
|
|
"operationId": "updateBindings",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/BindingInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "id",
|
|||
|
|
"in": "path",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/User"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/tasks": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "tasks",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/TaskList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/tasks/{id}": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "task",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "id",
|
|||
|
|
"in": "path",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Task"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/tasks/{id}/diagnostics": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "taskDiagnostics",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "id",
|
|||
|
|
"in": "path",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/DeviceDiagnostics"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/audit-logs": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "audits",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"adminBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/AuditList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/register": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "registerDevice",
|
|||
|
|
"security": [],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/RegisterInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/RegisterResult"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/heartbeat": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "heartbeat",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/HeartbeatInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/HeartbeatResult"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/config": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "deviceConfig",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/DeviceConfig"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/desktops": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "deviceDesktops",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/DesktopList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/commands": {
|
|||
|
|
"get": {
|
|||
|
|
"operationId": "deviceCommands",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "page",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "pageSize",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "keyword",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"name": "status",
|
|||
|
|
"in": "query",
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/TaskList"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/commands/{id}/ack": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "deviceAck",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/AckInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [
|
|||
|
|
{
|
|||
|
|
"name": "id",
|
|||
|
|
"in": "path",
|
|||
|
|
"required": true,
|
|||
|
|
"schema": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Accepted"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/connect-ticket": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "createTicket",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/TicketInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"201": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Ticket"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/connect-ticket/consume": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "consumeTicket",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/ConsumeInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Connection"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"/terminal/session": {
|
|||
|
|
"post": {
|
|||
|
|
"operationId": "deviceSession",
|
|||
|
|
"security": [
|
|||
|
|
{
|
|||
|
|
"deviceBearer": []
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"requestBody": {
|
|||
|
|
"required": true,
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/SessionInput"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"parameters": [],
|
|||
|
|
"responses": {
|
|||
|
|
"200": {
|
|||
|
|
"description": "Successful response",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Accepted"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"400": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"401": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"403": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"404": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"409": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"500": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"502": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"503": {
|
|||
|
|
"description": "Request failed",
|
|||
|
|
"content": {
|
|||
|
|
"application/json": {
|
|||
|
|
"schema": {
|
|||
|
|
"$ref": "#/components/schemas/Error"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"components": {
|
|||
|
|
"schemas": {
|
|||
|
|
"Error": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"code": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"message": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"code",
|
|||
|
|
"message",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Administrator": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"username": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"displayName": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"role": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"super_admin",
|
|||
|
|
"operator",
|
|||
|
|
"viewer"
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"username",
|
|||
|
|
"displayName",
|
|||
|
|
"role"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"LoginInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"username": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"password": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"username",
|
|||
|
|
"password"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"LoginResult": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"accessToken": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"expiresIn": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"user": {
|
|||
|
|
"$ref": "#/components/schemas/Administrator"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"accessToken",
|
|||
|
|
"expiresIn",
|
|||
|
|
"user"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Desktop": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"name": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"os": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"Windows",
|
|||
|
|
"Ubuntu",
|
|||
|
|
"麒麟"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
"node": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"vmid": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pool": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"powerState": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"serviceState": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"provider": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"demo",
|
|||
|
|
"proxmox"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
"endpoint": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"app": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"width": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"height": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"fps": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"updatedAt": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"name",
|
|||
|
|
"os",
|
|||
|
|
"node",
|
|||
|
|
"vmid",
|
|||
|
|
"pool",
|
|||
|
|
"powerState",
|
|||
|
|
"serviceState",
|
|||
|
|
"provider",
|
|||
|
|
"endpoint",
|
|||
|
|
"app",
|
|||
|
|
"width",
|
|||
|
|
"height",
|
|||
|
|
"fps",
|
|||
|
|
"updatedAt"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Terminal": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"sn": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"name": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"group": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"status": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"agentVersion": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"lastSeen": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time",
|
|||
|
|
"nullable": true
|
|||
|
|
},
|
|||
|
|
"sessionDesktopId": {
|
|||
|
|
"type": "string",
|
|||
|
|
"nullable": true
|
|||
|
|
},
|
|||
|
|
"configVersion": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"fps": {
|
|||
|
|
"type": "number",
|
|||
|
|
"nullable": true
|
|||
|
|
},
|
|||
|
|
"rtt": {
|
|||
|
|
"type": "number",
|
|||
|
|
"nullable": true
|
|||
|
|
},
|
|||
|
|
"sessionState": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"sn",
|
|||
|
|
"name",
|
|||
|
|
"group",
|
|||
|
|
"status",
|
|||
|
|
"agentVersion",
|
|||
|
|
"lastSeen",
|
|||
|
|
"sessionDesktopId",
|
|||
|
|
"configVersion",
|
|||
|
|
"fps",
|
|||
|
|
"rtt"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"User": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"username": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"displayName": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"enabled": {
|
|||
|
|
"type": "boolean"
|
|||
|
|
},
|
|||
|
|
"terminalId": {
|
|||
|
|
"type": "string",
|
|||
|
|
"nullable": true
|
|||
|
|
},
|
|||
|
|
"desktopIds": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"username",
|
|||
|
|
"displayName",
|
|||
|
|
"enabled",
|
|||
|
|
"terminalId",
|
|||
|
|
"desktopIds"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Resource": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"name": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"status": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"cpu": {
|
|||
|
|
"type": "number"
|
|||
|
|
},
|
|||
|
|
"memory": {
|
|||
|
|
"type": "number"
|
|||
|
|
},
|
|||
|
|
"storage": {
|
|||
|
|
"type": "number"
|
|||
|
|
},
|
|||
|
|
"provider": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"updatedAt": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"name",
|
|||
|
|
"status",
|
|||
|
|
"cpu",
|
|||
|
|
"memory",
|
|||
|
|
"storage",
|
|||
|
|
"provider",
|
|||
|
|
"updatedAt"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Task": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"kind": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"action": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"targetId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"targetName": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"actor": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"status": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"queued",
|
|||
|
|
"running",
|
|||
|
|
"success",
|
|||
|
|
"failed",
|
|||
|
|
"timeout"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
"message": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"providerRef": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"createdAt": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time"
|
|||
|
|
},
|
|||
|
|
"updatedAt": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"kind",
|
|||
|
|
"action",
|
|||
|
|
"targetId",
|
|||
|
|
"targetName",
|
|||
|
|
"actor",
|
|||
|
|
"status",
|
|||
|
|
"message",
|
|||
|
|
"providerRef",
|
|||
|
|
"createdAt",
|
|||
|
|
"updatedAt"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Audit": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"actor": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"action": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"target": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"result": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"createdAt": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"actor",
|
|||
|
|
"action",
|
|||
|
|
"target",
|
|||
|
|
"result",
|
|||
|
|
"requestId",
|
|||
|
|
"createdAt"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Overview": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"terminalCount": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"onlineTerminals": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"desktopCount": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"runningDesktops": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"activeSessions": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"failedTasks": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"mode": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"terminalCount",
|
|||
|
|
"onlineTerminals",
|
|||
|
|
"desktopCount",
|
|||
|
|
"runningDesktops",
|
|||
|
|
"activeSessions",
|
|||
|
|
"failedTasks",
|
|||
|
|
"mode"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Settings": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"mode": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"demo",
|
|||
|
|
"production"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
"computeProvider": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"pveConfigured": {
|
|||
|
|
"type": "boolean"
|
|||
|
|
},
|
|||
|
|
"terminalTransport": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"capabilities": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"mode",
|
|||
|
|
"computeProvider",
|
|||
|
|
"pveConfigured",
|
|||
|
|
"terminalTransport",
|
|||
|
|
"capabilities"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"ImportInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"name": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"os": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"Windows",
|
|||
|
|
"Ubuntu",
|
|||
|
|
"麒麟"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
"node": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"vmid": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"endpoint": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"width": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"height": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"fps": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"name",
|
|||
|
|
"os",
|
|||
|
|
"node",
|
|||
|
|
"vmid"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"DiscoveredVM": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"name": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"node": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"vmid": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"status": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"name",
|
|||
|
|
"node",
|
|||
|
|
"vmid",
|
|||
|
|
"status"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"EnrollmentInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"sn": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"name": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"group": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"sn",
|
|||
|
|
"name",
|
|||
|
|
"group"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Enrollment": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"id": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"activationSecret": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"id",
|
|||
|
|
"activationSecret"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"CreateUserInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"username": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"displayName": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"username",
|
|||
|
|
"displayName"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"BindingInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"terminalId": {
|
|||
|
|
"type": "string",
|
|||
|
|
"nullable": true
|
|||
|
|
},
|
|||
|
|
"desktopIds": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"enabled": {
|
|||
|
|
"type": "boolean"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"terminalId",
|
|||
|
|
"desktopIds",
|
|||
|
|
"enabled"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"DesktopAction": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"action": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"start",
|
|||
|
|
"shutdown",
|
|||
|
|
"reboot"
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"action"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"TerminalAction": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"action": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"reboot",
|
|||
|
|
"reset-session",
|
|||
|
|
"collect-logs"
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"action"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"RegisterInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"sn": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"activationSecret": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"agentVersion": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"sn",
|
|||
|
|
"activationSecret",
|
|||
|
|
"agentVersion"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"RegisterResult": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"terminalId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"accessToken": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"heartbeatInterval": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"terminalId",
|
|||
|
|
"accessToken",
|
|||
|
|
"heartbeatInterval"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"HeartbeatInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"agentVersion": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"fps": {
|
|||
|
|
"type": "number",
|
|||
|
|
"nullable": true
|
|||
|
|
},
|
|||
|
|
"rtt": {
|
|||
|
|
"type": "number",
|
|||
|
|
"nullable": true
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"agentVersion"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Accepted": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"accepted": {
|
|||
|
|
"type": "boolean"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"accepted"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"HeartbeatResult": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"accepted": {
|
|||
|
|
"type": "boolean"
|
|||
|
|
},
|
|||
|
|
"serverTime": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"accepted",
|
|||
|
|
"serverTime"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"DeviceConfig": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"configVersion": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"identityMode": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"commandTransport": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"heartbeatInterval": {
|
|||
|
|
"type": "integer"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"configVersion",
|
|||
|
|
"identityMode",
|
|||
|
|
"commandTransport",
|
|||
|
|
"heartbeatInterval"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"TicketInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"desktopId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"desktopId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Ticket": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"ticket": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"desktopId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"expiresAt": {
|
|||
|
|
"type": "string",
|
|||
|
|
"format": "date-time"
|
|||
|
|
},
|
|||
|
|
"credentialMode": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"ticket",
|
|||
|
|
"desktopId",
|
|||
|
|
"expiresAt",
|
|||
|
|
"credentialMode"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"ConsumeInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"ticket": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"ticket"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"Connection": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"desktopId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"sessionId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"protocol": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"endpoint": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"app": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"width": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"height": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"fps": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"credentialMode": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"desktopId",
|
|||
|
|
"sessionId",
|
|||
|
|
"protocol",
|
|||
|
|
"endpoint",
|
|||
|
|
"app",
|
|||
|
|
"width",
|
|||
|
|
"height",
|
|||
|
|
"fps",
|
|||
|
|
"credentialMode"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"DeviceDiagnostics": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"agentVersion": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"bootId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"uptimeSeconds": {
|
|||
|
|
"type": "number"
|
|||
|
|
},
|
|||
|
|
"kioskState": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"logTail": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"agentVersion",
|
|||
|
|
"bootId",
|
|||
|
|
"uptimeSeconds",
|
|||
|
|
"kioskState",
|
|||
|
|
"logTail"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"SessionInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"sessionId": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"state": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"connected",
|
|||
|
|
"ended"
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"sessionId",
|
|||
|
|
"state"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"AckInput": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"status": {
|
|||
|
|
"type": "string",
|
|||
|
|
"enum": [
|
|||
|
|
"success",
|
|||
|
|
"failed"
|
|||
|
|
]
|
|||
|
|
},
|
|||
|
|
"message": {
|
|||
|
|
"type": "string"
|
|||
|
|
},
|
|||
|
|
"diagnostics": {
|
|||
|
|
"$ref": "#/components/schemas/DeviceDiagnostics"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"status"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"DesktopList": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"items": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"$ref": "#/components/schemas/Desktop"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"page": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pageSize": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"total": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"items",
|
|||
|
|
"page",
|
|||
|
|
"pageSize",
|
|||
|
|
"total",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"TerminalList": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"items": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"$ref": "#/components/schemas/Terminal"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"page": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pageSize": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"total": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"items",
|
|||
|
|
"page",
|
|||
|
|
"pageSize",
|
|||
|
|
"total",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"UserList": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"items": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"$ref": "#/components/schemas/User"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"page": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pageSize": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"total": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"items",
|
|||
|
|
"page",
|
|||
|
|
"pageSize",
|
|||
|
|
"total",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"ResourceList": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"items": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"$ref": "#/components/schemas/Resource"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"page": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pageSize": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"total": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"items",
|
|||
|
|
"page",
|
|||
|
|
"pageSize",
|
|||
|
|
"total",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"TaskList": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"items": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"$ref": "#/components/schemas/Task"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"page": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pageSize": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"total": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"items",
|
|||
|
|
"page",
|
|||
|
|
"pageSize",
|
|||
|
|
"total",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"AuditList": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"items": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"$ref": "#/components/schemas/Audit"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"page": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pageSize": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"total": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"items",
|
|||
|
|
"page",
|
|||
|
|
"pageSize",
|
|||
|
|
"total",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
},
|
|||
|
|
"DiscoveredVMList": {
|
|||
|
|
"type": "object",
|
|||
|
|
"properties": {
|
|||
|
|
"items": {
|
|||
|
|
"type": "array",
|
|||
|
|
"items": {
|
|||
|
|
"$ref": "#/components/schemas/DiscoveredVM"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"page": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"pageSize": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"total": {
|
|||
|
|
"type": "integer"
|
|||
|
|
},
|
|||
|
|
"requestId": {
|
|||
|
|
"type": "string"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"required": [
|
|||
|
|
"items",
|
|||
|
|
"page",
|
|||
|
|
"pageSize",
|
|||
|
|
"total",
|
|||
|
|
"requestId"
|
|||
|
|
],
|
|||
|
|
"additionalProperties": false
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"securitySchemes": {
|
|||
|
|
"adminBearer": {
|
|||
|
|
"type": "http",
|
|||
|
|
"scheme": "bearer",
|
|||
|
|
"bearerFormat": "JWT"
|
|||
|
|
},
|
|||
|
|
"deviceBearer": {
|
|||
|
|
"type": "http",
|
|||
|
|
"scheme": "bearer",
|
|||
|
|
"description": "设备激活后获得的独立令牌,不是管理员 JWT"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|