From 48966b4535a10a409df234fbb7871a4e1087827a Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Wed, 15 Jul 2020 18:20:15 -0700 Subject: [PATCH] docs: Update API documentation about '/vm.remove-device' With recent changes (#1030 #1084), the '/vm.remove-device' API is no longer restricted to remove VFIO PCI devices. It now supports (almost) all hotpluggable devices, e.g. disk/net/pmem/fs/vsock. Signed-off-by: Bo Chen --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 7739fbb46..5ce0b336a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -91,12 +91,12 @@ Add/remove CPUs to/from the VM | `/vm.resize` | `/schemas/VmResize` Remove memory from the VM | `/vm.resize` | `/schemas/VmResize` | N/A | The VM is booted Dump the VM information | `/vm.info` | N/A | `/schemas/VmInfo` | The VM is created Add VFIO PCI device to the VM | `/vm.add-device` | `/schemas/VmAddDevice` | `/schemas/PciDeviceInfo` | The VM is booted -Remove VFIO PCI device from the VM | `/vm.remove-device` | `/schemas/VmRemoveDevice` | N/A | The VM is booted Add disk device to the VM | `/vm.add-disk` | `/schemas/DiskConfig` | `/schemas/PciDeviceInfo` | The VM is booted Add fs device to the VM | `/vm.add-fs` | `/schemas/FsConfig` | `/schemas/PciDeviceInfo` | The VM is booted Add pmem device to the VM | `/vm.add-pmem` | `/schemas/PmemConfig` | `/schemas/PciDeviceInfo` | The VM is booted Add network device to the VM | `/vm.add-net` | `/schemas/NetConfig` | `/schemas/PciDeviceInfo` | The VM is booted Add vsock device to the VM | `/vm.add-vsock` | `/schemas/VsockConfig` | `/schemas/PciDeviceInfo` | The VM is booted +Remove device from the VM | `/vm.remove-device` | `/schemas/VmRemoveDevice` | N/A | The VM is booted Dump the VM counters | `/vm.counters` | N/A | `/schemas/VmCounters` | The VM is booted ### REST API Examples