From 9bfbc930446252d1651429a60865cff6fc0c1508 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Thu, 17 Mar 2022 17:27:39 +0800 Subject: [PATCH] docs: api: Add documentation for vm.snapshot/restore vm.snapshot/restore is missed, add this part. Signed-off-by: Yi Wang --- docs/api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api.md b/docs/api.md index ef1805966..7fff6f310 100644 --- a/docs/api.md +++ b/docs/api.md @@ -88,6 +88,8 @@ Reboot the VM | `/vm.reboot` | N/A Trigger power button of the VM | `/vm.power-button` | N/A | N/A | The VM is booted Pause the VM | `/vm.pause` | N/A | N/A | The VM is booted Resume the VM | `/vm.resume` | N/A | N/A | The VM is paused +Task a snapshot of the VM | `/vm.snapshot` | `/schemas/VmSnapshotConfig`| N/A | The VM is paused +Restore the VM from a snapshot | `/vm.restore` | `/schemas/RestoreConfig` | N/A | The VM is created but not booted Add/remove CPUs to/from the VM | `/vm.resize` | `/schemas/VmResize` | N/A | The VM is booted Add/remove memory from the VM | `/vm.resize` | `/schemas/VmResize` | N/A | The VM is booted Add/remove memory from a zone | `/vm.resize-zone` | `/schemas/VmResizeZone` | N/A | The VM is booted