Skip to content

Commit 2efb8d7

Browse files
Alexandra Iordacheacatangiu
authored andcommitted
swagger: add definition for drive rescan actions
Signed-off-by: Alexandra Iordache <[email protected]>
1 parent 150ba51 commit 2efb8d7

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

api_server/swagger/firecracker.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,29 @@ paths:
3636
description: Internal Server Error
3737
schema:
3838
$ref: "#/definitions/Error"
39+
40+
/actions:
41+
put:
42+
summary: Creates a synchronous action.
43+
operationId: createSyncAction
44+
parameters:
45+
- name: info
46+
in: body
47+
required: true
48+
schema:
49+
$ref: "#/definitions/InstanceActionInfo"
50+
responses:
51+
204:
52+
description: The update was successful
53+
400:
54+
description: The action cannot be executed due to bad input
55+
schema:
56+
$ref: "#/definitions/Error"
57+
default:
58+
description: Internal Server Error
59+
schema:
60+
$ref: "#/definitions/Error"
61+
3962
/actions/{action_id}:
4063
get:
4164
summary: Returns detailed information about an action.
@@ -328,8 +351,6 @@ definitions:
328351
description:
329352
Variant wrapper containing the real action.
330353
The timestamp field is read-only, trying to update/change it with an API call will fail.
331-
required:
332-
- action_id
333354
properties:
334355
action_id:
335356
type: string
@@ -339,8 +360,11 @@ definitions:
339360
description: Enumeration indicating what type of action is contained in the payload
340361
type: string
341362
enum:
363+
- BlockDeviceRescan
342364
- InstanceStart
343365
- InstanceHalt
366+
payload:
367+
type: string
344368
timestamp:
345369
type: string
346370

0 commit comments

Comments
 (0)