vmm: openapi: Add receive/send-migration endpoints

Fixes: #3426

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2021-12-08 12:43:21 -08:00 committed by Bo Chen
parent 254d648bb7
commit 8fb64859cc

View File

@ -349,6 +349,38 @@ paths:
404:
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:
schemas:
@ -998,3 +1030,15 @@ components:
type: string
prefault:
type: boolean
ReceiveMigrationData:
type: object
properties:
receiver_url:
type: string
SendMigrationData:
type: object
properties:
destination_url:
type: string