Page tree
Skip to end of metadata
Go to start of metadata
Supported VersionsLast Updated
1.16.10 & higher
json output 1.16.10 & higher
2015/05/01
Actionlist-plans
MethodGET, POST
Variables
type  [openvz|xen|xenhvn|kvm]
rdtype  [json] For json output specify json or for default output leave blank. This variable is optional
Example Output

XML

Success:

 

 <plans>
<plan>

<id>4</id>

<name>ttttt</name>

<ipv6subnets>2</ipv6subnets>

<automatedbackups>1</automatedbackups>

<cpus>4</cpus>

<ram>104857600</ram>

<swap></swap>

<disk>10737418240</disk>

<bandwidth>107374182400</bandwidth>

  </plan>

  <plan>

<id>6</id>

<name>testbycpanel</name>

<ipv6subnets>0</ipv6subnets>

<automatedbackups>1</automatedbackups>

<cpus>4</cpus>

<ram>67108864</ram>

<swap></swap>

<disk>5368709120</disk>

<bandwidth>107374182400</bandwidth>

  </plan>

</plans>

 

Error:

 

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

 

JSON

Success:

 

 {
"status":"success",
"statusmsg":"",
"plans":[
  {
       "id":"1",
   "name":"test",
   "ipv6subnets":"2",
   "automatedbackups":"1",
   "cpus":"4",
   "ram":"102400",
   "swap":"204800",
   "disk":"10737418240",
   "bandwidth":"2147483648"
  },
  {
       "id":"2",
   "name":"test2",
   "ipv6subnets":"2",
   "automatedbackups":"1",
   "cpus":"4",
   "ram":"102400",
   "swap":"204800",
   "disk":"10737418240",
   "bandwidth":"2147483648"
  },
 
}

 

Error:

 

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