Get Virtual Server Max Memory
The request is available for the following KVM-based virtual servers:
- Virtual servers from KVM compute zones with the Ballooning release resource type and the Set max memory option enabled
- Virtual servers that are built on temples that support Hot Resize
The get a VS max memory limit, use the following request:
GET /virtual_machines/:virtual_machine_id/max_memory.xml
GET /virtual_machines/:virtual_machine_id/max_memory.json
XML Request Example
curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/virtual_machines/12/max_memory.xml
JSON Request Example
curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/virtual_machines/12/max_memory.json
XML Output Example
<virtual_machine> <max_memory_override type="boolean">true</max_memory_override> <preset_max_memory type="integer">2439</preset_max_memory> </virtual_machine>
Where:
max_memory_override - true if the max memory limit is enabled, otherwise, false
preset_max_memory - the maximum amount of RAM in MB allocated to the VS