mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-23 03:42:20 +00:00
vmm: openapi: Add receive/send-migration endpoints
Fixes: #3426 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
254d648bb7
commit
8fb64859cc
@ -349,6 +349,38 @@ paths:
|
|||||||
404:
|
404:
|
||||||
description: The VM instance could not be restored because it is already created.
|
description: The VM instance could not be restored because it is already created.
|
||||||
|
|
||||||
|
/vm.receive-migration:
|
||||||
|
put:
|
||||||
|
summary: Receive a VM migration from URL
|
||||||
|
requestBody:
|
||||||
|
description: The URL for the reception of migration state
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ReceiveMigrationData'
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
204:
|
||||||
|
description: The VM migration was successfully received.
|
||||||
|
500:
|
||||||
|
description: The VM migration could not be received.
|
||||||
|
|
||||||
|
/vm.send-migration:
|
||||||
|
put:
|
||||||
|
summary: Send a VM migration to URL
|
||||||
|
requestBody:
|
||||||
|
description: The URL for sending the migration state
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/SendMigrationData'
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
204:
|
||||||
|
description: The VM migration was successfully sent.
|
||||||
|
500:
|
||||||
|
description: The VM migration could not be sent.
|
||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
|
||||||
@ -998,3 +1030,15 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
prefault:
|
prefault:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
ReceiveMigrationData:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
receiver_url:
|
||||||
|
type: string
|
||||||
|
|
||||||
|
SendMigrationData:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
destination_url:
|
||||||
|
type: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user