From 68d90cbe6548782f5823525c20c2245c797acbb5 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 13 Jan 2021 10:14:14 +0000 Subject: [PATCH] opeenapi: Add power button API entry point Signed-off-by: Rob Bradford --- vmm/src/api/openapi/cloud-hypervisor.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 9c05ad9e5..6778e7472 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -134,6 +134,18 @@ paths: 405: description: The VM instance could not reboot because it is not booted. + /vm.power-button: + put: + summary: Trigger a power button in the VM + operationId: power-buttonVM + responses: + 204: + description: Power button successfully triggered in the VM + 404: + description: The button could not be triggered because it is not created yet + 405: + description: The button could not be triggered because it is not booted. + /vm.resize: put: summary: Resize the VM