generated from bridgelightcloud/github-mirror-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spaceup-openapi.yml
601 lines (601 loc) · 14.7 KB
/
spaceup-openapi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
openapi: 3.0.1
info:
title: SpaceUp
contact:
name: Thraax Session
url: https://spaceup.iatlas.technology
email: spaceup@iatlas.technology
version: 0.26.0
paths:
/api/domain/add:
post:
summary: Add a new domain
description: Add a new domain
operationId: add
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Domain'
required: true
responses:
"200":
description: Map - per domain a feedback
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Feedback'
/api/domain/delete/{url}:
delete:
summary: Delete a domain with the corresponded url
description: Delete a domain with the corresponded url
operationId: delete
parameters:
- name: url
in: path
required: true
schema:
type: string
responses:
"200":
description: Feedback
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/domain/list:
get:
summary: Get a list of domains
description: Get a list of domains
operationId: list
parameters:
- name: cached
in: query
schema:
type: boolean
nullable: true
responses:
"200":
description: List - list of domains
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Domain'
/api/installer/createSshSetup:
post:
summary: Create the ssh user for authentication via SSH
description: Create the ssh user for authentication via SSH
operationId: createSshUser
parameters:
- name: X-SpaceUp-Key
in: header
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Ssh'
required: true
responses:
"200":
description: createSshUser 200 response
content:
application/json:
schema:
type: string
/api/installer/createUser:
post:
summary: Create a new user for authentication on SpaceUp
description: Create a new user for authentication on SpaceUp
operationId: createUser
parameters:
- name: X-SpaceUp-Key
in: header
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
required: true
responses:
"200":
description: createUser 200 response
content:
application/json:
schema:
type: string
/api/installer/final:
post:
summary: This is the final step to finalize the installation.
description: This is the final step to finalize the installation. It needs to
be run.
operationId: finalize
parameters:
- name: X-SpaceUp-Key
in: header
required: true
schema:
type: string
responses:
"200":
description: finalize 200 response
content:
application/json:
schema:
type: string
/api/network/read/programs:
get:
summary: Read actively listening programs on network
description: Read actively listening programs on network
operationId: readListening
responses:
"200":
description: readListening 200 response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/NetworkProgram'
/api/process/proccess/{pid}:
get:
operationId: getProgramForPid
parameters:
- name: pid
in: path
required: true
schema:
type: integer
format: int32
responses:
"200":
description: getProgramForPid 200 response
content:
text/plain:
schema:
type: string
/api/service/delete/{servicename}:
delete:
operationId: deleteService
parameters:
- name: servicename
in: path
required: true
schema:
type: string
responses:
"200":
description: deleteService 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/service/execute/{servicename}/{option}:
post:
summary: Execute an operation change to a Service
description: Execute an operation change to a Service
operationId: execute
parameters:
- name: servicename
in: path
required: true
schema:
type: string
- name: option
in: path
required: true
schema:
$ref: '#/components/schemas/ServiceOption'
responses:
"200":
description: execute 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/service/list:
get:
summary: Get all services with their statuses
description: Get all services with their statuses
operationId: list_1
responses:
"200":
description: list_1 200 response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Service'
/api/service/logs/{servicename}:
get:
summary: Gather the info and error logs of a service
description: Gather the info and error logs of a service
operationId: getLogs
parameters:
- name: servicename
in: path
description: the name of the service we want to get logs
required: true
schema:
type: string
- name: type
in: query
schema:
nullable: true
allOf:
- $ref: '#/components/schemas/Logtype'
- name: limit
in: query
description: default -1 (for the whole log file)
schema:
type: integer
format: int32
nullable: true
- name: reversed
in: query
description: default true
schema:
type: boolean
nullable: true
responses:
"200":
description: getLogs 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Logfile'
/api/sws/all:
get:
operationId: getAllSws
responses:
"200":
description: getAllSws 200 response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Sws'
/api/sws/create/:
post:
operationId: create
requestBody:
content:
text/plain:
schema:
type: string
required: true
responses:
"200":
description: create 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/sws/delete/{name}:
delete:
operationId: deleteSws
parameters:
- name: name
in: path
required: true
schema:
type: string
responses:
"200":
description: deleteSws 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/sws/update:
put:
operationId: updateSws
requestBody:
content:
text/plain:
schema:
type: string
required: true
responses:
"200":
description: updateSws 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/system/disk:
get:
operationId: getDiskUsage
responses:
"200":
description: getDiskUsage 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Disk'
/api/system/hostname:
get:
operationId: getHostname
responses:
"200":
description: getHostname 200 response
content:
application/json:
schema:
$ref: '#/components/schemas/Hostname'
/api/system/installed:
get:
operationId: getInstalled
responses:
"200":
description: getInstalled 200 response
content:
application/json:
schema:
type: string
/api/system/version:
get:
operationId: getVersion
responses:
"200":
description: getVersion 200 response
content:
application/json:
schema:
type: string
/api/web/backend/create:
post:
summary: Create a new web backend configuration with the 'uberspace web backend
set' command.
description: Create a new web backend configuration with the 'uberspace web
backend set' command.
operationId: create_1
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WebbackendCmd'
required: true
responses:
"200":
description: Feedback - the feedback object
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/web/backend/delete/{domain}:
delete:
summary: Delete the web backend configuration for a specific domain or url with
'uberspace web backend del param'.
description: Delete the web backend configuration for a specific domain or url
with 'uberspace web backend del param'.
operationId: delete_1
parameters:
- name: domain
in: path
required: true
schema:
type: string
responses:
"200":
description: Feedback - the feedback object
content:
application/json:
schema:
$ref: '#/components/schemas/Feedback'
/api/web/backend/read:
get:
summary: Gather the 'uberspace web backend list' configuration
description: Gather the 'uberspace web backend list' configuration
operationId: read
responses:
"200":
description: WebbackendConfiguration - the web backend configuration
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/WebbackendConfiguration'
components:
schemas:
AbstractCollection_Object_:
type: object
properties:
empty:
type: boolean
AbstractList_Object_:
type: object
allOf:
- $ref: '#/components/schemas/AbstractCollection_Object_'
ArrayList_String_:
allOf:
- $ref: '#/components/schemas/AbstractList_Object_'
- $ref: '#/components/schemas/AbstractCollection_Object_'
- type: object
properties:
empty:
type: boolean
Disk:
required:
- available-quota
- quota
- space
- space-percentage
type: object
properties:
space:
type: string
space-percentage:
type: number
format: float
quota:
type: string
available-quota:
type: number
format: float
Domain:
required:
- url
type: object
properties:
url:
type: string
Feedback:
required:
- error
- info
type: object
properties:
info:
type: string
error:
type: string
description: "Represent any kind of feedback, e.g. successfully reloaded a services\
\ or a domain"
Hostname:
required:
- hostname
type: object
properties:
hostname:
type: string
Log:
required:
- error
- info
type: object
properties:
info:
$ref: '#/components/schemas/ArrayList_String_'
error:
$ref: '#/components/schemas/ArrayList_String_'
Logfile:
required:
- log
type: object
properties:
log:
$ref: '#/components/schemas/Log'
Logtype:
type: string
enum:
- Info
- Error
- Both
NetworkProgram:
required:
- pid
- port
- program
type: object
properties:
port:
type: integer
format: int32
pid:
type: integer
format: int32
program:
type: string
Service:
required:
- name
type: object
properties:
name:
type: string
status:
type: string
nullable: true
info:
type: string
nullable: true
ServiceOption:
type: string
enum:
- START
- STOP
- RESTART
Ssh:
required:
- password
- server
- username
type: object
properties:
server:
type: string
username:
type: string
password:
type: string
Sws:
required:
- content
- name
type: object
properties:
name:
type: string
content:
type: string
User:
required:
- password
- username
type: object
properties:
username:
type: string
password:
type: string
WebbackendCmd:
required:
- is-apache
- is-http
- remove-prefix
- url
type: object
properties:
url:
type: string
is-apache:
type: boolean
is-http:
type: boolean
remove-prefix:
type: boolean
port:
type: integer
format: int32
nullable: true
WebbackendConfiguration:
required:
- web
type: object
properties:
web:
type: string
prefix:
type: string
nullable: true
process:
type: string
nullable: true
service:
type: string
nullable: true