WebhostingListAccounts

Laat een lijst met alle, momenteel actieve webhosting accounts zien.

Input

Geen

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 webhosting accounts.
Only sent when value parameter success = 1
20
id_X Unique webhosting ID (numeric).
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
45221
username_X Username.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
keeshz51
creation_date_X Start date for reseller hosting package.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
19-06-2008
expiration_date_X Expire date for reseller hosting package.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
01-09-2018
expiration_stamp_X Expire date in unix timestamp.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1535760000
auto_renew_X Auto renew for reseller hosting package.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1 = Aan
0 = Uit
plan_id_X Webhosting plan ID.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
2
plan_X Plan name.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
Silver
max_domains_x Maximal amount of domains that can be hosted.
Only sent when value parameter success = 1
50
Als output = 'x' dan betekent dit 'onbeperkt'
bandwidth_X Amount bandwitdh (in MBs) available.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
75000
Als output = 'x' dan betekent dit 'onbeperkt'
diskspace_X Amount diskspace (in MBs) available.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
5000
bandwidth_bonus_X Bandwidth bonus (in MBs) available.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
600
diskspace_bonus_X Diskspace bonus (in MBs) available.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
50
cp_link_X Link to controle panel.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
http://91.213.214.150:2222/
server_X Hosting server number.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
050
server_ip_X Server IP address.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
195.88.32.240
ns1_X NS1 server.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
ns17.axc.nl
ns1_ip_X NS1 IP address.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
195.88.32.240
ns2_X NS2 server.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
ns18.axc.nl
ns2_ip_X NS2 IP address.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
195.88.32.241
country_X Server country
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
NL
server_setup_X Installation (CP).
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
DirectAdmin, Installatron
temp_info_X Extra information.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "WebhostingListAccounts" ); $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['username_'.$teller]; ?></td> <td><? echo $versio['creation_date_'.$teller]; ?></td> <td><? echo $versio['expiration_date_'.$teller]; ?></td> <td><? echo $versio['expiration_stamp_'.$teller]; ?></td> <td><? echo $versio['auto_renew_'.$teller]; ?></td> <td><? echo $versio['plan_id_'.$teller]; ?></td> <td><? echo $versio['plan_'.$teller]; ?></td> <td><? echo $versio['max_domains_'.$teller]; ?></td> <td><? echo $versio['bandwidth_'.$teller]; ?></td> <td><? echo $versio['diskspace_'.$teller]; ?></td> <td><? echo $versio['bandwidth_bonus_'.$teller]; ?></td> <td><? echo $versio['diskspace_bonus_'.$teller]; ?></td> <td><? echo $versio['cp_link_'.$teller]; ?></td> <td><? echo $versio['server_'.$teller]; ?></td> <td><? echo $versio['server_ip_'.$teller]; ?></td> <td><? echo $versio['ns1_'.$teller]; ?></td> <td><? echo $versio['ns1_ip_'.$teller]; ?></td> <td><? echo $versio['ns2_'.$teller]; ?></td> <td><? echo $versio['ns2_ip_'.$teller]; ?></td> <td><? echo $versio['country_'.$teller]; ?></td> <td><? echo $versio['server_setup_'.$teller]; ?></td> <td><? echo $versio['temp_info_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No accounts found."); } } ?>