Skip to content

Node Statistics

Supported Versions Last Updated
1.2.00 & higher
json output 1.14.00 & higher
2014/01/30
Action node-statistics
Method GET, POST
Variables

nodeid [node id or name]

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>

<id>[node id]</id>

<virt>[openvz|xen|kvm]</virt>

<name>[node name]</name>

<ip>[ipaddress]</ip>

<hostname>[hostname]</hostname>

<country>[country]</country>

<city>[city]</city>

<sshport>[sshport]</sshport>

<arch>[arch]</arch>

<freememory>[free memory]</freememory>

<freedisk>[free diskspace]</freedisk>

<virtualservers>[number of virtual servers]</virtualservers>

<freeips>[number of free ips]</freeips>

<freeipv6subnets>[number of free ipv6 subnets]</freeipv6subnets>

<allocatedmemory>[amount of memory allocated to virtual servers]</allocatedmemory>

<allocatedbandwidth>[amount of bandwidth allocated to virtual servers]</allocatedbandwidth>

<memorylimit>[the max memory of the node]</memorylimit>

<freeipv6>[amount of free ipv6]</freeipv6>

<nodegroupid>[the id of the node group]</nodegroupid>

<nodegroupname>[the name of the node group]</nodegroupname>

<disklimit>[the max disk space of the node]</disklimit>

Error:

 <status>error</status>

<statusmsg>ERROR MESSAGE</statusmsg>

JSON

Success:

 {

"status":"success",

"statusmsg":"",

"id":"9",

"virt":"openvz",

"name":"Node2",

"ip":"123.123.123.123",

"memorylimit":415834112,

"disklimit":89070272512,

"hostname":"node2.domain.com",

"country":"UK",

"city":"London",

"sshport":"22",

"arch":"x86_64",

"freememory":"3572736",

"allocatedmemory":7213056,

"allocatedbandwidth":503316480,

"freedisk":"800522240",

"freeipv6":"400",

"freeipv6subnets":"10",

"nodegroupid":"1",

"nodegroupname":"groupname",

"virtualservers":11,

"freeips":33

}

Error:

 {"status":"error","statusmsg":"ERROR MESSAGE"}