Use Webuzo Scripts API to get all options provided by webuzo.
HTTP Request
https://hostname:4083/index.php?act=webuzo&svs=VPSID
Parameters
Name | Type | Value | Description | Required |
---|---|---|---|---|
act | GET | webuzo | The action which will return data belonging to a particular page | Yes |
svs | POST | VPSID | Provide vpsid of which you want the information. | Yes |
Sample Code
PHP
<?php
require_once('/usr/local/virtualizor/sdk/enduser.php');
$key = 'your_api_key';
$pass = 'your_api_pass';
$ip = 'host_ip';
$v = new Virtualizor_Enduser_API($ip, $key, $pass);
$vid = 6710; //vpsid
$vps = $v->webuzo_scripts($vid);
print_r(json_encode($vps));
?>
Curl
curl -k -L "https://hostname:4083/index.php?act=webuzo&svs=6710&novnc=6710&do=add&api=json&apikey=your_api_key&apipass=your_api_pass"
Output
{
"uid":"600",
"act":"webuzo",
"timezone":2,
"timenow":"July 24, 2019, 2:09 pm",
"vpsid":6710,
"username":"a@a.com",
"user_type":"2",
"preferences":{
"theme":"default",
"language":"english",
"timezone":2
},
"url":"index.php?",
"rdns":{
"pdnsid":null
},
"support_link":"http:\/\/softaculous.com",
"enable_eu_iso":1,
"billing_symbol":"$",
"enable_registration":0,
"inhouse_billing":"0",
"title":"KVMTestServer",
"webuzo_apps":{
"mysql":{
"16":{
"fullname":"MySQL",
"softname":"mysql",
"version":"5.5.62"
},
"128":{
"fullname":"MySQL 5.6",
"softname":"mysql56",
"version":"5.6.43"
},
"134":{
"fullname":"MySQL 5.7",
"softname":"mysql57",
"version":"5.7.x"
},
"141":{
"fullname":"MySQL 8.0",
"softname":"mysql80",
"version":"8.0"
}
},
"webserver":{
"3":{
"fullname":"Apache",
"softname":"apache",
"version":"2.2.34"
},
"125":{
"fullname":"Apache 2.4",
"softname":"apache2",
"version":"2.4.39"
}
},
"php":{
"124":{
"fullname":"PHP 5.6",
"softname":"php56",
"version":"5.6.40"
},
"129":{
"fullname":"PHP 7.0",
"softname":"php70",
"version":"7.0.33"
},
"45":{
"fullname":"PHP 5.5",
"softname":"php55",
"version":"5.5.38"
},
"138":{
"fullname":"PHP 7.2",
"softname":"php72",
"version":"7.2.19"
},
"133":{
"fullname":"PHP 7.1",
"softname":"php71",
"version":"7.1.30"
},
"146":{
"fullname":"PHP 7.3",
"softname":"php73",
"version":"7.3.6"
}
},
"":{
"136":{
"fullname":"phpMyAdmin",
"softname":"phpmyadmin",
"version":"4.8.5"
}
}
},
"info":{
"dns_nameserver":[
],
"webuzo_templates":{
"829":{
"osid":"829",
"type":"kvm",
"name":"webuzo-ubuntu-16.04-x86_64",
"filename":"webuzo-ubuntu-16.04-x86_64.img",
"size":"2365587456",
"pygrub":"0",
"drive":"",
"hvm":"0",
"perf_ops":"1",
"active":"1",
"url":"http:\/\/files.virtualizor.com\/ostemplates.php?osid=829",
"distro":"webuzo",
"Nvirt":"kvm",
"mg":[
3
]
},
"834":{
"osid":"834",
"type":"kvm",
"name":"webuzo-centos-7.5-x86_64",
"filename":"webuzo-centos-7.5-x86_64.img",
"size":"1719664640",
"pygrub":"0",
"drive":"",
"hvm":"0",
"perf_ops":"1",
"active":"1",
"url":"http:\/\/files.virtualizor.com\/ostemplates.php?osid=834",
"distro":"webuzo",
"Nvirt":"kvm",
"mg":[
3
]
}
}
},
"webuzo_enabled":false,
"time_taken":"0.183"
}