From 75878dd90afb969fd1edbe4e0d222ffcff631d11 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 23 Mar 2020 16:25:36 +0000 Subject: [PATCH] openapi: Add "vm.add-pmem" entry point Signed-off-by: Rob Bradford --- vmm/src/api/openapi/cloud-hypervisor.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 984a90029..f41b2b94f 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -187,6 +187,22 @@ paths: 500: description: The new disk could not be added to the VM instance. + /vm.add-pmem: + put: + summary: Add a new pmem device to the VM + requestBody: + description: The details of the new pmem device + content: + application/json: + schema: + $ref: '#/components/schemas/PmemConfig' + required: true + responses: + 204: + description: The new device was successfully added to the VM instance. + 500: + description: The new device could not be added to the VM instance. + components: schemas: