Skip to content

Commit a952d43

Browse files
release v0.4.0 - added cpu_template to swagger
Machine config has an additional parameter by which you can configure the cpu template. Signed-off-by: Andreea Florescu <[email protected]>
1 parent c6f1cdd commit a952d43

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

api_server/swagger/firecracker-beta.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
swagger: "2.0"
22
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.
55
The API is accessible through HTTP calls on specific URLs carrying JSON modeled data.
66
The transport medium is a Unix Domain Socket.
7-
version: 0.3.0
7+
version: 0.4.0
88
termsOfService: ""
99
contact:
1010
@@ -171,7 +171,8 @@ paths:
171171
get:
172172
summary: Get the machine configuration of the VM.
173173
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.
175176
responses:
176177
200:
177178
description: OK
@@ -262,6 +263,14 @@ definitions:
262263
type: string
263264
description: Kernel boot arguments
264265

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+
265274
DeviceState:
266275
type: string
267276
description:
@@ -366,8 +375,8 @@ definitions:
366375
type: object
367376
description: Machine Configuration descriptor by which you can specify the number
368377
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
371380
properties:
372381
vcpu_count:
373382
type: integer
@@ -378,6 +387,8 @@ definitions:
378387
ht_enabled:
379388
type: boolean
380389
description: Flag for enabling/disabling Hyperthreading
390+
cpu_template:
391+
$ref: "#/definitions/CPUTemplate"
381392

382393
NetworkInterface:
383394
type: object

0 commit comments

Comments
 (0)