Virtualizor regularly releases updates for the Virtualizor software. You can use the Updates API to check for updates of Virtualizor. If any new update is available the API will return the information about the new release and start the update process in the background.
HTTP Request
https://hostname:4085/index.php?act=updates
Parameters
Name | Method | Value | Description | Required |
---|---|---|---|---|
act | GET | updates | Will get updates | Yes |
updates | POST | 1/0 | If set then the update script will run | Yes |
Sample Code
<?php
require_once('/usr/local/virtualizor/sdk/admin.php');
$key = 'your_api_key';
$pass = 'your_api_pass';
$ip = 'your_server_ip';
$admin = new Virtualizor_Admin_API($ip, $key, $pass);
$post =array();
$post['update'] = 1;
$output = $admin->updates($post);
print_r(json_encode($output));
?>
Output
{
"title": "Update Center",
"updated": true,
"info": {
"version": "2.9.8",
"patch": "1",
"message": "Hi,\r\n
\r\n
The Virtualizor Team has released Virtualizor 2.9.8.0\r\n
This version has many features and bug fixes.\r\n
Here is the change list :\r\n
\r\n
1) [Feature] Added bus driver selection while VPS creation for KVM VPSes on Virtualizor Proxmox server.\r\n
\r\n
2) [Feature] Added an option to Enable / Disable VPS plan.\r\n
\r\n
3) [Feature] Added TUN TAP / PPP option for OpenVZ containers on OpenVZ 7.\r\n
\r\n
4) [Feature] If Cloud registration is enabled and \"Enable Login WHMCS user\" setting is enabled then Virtualizor will validate the login details from WHMCS and if it is valid then creates a Cloud user with plan selected in Billing setting. \r\n
NOTE: To enable this Admin need to enable WHMCS callback from Admin panel -> Configuration -> Master setting -> Callback Setting section -> Enable Login for WHMCS user\r\n
\r\n
5) [Feature] Added payment gateways like (Payuindia, Twocheckout) for cloud billing module. Now Admin can add custom payment gateway in Virtualizor for Cloud billing module. For how to enable these gateways please go through the following guide :\r\n
\r\n
https://virtualizor.com/wiki/Virtualizor_Cloud_Billing_System#Payment_Gateways\r\n
\r\n
For how to add custom payment gateway go through the following guide :\r\n
https://virtualizor.com/wiki/Integrate_payment_gateway\r\n
\r\n
6) [Feature] Bandwidth graph in enduser panel will be shown as per VPS creation date.\r\n
\r\n
7) [Feature] Cache Passthrough will be added automatically if host-passthrough is selected. Requires qemu version greater than 2.0+\r\n
\r\n
8) [Feature] Now cloud user can user the same WHMCS registration details to login on the Virtualizor Cloud Panel. To enable this Admin need to enable Callback setting. Please go through the following link for more details :\r\n
https://virtualizor.com/wiki/Virtualizor_Cloud_Billing_System#Auto_register_using_WHMCS_details\r\n
\r\n
9) [Feature] Added provision to define custom configuration for php-fpm. Here is the guide foe how to do it :\r\n
https://virtualizor.com/wiki/Tweaking_EMPS\r\n
\r\n
10) [Task] Invoices under billing module can now be downloaded.\r\n
\r\n
11) [Task] While deleting VPSes from List VS page, Hostname and VPS ID will now be displayed in the confirmation alert.\r\n
\r\n
12) [Task] If IPPool is shared, all servers will be shown on edit IP wizard. Before it was showing only one server.\r\n
\r\n
13) [Task] Information on Preferences page in enduser panel is now mandatory.\r\n
\r\n
14) [Task] Change Hostname callback will be created if Hostname is changed from enduser panel.\r\n
\r\n
15) [Task] On cloud billing section, it was showing usage for only unpaid invoices. Now it will show unbilled usage first and then billed usage as well.\r\n
\r\n
16) [Task] Added virt-df setting for KVM only. It was removed due to issues on some servers. By default it will be off. Admin needs to enable it to use it for Disk and IO usage statistics.\r\n
\r\n
17) [Task] CURL checking added in virtnetwork start. On some servers ping was disabled and due to that virtnetwork was not able to start.\r\n
\r\n
18) [Bugfix] On Ubuntu Nodes service virtnetwork restart was not working correctly. This is fixed.\r\n
\r\n
19) [Bugfix] While importing from Proxmox, if ISO was added to a VPS, at that time addition disk was created with 0 size in Virtualizor. This is fixed.\r\n
\r\n
20) [Bugfix] While importing from Proxmox, ThinLVM storage was not getting imported. This is fixed.\r\n
\r\n
21) [Bugfix] After editing LXC container on Virtualizor Proxmox, its network was not working due to change of MAC address. This is fixed.\r\n
\r\n
22) [Bugfix] OpenVZ 7 KVM VPSes were not auto started on Node reboot. This is fixed.\r\n
\r\n
23) [Bugfix] On OpenVZ 7, when VPSes were created with routed enabled IPs and if routed was disabled in IPpool, VPSes network was still operated as routed instead of bridged. This is fixed. \r\n
NOTE: To update to bridge network edit operation for VPS is required after disabling routed in Ippool.\r\n
\r\n
24) [Bugfix] On OpenVZ 7 while creating OS template if the template with the same name was present, Virtualizor was overwriting the previous template with new one instead of throwing error. This is fixed.\r\n
\r\n
25) [Bugfix] On Virtualizor Admin dashboard, for Centos 6.10 it was showing 6.1 for OS in Server Statistic section. This is fixed.\r\n
\r\n
26) [Bugfix] While Migration / Clone operation Locked IPs were also used. This is fixed.\r\n
\r\n
27) [Bugfix] On List Ips wizard search operation was not working for Servers. This is fixed.\r\n
\r\n
28) [Bugfix] While adding users / Editing users, if password had special character as \"\\\", it was giving error. This is fixed.\r\n
\r\n
29) [Bugfix] Migrate Master utility was giving SQL error due to minor bug. This is fixed.\r\n
\r\n
30) [Bugfix] If WHMCS callback is enabled and Multiple Virtualizor servers are added in WHMCS, it was causing issues. As there is high chance of same VPSID on all Virtualizor servers, due to which while making callback API call it was affecting all vps whose VPS IDs are same but servers are different. This is fixed.\r\n
NOTE: To fix this issue WHMCS module needs to updated.\r\n
\r\n
31) [Bugfix] WHMCS reseller module was removing IPs on Change package. This is fixed.\r\n
NOTE: To fix this WHMCS reseller module needs to be updated.\r\n
\r\n
32) [Bugfix] Cloud users Media Groups were not applied to its users, due to that users of cloud user were able to access all templates. This is fixed.\r\n
\r\n
33) [Bugfix] Recipe and Control Panel installation was not working if both selected at the same time. This is fixed.\r\n
\r\n
34) [Bugfix] While making API call for VPS Statistics for Slave server, it was returning null. This is fixed.\r\n
\r\n
35) [Bugfix] Sub-domain emails were not getting added if sub-domain had \"-\" OR \"_\" characters. This is fixed.\r\n
\r\n
===================== Patch 1 =====================\r\n
\r\n
36) [Feature] Added TUN/TAP and PPP setting in enduser panel for VZO containers.\r\n
\r\n
37) [Bugfix] In VPS creation Email VPS Name was being sent as VPS ID. This is fixed.\r\n
\r\n
38) [Bugfix] Added check for QEMU Version while adding cache passthrough. On some server Libvirt version was updated but if QEMU version was older at that time this setting was not working. This issue was introduced in 2.9.8.0. This is fixed.\r\n
\r\n
39) [Bugfix] Cloud user launch instance was not working due to minor issue in 2.9.8.1. This is fixed.\r\n
\r\n
40) [Task] Updated SDK with newly added functionalities like Billing, resource pricing etc.\r\n
\r\n
Virtualizor supports OpenVZ, OpenVZ 7, Xen, XenServer, LXC and Linux-KVM on CentOS and Ubuntu and they all can be managed from the Master. We are adding more features and if you have any suggestions, do let us know. We hope you enjoy this version of Virtualizor.\r\n
\r\n
Regards,\r\n
The Virtualizor Team",
"mode": 1,
"link": "https://s3.softaculous.com/a/virtualizor/updates.php?give=2.9.8.1",
"redirect": "/index.php"
},
"timenow": 1540377807,
"time_taken": "1.249"
}