Skip to content

Virtual Server State

Supported Versions Last Updated
1.2.00 & higher
json output 1.14.00 & higher
2014/08/11
Action vserver-infoall
Method GET, POST
Variables

vserverid [vserver id]

nostatus [true|false] (don't get the virtual server status)

nographs [true|false] (don't generate graphs)

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>

<state>online|offline|disabled</state>

<ipaddresses>comma seperated list of ip's</ipaddresses>

<mainipaddress>main ipaddress</mainipaddress>

<type>openvz|xen|xenhvm|kvm</type>

<trafficgraph>path to graph</trafficgraph>

<loadgraph>path to graph</loadgraph>

<memorygraph>path to graph</memorygraph>

<node>name of node</node>

<hdd>total space, used space, free space, percent used space</hdd>

<bandwidth>total bandwidth, used bandwidth, free bandwidth, percent used bandwidth</bandwidth>

<memory>total memory used memory, free memory, percent used memory</memory>

<ipv6subnets>list of ipv6 subnets</ipv6subnets>

<internalips>internal ip address</internalips>

 

Error:

 <status>error</status>

<statusmsg>ERROR MESSAGE</statusmsg>

JSON

Success:

 {

"status":"success",

"statusmsg":"",

"state":"online|offline|disabled",

"ipaddresses":"comma seperated list of ip's",

"mainipaddress":"main ipaddress",

"type":"openvz|xen|xenhvm|kvm",

"trafficgraph":"path to graph",

"loadgraph":"path to graph",

"memorygraph":"path to graph",

"node":"name of node",

"hdd":"total space, used space, free space, percent used space",

"bandwidth":"total bandwidth, used bandwidth, free bandwidth, percent used bandwidth",

"memory":"total memory used memory, free memory, percent used memory",

"ipv6subnets":"list of ipv6 subnets",

"internalips":"internal ip address"

}

Error:

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

Back to top