CloudboxList

List active cloudboxes.

Input

None

Output

Parameter Value Example value
success command executed successfully 0 = fout
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
total_count Total active cloudboxes
Only sent when value parameter success = 1
20
id_X Cloudbox ID (numeric).
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
45221
expiration_date_X Cloudbox expire date.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
01-09-2018
expiration_stamp_X Linux timestamp of expire date.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1535760000
boxes_X Amount boxes.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
5
directadmin_X Amount of DirectAdmin licenses without supportplan.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1
windows2008_X Amount Windows 2008 Server licenses.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1
installatron_X Amount Installatron licenses.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "CloudboxList" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['id_'.$teller]; ?></td> <td><? echo $versio['expiration_date_'.$teller]; ?></td> <td><? echo $versio['expiration_stamp_'.$teller]; ?></td> <td><? echo $versio['boxes_'.$teller]; ?> x cloudboxes</td> <td><? echo $versio['directadmin_'.$teller]; ?> x DirectAdmin (without supportplan)</td> <td><? echo $versio['windows2008_'.$teller]; ?> x Windows Server 2008 R2 Standard</td> <td><? echo $versio['installatron_'.$teller]; ?> x Installatron</td> </tr> <? $teller++; } ?> </table> <? } else { echo("No active cloudboxes found."); } } ?>