mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-01 11:05:46 +00:00
doc: add vm coredump support
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> Co-authored-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
0bb2060ca7
commit
dbeb922882
@ -89,6 +89,7 @@ Trigger power button of the VM | `/vm.power-button` | N/A
|
|||||||
Pause the VM | `/vm.pause` | 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
|
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
|
Task a snapshot of the VM | `/vm.snapshot` | `/schemas/VmSnapshotConfig`| N/A | The VM is paused
|
||||||
|
Perform a coredump of the VM | `/vm.coredump` | `/schemas/VmCoredumpData` | 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
|
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 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 the VM | `/vm.resize` | `/schemas/VmResize` | N/A | The VM is booted
|
||||||
|
@ -366,6 +366,24 @@ paths:
|
|||||||
405:
|
405:
|
||||||
description: The VM instance could not be snapshotted because it is not booted.
|
description: The VM instance could not be snapshotted because it is not booted.
|
||||||
|
|
||||||
|
/vm.coredump:
|
||||||
|
put:
|
||||||
|
summary: Takes a VM coredump.
|
||||||
|
requestBody:
|
||||||
|
description: The coredump configuration
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/VmCoredumpData'
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
204:
|
||||||
|
description: The VM instance was successfully coredumped.
|
||||||
|
404:
|
||||||
|
description: The VM instance could not be coredumped because it is not created.
|
||||||
|
405:
|
||||||
|
description: The VM instance could not be coredumped because it is not booted.
|
||||||
|
|
||||||
/vm.restore:
|
/vm.restore:
|
||||||
put:
|
put:
|
||||||
summary: Restore a VM from a snapshot.
|
summary: Restore a VM from a snapshot.
|
||||||
@ -1098,6 +1116,12 @@ components:
|
|||||||
destination_url:
|
destination_url:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
VmCoredumpData:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
destination_url:
|
||||||
|
type: string
|
||||||
|
|
||||||
RestoreConfig:
|
RestoreConfig:
|
||||||
required:
|
required:
|
||||||
- source_url
|
- source_url
|
||||||
|
Loading…
Reference in New Issue
Block a user