CloudboxCreate

Create a cloudbox environment. The cloudbox will be active directly. Cloudbox creation, upgrades and extensions made trough the Versio API will get 25% to compete with reseller rates.

Input

Parameter Value Example value
email E-mail address.
Parameter is required
email@domain.uk
boxes Amount boxes.
Parameter is required
1
directadmin Amount DirectAdmin non-support licenses.
£50 per license once
Parameter is not required
1
installatron Amount Installatron licenses
£4 per month per license
Parameter is not required
1
windows2008 Amount Windows Server 2008 R2 Standard licenses
£15 per month per license
Parameter is not required
2
term Payment term. 3,6 or 12 months.
Parameter is verplicht
3
auto_renew Autorenew for this cloudbox?
Parameter is NOT required
1 = yes
0 = no
If parameter not sent, your default account value will be used


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
id Unique cloudbox ID.
Only sent when value parameter success = 1
8484
username Username for cloudbox.
Only sent when value parameter success = 1
cloudbox8484
password Password for cloudbox.
Only sent when value parameter success = 1
asd23as
url Cloudbox dashboard URL.
Only sent when value parameter success = 1
http://cloudbox.url.co.uk
active 0 or 1. Will indicate if the cloubox is activated directly. Normally the cloudbox will be activated directly but in some cases it requires manually activation. When 0; your cloudbox will be activated within 24 hour.
Only sent when value parameter success = 1
1


Voorbeeld

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "CloudboxCreate", "email" => "email@domain.uk", "boxes" => "1", "directadmin" => "1", "installatron" => "0", "windows2008" => "0", "term" => "3", "auto_renew" => "1" ); $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 { ?> <table> <tr> <td><? echo $versio['id']; ?></td> <td><? echo $versio['username']; ?></td> <td><? echo $versio['password']; ?></td> <td><? echo $versio['url']; ?></td> <td><? echo $versio['active']; ?></td> </tr> </table> <? } ?>