openapi: Make desired_ram int64 format
The option desired_ram is in byte, make larger the amount of memory to add. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
ca3b39c0be
commit
40b38a4222
2 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ Before issuing the API request it is necessary to run the following command insi
|
|||
root@ch-guest ~ # echo online | sudo tee /sys/devices/system/memory/auto_online_blocks
|
||||
```
|
||||
|
||||
To ask the VMM to add expand the RAM for the VM:
|
||||
To ask the VMM to add expand the RAM for the VM (request is in bytes):
|
||||
|
||||
```shell
|
||||
curl -H "Accept: application/json" -H "Content-Type: application/json" -i -XPUT --unix-socket /tmp/ch-socket -d "{ \"desired_vcpus\": 4, \"desired_ram\" : 3221225472}" http://localhost/api/v1/vm.resize
|
||||
|
|
|
|||
|
|
@ -460,7 +460,9 @@ components:
|
|||
minimum: 1
|
||||
type: integer
|
||||
desired_ram:
|
||||
description: desired memory ram in bytes
|
||||
type: integer
|
||||
format: int64
|
||||
|
||||
VmAddDevice:
|
||||
type: object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue