docs: update vm.resize-disk

On-behalf-of: SAP thomas.prescher@sap.com
Signed-off-by: Thomas Prescher <thomas.prescher@cyberus-technology.de>
This commit is contained in:
Thomas Prescher 2025-11-13 19:36:43 +01:00 committed by Rob Bradford
parent 5fb078305a
commit b15459106c
2 changed files with 28 additions and 0 deletions

View file

@ -86,6 +86,7 @@ The Cloud Hypervisor API exposes the following actions through its endpoints:
| 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 |
| Resize a disk attached to the VM | `/vm.resize-disk` | `/schemas/VmResizeDisk` | N/A | The VM is created |
| Add/remove memory from a zone | `/vm.resize-zone` | `/schemas/VmResizeZone` | 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 |

View file

@ -163,6 +163,22 @@ paths:
429:
description: The VM instance could not be resized because a cpu removal is still pending.
/vm.resize-disk:
put:
summary: Resize a disk
requestBody:
description: Resizes a disk attached to the VM
content:
application/json:
schema:
$ref: "#/components/schemas/VmResizeDisk"
required: true
responses:
204:
description: The disk was successfully resized.
500:
description: The disk could not be resized.
/vm.resize-zone:
put:
summary: Resize a memory zone
@ -1203,6 +1219,17 @@ components:
type: integer
format: int64
VmResizeDisk:
type: object
properties:
id:
description: disk identifier
type: string
desired_size:
description: desired disk size in bytes
type: integer
format: int64
VmResizeZone:
type: object
properties: