Get Virtual Server Status

Da Wiki Neen.


Use the following API call to get statues for all virtual server's status:

GET /virtual_machines/:virtual_machine_id/status.xml

GET /virtual_machines/:virtual_machine_id/status.json

XML Request example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:password --url http://cloud.neen.it/virtual_machines/:virtual_machine_id/status.xml

JSON Request example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:password --url http://cloud.neen.it/virtual_machines/:virtual_machine_id/status.json

XML Output example

<virtual_machines type="array">
<virtual_machine>
<id type="integer">48</id>
<identifier>b266b5h5et39iy</identifier>
<hostname>qaaoxp</hostname>
<template_id type="integer">111</template_id>
<built type="boolean">true</built>
<locked type="boolean">false</locked>
<booted type="boolean">true</booted>
<operating_system>windows</operating_system>
<suspended type="boolean">false</suspended>
<enable_autoscale type="boolean">false</enable_autoscale>
<state>new</state>
</virtual_machine>
</virtual_machines>


Where:



Strumenti personali
Namespace
Varianti
Azioni
Navigazione
Strumenti