File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,38 @@ paths:
282
282
schema :
283
283
$ref : " #/definitions/Error"
284
284
285
+ /pmem/{id} :
286
+ put :
287
+ summary : Creates or updates a pmem device. Pre-boot only.
288
+ description :
289
+ Creates new pmem device with ID specified by id parameter.
290
+ If a pmem device with the specified ID already exists, updates its state based on new input.
291
+ Will fail if update is not possible.
292
+ operationId : putGuestPmemByID
293
+ parameters :
294
+ - name : id
295
+ in : path
296
+ description : The id of the guest pmem device
297
+ required : true
298
+ type : string
299
+ - name : body
300
+ in : body
301
+ description : Guest pmem device properties
302
+ required : true
303
+ schema :
304
+ $ref : " #/definitions/Pmem"
305
+ responses :
306
+ 204 :
307
+ description : Pmem device is created/updated
308
+ 400 :
309
+ description : Pmem device cannot be created/updated due to bad input
310
+ schema :
311
+ $ref : " #/definitions/Error"
312
+ default :
313
+ description : Internal server error.
314
+ schema :
315
+ $ref : " #/definitions/Error"
316
+
285
317
/logger :
286
318
put :
287
319
summary : Initializes the logger by specifying a named pipe or a file for the logs output.
@@ -934,6 +966,20 @@ definitions:
934
966
Path to the socket of vhost-user-block backend.
935
967
This field is required for vhost-user-block config should be omitted for virtio-block configuration.
936
968
969
+ Pmem :
970
+ type : object
971
+ required :
972
+ - id
973
+ - is_root_device
974
+ - shared
975
+ properties :
976
+ id :
977
+ type : string
978
+ is_root_device :
979
+ type : boolean
980
+ shared :
981
+ type : boolean
982
+
937
983
Error :
938
984
type : object
939
985
properties :
You can’t perform that action at this time.
0 commit comments