@@ -2,10 +2,10 @@ swagger: "2.0"
2
2
info :
3
3
title : Firecracker API
4
4
description : RESTful public-facing API.
5
- The API is accessible through HTTP calls on specific URLs
6
- carrying JSON modeled data.
7
- The transport medium is a Unix Domain Socket.
8
- version : 0.19 .0
5
+ The API is accessible through HTTP calls on specific URLs
6
+ carrying JSON modeled data.
7
+ The transport medium is a Unix Domain Socket.
8
+ version : 0.20 .0
9
9
termsOfService : " "
10
10
contact :
11
11
@@ -43,11 +43,11 @@ paths:
43
43
summary : Creates a synchronous action.
44
44
operationId : createSyncAction
45
45
parameters :
46
- - name : info
47
- in : body
48
- required : true
49
- schema :
50
- $ref : " #/definitions/InstanceActionInfo"
46
+ - name : info
47
+ in : body
48
+ required : true
49
+ schema :
50
+ $ref : " #/definitions/InstanceActionInfo"
51
51
responses :
52
52
204 :
53
53
description : The update was successful
@@ -69,12 +69,12 @@ paths:
69
69
Note that the only currently supported boot source is LocalImage.
70
70
operationId : putGuestBootSource
71
71
parameters :
72
- - name : body
73
- in : body
74
- description : Guest boot source properties
75
- required : true
76
- schema :
77
- $ref : " #/definitions/BootSource"
72
+ - name : body
73
+ in : body
74
+ description : Guest boot source properties
75
+ required : true
76
+ schema :
77
+ $ref : " #/definitions/BootSource"
78
78
responses :
79
79
204 :
80
80
description : Boot source created/updated
@@ -96,17 +96,17 @@ paths:
96
96
Will fail if update is not possible.
97
97
operationId : putGuestDriveByID
98
98
parameters :
99
- - name : drive_id
100
- in : path
101
- description : The id of the guest drive
102
- required : true
103
- type : string
104
- - name : body
105
- in : body
106
- description : Guest drive properties
107
- required : true
108
- schema :
109
- $ref : " #/definitions/Drive"
99
+ - name : drive_id
100
+ in : path
101
+ description : The id of the guest drive
102
+ required : true
103
+ type : string
104
+ - name : body
105
+ in : body
106
+ description : Guest drive properties
107
+ required : true
108
+ schema :
109
+ $ref : " #/definitions/Drive"
110
110
responses :
111
111
204 :
112
112
description : Drive created/updated
@@ -125,17 +125,17 @@ paths:
125
125
Will fail if update is not possible.
126
126
operationId : patchGuestDriveByID
127
127
parameters :
128
- - name : drive_id
129
- in : path
130
- description : The id of the guest drive
131
- required : true
132
- type : string
133
- - name : body
134
- in : body
135
- description : Guest drive properties
136
- required : true
137
- schema :
138
- $ref : " #/definitions/PartialDrive"
128
+ - name : drive_id
129
+ in : path
130
+ description : The id of the guest drive
131
+ required : true
132
+ type : string
133
+ - name : body
134
+ in : body
135
+ description : Guest drive properties
136
+ required : true
137
+ schema :
138
+ $ref : " #/definitions/PartialDrive"
139
139
responses :
140
140
204 :
141
141
description : Drive updated
@@ -149,27 +149,27 @@ paths:
149
149
$ref : " #/definitions/Error"
150
150
151
151
/logger :
152
- put :
153
- summary : Initializes the logger by specifying two named pipes (i.e. for the logs and metrics output).
154
- operationId : putLogger
155
- parameters :
152
+ put :
153
+ summary : Initializes the logger by specifying two named pipes (i.e. for the logs and metrics output).
154
+ operationId : putLogger
155
+ parameters :
156
156
- name : body
157
157
in : body
158
158
description : Logging system description
159
159
required : true
160
160
schema :
161
161
$ref : " #/definitions/Logger"
162
- responses :
163
- 204 :
164
- description : Logger created.
165
- 400 :
166
- description : Logger cannot be initialized due to bad input.
167
- schema :
168
- $ref : " #/definitions/Error"
169
- default :
170
- description : Internal server error.
171
- schema :
172
- $ref : " #/definitions/Error"
162
+ responses :
163
+ 204 :
164
+ description : Logger created.
165
+ 400 :
166
+ description : Logger cannot be initialized due to bad input.
167
+ schema :
168
+ $ref : " #/definitions/Error"
169
+ default :
170
+ description : Internal server error.
171
+ schema :
172
+ $ref : " #/definitions/Error"
173
173
174
174
/machine-config :
175
175
get :
@@ -199,11 +199,11 @@ paths:
199
199
If any of the parameters has an incorrect value, the whole update fails.
200
200
operationId : putMachineConfiguration
201
201
parameters :
202
- - name : body
203
- in : body
204
- description : Machine Configuration Parameters
205
- schema :
206
- $ref : " #/definitions/MachineConfiguration"
202
+ - name : body
203
+ in : body
204
+ description : Machine Configuration Parameters
205
+ schema :
206
+ $ref : " #/definitions/MachineConfiguration"
207
207
responses :
208
208
204 :
209
209
description : Machine Configuration created/updated
@@ -223,11 +223,11 @@ paths:
223
223
If any of the parameters has an incorrect value, the whole update fails.
224
224
operationId : patchMachineConfiguration
225
225
parameters :
226
- - name : body
227
- in : body
228
- description : A subset of Machine Configuration Parameters
229
- schema :
230
- $ref : " #/definitions/MachineConfiguration"
226
+ - name : body
227
+ in : body
228
+ description : A subset of Machine Configuration Parameters
229
+ schema :
230
+ $ref : " #/definitions/MachineConfiguration"
231
231
responses :
232
232
204 :
233
233
description : Machine Configuration created/updated
@@ -302,17 +302,17 @@ paths:
302
302
Creates new network interface with ID specified by iface_id path parameter.
303
303
operationId : putGuestNetworkInterfaceByID
304
304
parameters :
305
- - name : iface_id
306
- in : path
307
- description : The id of the guest network interface
308
- required : true
309
- type : string
310
- - name : body
311
- in : body
312
- description : Guest network interface properties
313
- required : true
314
- schema :
315
- $ref : " #/definitions/NetworkInterface"
305
+ - name : iface_id
306
+ in : path
307
+ description : The id of the guest network interface
308
+ required : true
309
+ type : string
310
+ - name : body
311
+ in : body
312
+ description : Guest network interface properties
313
+ required : true
314
+ schema :
315
+ $ref : " #/definitions/NetworkInterface"
316
316
responses :
317
317
204 :
318
318
description : Network interface created/updated
@@ -362,12 +362,12 @@ paths:
362
362
May fail if update is not possible.
363
363
operationId : putGuestVsock
364
364
parameters :
365
- - name : body
366
- in : body
367
- description : Guest vsock properties
368
- required : true
369
- schema :
370
- $ref : " #/definitions/Vsock"
365
+ - name : body
366
+ in : body
367
+ description : Guest vsock properties
368
+ required : true
369
+ schema :
370
+ $ref : " #/definitions/Vsock"
371
371
responses :
372
372
204 :
373
373
description : Vsock created/updated
@@ -391,6 +391,9 @@ definitions:
391
391
kernel_image_path :
392
392
type : string
393
393
description : Host level path to the kernel image used to boot the guest
394
+ initrd_path :
395
+ type : string
396
+ description : Host level path to the initrd image used to boot the guest
394
397
boot_args :
395
398
type : string
396
399
description : Kernel boot arguments
@@ -449,10 +452,10 @@ definitions:
449
452
description : Enumeration indicating what type of action is contained in the payload
450
453
type : string
451
454
enum :
452
- - BlockDeviceRescan
453
- - FlushMetrics
454
- - InstanceStart
455
- - SendCtrlAltDel
455
+ - BlockDeviceRescan
456
+ - FlushMetrics
457
+ - InstanceStart
458
+ - SendCtrlAltDel
456
459
payload :
457
460
type : string
458
461
0 commit comments