1
1
swagger : " 2.0"
2
2
info :
3
- title : Firecracker v0.3 API
4
- description : Firecraker v0.3 - RESTful public-facing API.
3
+ title : Firecracker v0.4 API
4
+ description : Firecraker v0.4 - RESTful public-facing API.
5
5
The API is accessible through HTTP calls on specific URLs carrying JSON modeled data.
6
6
The transport medium is a Unix Domain Socket.
7
- version : 0.3 .0
7
+ version : 0.4 .0
8
8
termsOfService : " "
9
9
contact :
10
10
@@ -171,7 +171,8 @@ paths:
171
171
get :
172
172
summary : Get the machine configuration of the VM.
173
173
description : Get the machine configuration of the VM. When called before the PUT operation, it will return
174
- the default values for the vCPU count (=1), memory size (=128 MiB) and Hyperthreading is disabled.
174
+ the default values for the vCPU count (=1), memory size (=128 MiB), Hyperthreading is disabled and
175
+ there is no CPU Template.
175
176
responses :
176
177
200 :
177
178
description : OK
@@ -262,6 +263,14 @@ definitions:
262
263
type : string
263
264
description : Kernel boot arguments
264
265
266
+ CPUTemplate :
267
+ type : string
268
+ description :
269
+ The CPU Template defines a set of flags to be disabled from the microvm so that
270
+ the features exposed to the guest are the same as in the selected instance type.
271
+ enum :
272
+ - T2
273
+
265
274
DeviceState :
266
275
type : string
267
276
description :
@@ -366,8 +375,8 @@ definitions:
366
375
type : object
367
376
description : Machine Configuration descriptor by which you can specify the number
368
377
of vCPU of one machine with vcpu_count, the memory size in MiB with
369
- mem_size_mib and whether Hyperthreading is enabled/disabled with
370
- ht_enabled
378
+ mem_size_mib, the CPU template with cpu_template and whether Hyperthreading
379
+ is enabled/disabled with ht_enabled
371
380
properties :
372
381
vcpu_count :
373
382
type : integer
@@ -378,6 +387,8 @@ definitions:
378
387
ht_enabled :
379
388
type : boolean
380
389
description : Flag for enabling/disabling Hyperthreading
390
+ cpu_template :
391
+ $ref : " #/definitions/CPUTemplate"
381
392
382
393
NetworkInterface :
383
394
type : object
0 commit comments