From 82cad99c0b34317f41b54524153881f58912506e 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-disk" 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 fb3ec6dc6..984a90029 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -171,6 +171,22 @@ paths: 404: description: The device could not be removed from the VM instance. + /vm.add-disk: + put: + summary: Add a new disk to the VM + requestBody: + description: The details of the new disk + content: + application/json: + schema: + $ref: '#/components/schemas/DiskConfig' + required: true + responses: + 204: + description: The new disk was successfully added to the VM instance. + 500: + description: The new disk could not be added to the VM instance. + components: schemas: