mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-01 02:55:45 +00:00
openapi: Add "vm.add-net" entry point
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
57c3fa4b1e
commit
6244beb9d5
@ -203,6 +203,22 @@ paths:
|
||||
500:
|
||||
description: The new device could not be added to the VM instance.
|
||||
|
||||
/vm.add-net:
|
||||
put:
|
||||
summary: Add a new network device to the VM
|
||||
requestBody:
|
||||
description: The details of the new network device
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/NetConfig'
|
||||
required: true
|
||||
responses:
|
||||
204:
|
||||
description: The new device was successfully added to the VM instance.
|
||||
500:
|
||||
description: The new device could not be added to the VM instance.
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user