Page tree
Skip to end of metadata
Go to start of metadata
Supported VersionsLast Updated
1.2.00 & higher
json output 1.14.00 & higher
2013/05/04
Actionvserver-info
MethodGET, POST
Variables
vserverid  [id of virtual server]
reboot     [true/false] (only required for Xen PV] if not specified default is false
rdtype     [json] For json output specify json or for default output leave blank. This variable is optional
Example Output

XML

Success:

 <status>success</status>
<statusmsg></statusmsg>
<vserverid>[vserverid]</vserverid>
<ctid-xid>[ctid or xen id]</ctid-xid>
<clientid>[clientid]</clientid>
<ipaddress>[main ipaddress]</ipaddress>
<hostname>[hostname]</hostname>
<template>[template]</template>
<hdd>[diskspace]</hdd>
<memory>[memory]</memory>
<swap-burst>[swp or burst memory]</swap-burst>
<type>[openvz/xen/xenhvm]</type>
<cpus>[1]</cpus>
<mac>[mac address]</mac>

Error:

 <status>error</status>
<statusmsg>ERROR MESSAGE</statusmsg>

JSON

Success:

 {
"status":"success",
"statusmsg":"",
"vserverid":"[vserverid]",
"ctid-xid":"[ctid or xen id]",
"clientid":"[clientid]",
"ipaddress":"[main ipaddress]",
"hostname":"[hostname]",
"template":"[template]",
"hdd":"[diskspace]",
"memory":"[memory]",
"swap-burst":"[swp or burst memory]",
"type":"[openvz/xen/xenhvm]",
"cpus":"[1]",
"mac":"[mac address]"
}

Error:

 {"status":"error","statusmsg":"ERROR MESSAGE"}
  • No labels