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/04/29
Actionnode-virtualservers
MethodGET, POST
Variables
nodeid	[id of node]
rdtype	[json] For json output specify json or for default output leave blank. This variable is optional
Example Output

XML

Success:

 <virtualservers>
<virtualserver>                              
<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>
<mac>[mac address]</mac>
</virtualserver>
</virtualservers>

Error:

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

JSON

Success:

 {
"status":"success",
"statusmsg":"",
"virtualservers":[
  {
   "vserverid":"171",
   "ctid-xid":"vm108",
   "clientid":"1",
   "ipaddress":"95.45.23.7",
   "hostname":"test574.soluslabs.net",
   "template":"centos-5-x86_64",
   "hdd":"10737418240",
   "memory":"2147483648",
   "swap-burst":"1073741824",
   "type":"xen",
   "mac":"00:16:3e:73:15:b8"
  },
  {
   "vserverid":"168",
   "ctid-xid":"vm107",
   "clientid":"65",
   "ipaddress":"123.123.123.44",
   "hostname":"centos6.com",
   "template":"centos-6.0-x86_64-solus",
   "hdd":"10737418240",
   "memory":"1073741824",
   "swap-burst":"2147483648",
   "type":"xen",
   "mac":"00:16:3e:eb:41:5e"
  }
 ]	
}

Error:

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