You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OpenAPISpecification.yaml
+103-1Lines changed: 103 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -347,7 +347,7 @@ paths:
347
347
tags:
348
348
- Basic Operations
349
349
consumes:
350
-
- text/plain
350
+
- application/json
351
351
summary: Add a label to the instance with the specified id
352
352
description: >-
353
353
This command will add the specified label to the instance with the
@@ -374,6 +374,65 @@ paths:
374
374
description: 'Bad request, your label exceeded the character limit'
375
375
'404':
376
376
description: 'Not found, the id you specified could not be found'
377
+
/instances/{Id}/logs:
378
+
get:
379
+
tags:
380
+
- Basic Operations
381
+
summary: Retrieve the logging output of the specified instance
382
+
description: This command retrieves the docker container logging output for the specified instance, if the instance is in fact running inside a docker container.
383
+
operationId: retreiveLogs
384
+
parameters:
385
+
- name: Id
386
+
in: path
387
+
description: Id of the instance
388
+
required: true
389
+
type: integer
390
+
format: int64
391
+
- name: StdErr
392
+
in: query
393
+
description: Switch to select the stderr channel
394
+
required: false
395
+
type: boolean
396
+
responses:
397
+
'200':
398
+
description: Success, log string is being returned
399
+
schema:
400
+
type: string
401
+
example: "I am logging output .."
402
+
'400':
403
+
description: Selected instance not running inside docker container
404
+
'404':
405
+
description: Id not found on the server
406
+
'500':
407
+
description: Internal Server Error
408
+
/instances/{Id}/attach:
409
+
get:
410
+
tags:
411
+
- Basic Operations
412
+
summary: Stream logging output from instance
413
+
description: 'This command streams the docker container logging output for the specified instance. NOTE: This is a websocket endpoint, so only valid websocket requests will be processed. Swagger does not provide sufficient support for websockets, so this documentation might be confusing as it defines a HTTP method, etc. The names of parameters and response-codes are valid though.'
414
+
operationId: streamLogs
415
+
parameters:
416
+
- name: Id
417
+
in: path
418
+
description: Id of the instance
419
+
required: true
420
+
type: integer
421
+
format: int64
422
+
- name: StdErr
423
+
in: query
424
+
description: Switch to select the stderr channel
425
+
required: false
426
+
type: boolean
427
+
responses:
428
+
'200':
429
+
description: Success, logs are being streamed via websocket connection.
430
+
'400':
431
+
description: Selected instance not running inside docker container
432
+
'404':
433
+
description: Id not found on the server
434
+
'500':
435
+
description: Internal Server Error
377
436
/instances/deploy:
378
437
post:
379
438
tags:
@@ -688,6 +747,49 @@ paths:
688
747
description: One of the ids was not found on the server
689
748
'500':
690
749
description: Internal server error
750
+
/instances/{Id}/command:
751
+
post:
752
+
tags:
753
+
- Docker Operations
754
+
summary: Runs a command into a docker container
755
+
description: >-
756
+
This command runs a specified command inside a docker container.
757
+
operationId: command
758
+
parameters:
759
+
- in: path
760
+
name: Id
761
+
description: The ID of the instance that is a docker container
762
+
required: true
763
+
type: integer
764
+
format: int64
765
+
- in: body
766
+
name: CommandData
767
+
description: The data needed to run the command
768
+
required: true
769
+
schema:
770
+
type: object
771
+
required:
772
+
- Command
773
+
properties:
774
+
Command:
775
+
type: string
776
+
example: "rm -rf *"
777
+
Privileged:
778
+
type: boolean
779
+
User:
780
+
type: string
781
+
example: root
782
+
responses:
783
+
'200':
784
+
description: 'OK'
785
+
'400':
786
+
description: >-
787
+
Cannot run command, ID is no docker container.
788
+
'404':
789
+
description: Cannot run command, ID not found.
790
+
'500':
791
+
description: Internal server error, unknown operation result DESCRIPTION
0 commit comments