NAV
SDK

Virtual Servers

List Virtual Servers

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $page_number = 0;
    $count = 0;
    //For Searching
    $post['vpsid'] = '' ;
    $post['vpsname'] = '';
    $post['vpsip'] = '';
    $post['vpshostname'] = '';
    $post['vsstatus'] = '';
    $post['vstype'] = '';
    $post['user'] = '';
    $post['serid'] = '';
    $post['search'] = '';

    $output = $admin->listvs($page_number,$count,$post);

    print_r(json_encode($output));
?>

Returns: The code Returns a JSON array of list of searched vps.

{
    "title": "Virtual Servers",
    "vs": {
        "3332": {
            "vpsid": "3332",
            "vps_name": "v1983",
            "uuid": "xpkbf3m6uzkcdqfr",
            "serid": "0",
            "time": "1469661435",
            "edittime": "0",
            "virt": "kvm",
            "uid": "299",
            "plid": "2",
            "hostname": "www.test-whmcs_dnd.com",
            "osid": "347",
            "os_name": "centos-6.6-x86_64",
            "iso": "",
            "sec_iso": "",
            "boot": "cda",
            "space": "7",
            "inodes": "0",
            "ram": "2048",
            "burst": "0",
            "swap": "4096",
            "cpu": "1024",
            "cores": "4",
            "cpupin": "-1",
            "cpu_percent": "0.00",
            "bandwidth": "1000",
            "network_speed": "1024",
            "upload_speed": "0",
            "io": "0",
            "ubc": "a:0:{}",
            "acpi": "1",
            "apic": "1",
            "pae": "1",
            "shadow": "0",
            "vnc": "1",
            "vncport": "6250",
            "vnc_passwd": "",
            "hvm": "0",
            "suspended": "0",
            "suspend_reason": "null",
            "nw_suspended": "null",
            "rescue": "0",
            "band_suspend": "0",
            "tuntap": "0",
            "ppp": "0",
            "ploop": "0",
            "dns_nameserver": "a:0:{}",
            "osreinstall_limit": "0",
            "preferences": "null",
            "nic_type": "default",
            "vif_type": "",
            "virtio": "1",
            "pv_on_hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "cpu_mode": "default",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "kvm_vga": "0",
            "acceleration": "0",
            "vnc_keymap": "en-us",
            "routing": "0",
            "mg": "",
            "used_bandwidth": "0.00",
            "webuzo": "0",
            "disable_ebtables": "0",
            "admin_managed": "0",
            "rdp": "0",
            "cpu_topology": "null",
            "mac": "null",
            "notes": "null",
            "server_name": "localhost",
            "email": "test@test.com",
            "pid": "0",
            "type": "2",
            "os_distro": "centos",
            "ips": {
                "112": "192.168.10.10"
            }
        }
    }
}

HTTP Request

https://hostname:4083/index.php?act=vs

Parameters

Name Type Value Description Required
page_number GET Int If not specified, then only first 50 records are returned Yes
count GET Int Number of records to be returned, default is 50 Yes
act GET vs The action specified to retrieve vps list Yes

HTTP Request

https://hostname:4083/index.php?act=vs&vpsid=id&vpsname=vpsname&vpsip=vpsip&vpshostname=vpshostname&vsstatus=vsstatus&vstype=vstype&vserid=vserid&user=user&search=Search

Search Parameters

Name Type Value Description Required
id POST Int The VPS being searched using id of the vps Yes
vpsid POST Int Search using vpsid No
ip POST ip Results will be returned on the basis of the ip No
hostname POST hostname VPS is searched on the basis of the hostname passed No
status POST status VPS is searched on the basis of the status of the vps No
type POST type VPS is searched on the basis of the type of virtualization No
vserid POST vserid VPS is searched on the basis of the server No
user POST user Search for the vps according to the user No
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Create VPS

Example Code: The code for creating the VPS


<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    //Add the below block of code for creating VPS on Slave Server

    /*
    $empty = array();
    //To fetch data, pass empty arrays
    $data = $admin->addvs($empty, $empty);
    $cookies[$data['globals']['cookie_name'].'_server'] = 1; //Slave Serid
    */

    $post = array();
    $post['serid'] = 0;
    $post['virt'] = 'kvm';
    $post['user_email'] = 'test@test.com';
    $post['user_pass'] = 'test123';
    $post['plid'] = 0;
    $post['osid'] = 88;
    $post['iso'] = 0;
    $post['hostname'] = 'test12345.com';
    $post['rootpass'] = 'test123';
    $post['ips'] = array('192.168.111.49');
    $post['num_ips6'] = 0;
    $post['num_ips6_subnet'] = 0;
    $post['stid'] = 1;
    $post['space'] = array(0=>array(
                            'size' => 2,
                            'st_uuid'=>'3rjhfdsescpehhor'),
                        1=>array(
                            'size'=>2,
                            'st_uuid'=>'3rjhfdsescpehhor')); //For VPS with Multi-Disk
    $post['ram'] = 1024;
    $post['swapram'] = 1024;
    $post['bandwidth'] = 0;
    $post['network_speed'] = 0;
    $post['cpu'] = 1000;
    $post['cores'] = 4;
    $post['cpu_percent'] = 100.00;
    $post['vnc'] = 1;
    $post['vncpass'] = 'test123';
    $post['sec_iso'] = 0;
    $post['kvm_cache'] = 0;
    $post['io_mode'] = 0;
    $post['vnc_keymap'] = 'en-us';
    $post['nic_type'] = 'default';
    $post['osreinstall_limit'] = 0; 

    $output = $admin->addvs($post);

    //Use this call instead if creating VPS on Slave Server
    //$output = $admin->addvs($post, $cookies);

    print_r($output);
?>

Returns : The above code returns a JSON Array

{
    "title": "Add Virtual Server",
    "error": [],
    "vs_info": {
        "uuid": "td8kvcnhz3bd7ff7",
        "pass": "test123",
        "plid": "0",
        "hostname": "test12345.com",
        "space": "5",
        "ram": "1024",
        "bandwidth": "0",
        "network_speed": "0",
        "upload_speed": "-1",
        "cores": "4",
        "cpupin": -1,
        "uid": "218",
        "io": "0",
        "burst": "0",
        "cpu_percent": "0",
        "swap": "1024",
        "acpi": "1",
        "apic": "1",
        "pae": "1",
        "vnc": "0",
        "vncport": "0",
        "shadow": "0",
        "virt": "kvm",
        "hvm": "0",
        "iso": "",
        "boot": "cda",
        "band_suspend": "0",
        "tuntap": "0",
        "ppp": "0",
        "mac_status": "0",
        "osreinstall_limit": "0",
        "mg": [],
        "webuzo": "0",
        "kvm_cache": "0",
        "io_mode": "0",
        "vnc_keymap": "en-us",
        "virtio": "0",
        "cpu_mode": "",
        "admin_managed": "0",
        "rdp": "0",
        "mac": "",
        "osid": "270",
        "cpu": "1024",
        "sec_iso": "",
        "kvm_vga": "0",
        "acceleration": "0",
        "disable_ebtables": "0",
        "nic_type": "default",
        "vps_name": "v1984",
        "ubc": "",
        "vpsid": "3333",
        "ips": ["192.168.111.49"],
        "ipv6": [],
        "ipv6_subnet": [],
        "ips_int": []
    },
    "globals": {
        "cookie_name": "SIMCookies3081"
    }
}

HTTP Request

https://hostname:4085/index.php?act=addvs

Parameters

Name Type Value Description Required
act GET addvs The action specified to retrieve data after adding the vps Yes
rootpass POST rootpass The root password for the VPS Yes
virt POST virt The Virtualization Technology (kvm / openvz / xen / xcp / xen hvm / xcp hvm) has to be specified here. Yes
plid POST Int The plan id for the VPS No
hostname POST hostname The hostname the VPS Yes
space POST space The disk space for the VPS. In case of Multiple Disk you can specify the array as given in the example. Otherwise just value for single disk VPS is enough Yes
ram POST ram The ram for the VPS Yes
bandwidth POST bandwidth The network bandwidth for the VPS Yes
network_speed POST network_speed The network_speed for the VPS Yes
cores POST cores The number of cores allotted to the VPS Yes
mgs POST Int Media groups ids (optional) No
priority POST Int The IO priority for the VPS (Only for OpenVZ) Yes
cpu POST cpu The CPU weight for the VPS Yes
burst POST burst The burst RAM for the VPS (Only for OpenVZ) Yes
cpu_percent POST cpu_percent The CPU Percent time for the VPS (Only for OpenVZ and Xen) Yes
osid POST Int The id of the Operating System Yes
iso POST iso The ISO name Yes
stid POST stid Storage ID on which the VPS is to be created. (Not needed if using Primary storage) Yes
cpu POST cpu The CPU weight for the VPS Yes
vnc POST 1/0 Flag to enable vnc(0 or 1) (Only for KVM and Xen) No
vncpass POST vncpass The vnc password (Only for KVM and Xen) No
swapram POST swapram The amount of SWAP for the VPS (Only for KVM and Xen) Yes
shadow POST shadow The amount of shadow memory for the VPS (Only Xen HVM) Yes
hvm POST hvm Flag to enable hvm(0 or 1)(Only for Xen HVM) No
boot POST boot The boot order (dca or cda) (Only for KVM and Xen HVM) Yes
ips POST ips The IP Address(s) for the VPS (Array) Yes
num_ips6 POST Int The Number of Ipv6 Address given to the vps No
num_ips6_subnet Int The Number of IPV6 Subnet to be assigned to the vps No
noemail POST noemail Flag to disable email notification to VPS client only (0 or 1) No
add_user POST 1 Add new User No
user_email POST user_email Add User Email Yes
user_pass POST user_pass Add a password Yes
add_ip POST add_ip Adds an IP address Yes
vnc_keymap POST vnc_keymap Allows to select keymap Yes
cpunit POST cpuunit Allocates VNC units Yes
uid POST Int Sets a unique id for a user Yes
dnsplan_id POST dnsplan_id Add a dns Plan to the vps. User which has selected dns plan only can use this No
addvs POST 1 If set the vps will be created Yes
band_suspend POST band_suspend Flag to suspend the VPS network (0 or 1) No
osreinstall_limit POST Int The number of times the user can reinstall the OS No
tuntap POST tuntap Flag to enable tuntap (0 or 1) (Only for OpenVZ) No
vif_type POST vif_type The VIF type (netfront or ioemu) (Only for KVM and Xen HVM) Yes
nic_type POST nic_type The NIC type (default or e1000) (Only for KVM and Xen) Yes
ips_int POST ips_int Set the internal ip for the vps No
virtio POST virtio Flag to enable VIRTIO (0 or 1)(Only for KVM) No

Delete VPS

<?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);

    $vid = 3438;
    $output = $admin->delete_vs($vid);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Virtual Servers",
    "done": "true",
    "vs": "null",
    "ostemplates": "null",
    "servers": [{
        "serid": "0",
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:21:\"test@test.com\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:1;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:100;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3081\";s:8:\"vpslimit\";s:3:\"200\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:20;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": "0",
        "ram": "8577",
        "total_space": "807",
        "space": "129",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.6",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1472431722",
        "locked": "0",
        "vcores": "69",
        "ips": "23879",
        "ipv6": "98",
        "ipv6_subnet": "80",
        "ips_int": "29",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "16",
        "alloc_ram": "25088",
        "alloc_space": "204",
        "alloc_cpu": "15336",
        "alloc_cpu_percent": "1300.00",
        "alloc_bandwidth": "1519",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "11",
        "server_name": "KVM Slave: ip_addr",
        "virt": "kvm",
        "ip": "ip_addr",
        "internal_ip": "",
        "vnc_ip": "ip_addr",
        "settings": "a:25:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:19:\"testme@mail_server\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:100;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:10:\"35 4 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 7,22 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies551\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:14:\"ip_addr\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:10;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "8805",
        "total_space": "1143",
        "space": "417",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.6",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1472428865",
        "locked": "0",
        "vcores": "40",
        "ips": "15",
        "ipv6": "53",
        "ipv6_subnet": "23",
        "ips_int": "5",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "9",
        "alloc_ram": "18968",
        "alloc_space": "306",
        "alloc_cpu": "11264",
        "alloc_cpu_percent": "280.00",
        "alloc_bandwidth": "1024",
        "virts": ["kvm"]
    }],
    "status": "null",
    "network_status": "null",
    "owners": "null",
    "timenow": "1472432407",
    "time_taken": "0.096"
}

HTTP Request

https://hostname:4085/index.php?act=vs&delete=VPSID

Parameters

Name Type Value Description Required
vpsid POST Int The id of the vps which needs to be deleted. Passed as a POST Parameter Yes
act GET vs Returns success if vps is deleted Yes
delete POST vpsid The vps that needs to be deleted Yes

Edit VPS

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
   $post['vpsid'] = 3803;
   $post['uid'] = 372;
   $post['pass'] = 'Test!23';
   $post['plid'] = '';
   $post['ips'] = '192.168.2.118';
   $post['ips_int'][] = '10.10.1.10';
   $post['ipv6'][] = '2001:41d0:0008:5372:0000:0000:4c11:bf9b';
   $post['hostname'] = 'Test_vps';
   $post['space'] = array(0=>array(
                            'size' => 5,
                            'st_uuid'=>'3rjhfdsescpehhor'),
                        1=>array(
                            'size'=> 2,
                            'st_uuid'=>'3rjhfdsescpehhor'));;
   $post['ram'] = 2048;
   $post['disable_ebtables'] = 1;
   $post['bandwidth'] = '';
   $post['cores'] = 4;
   $post['cpupin'] = 1024;
   $post['network_speed'] = '' ;
   $post['upload_speed'] = '';
   $post['virt'] = 'kvm';
   $post['hvm'] = '';
   $post['io'] = '';
   $post['burst'] = '';
   $post['cpu_percent'] = 0; 
   $post['swap'] = 1024;
   $post['acpi'] = 1;
   $post['apic'] = 1;
   $post['pae'] = 1;
   $post['vnc'] = 1;
   $post['shadow'] = '';
   $post['iso'] = '';
   $post['boot'] = '';
   $post['band_suspend'] = '';
   $post['pv_on_hvm'] = '';
   $post['tuntap'] = '';
   $post['mac_status'] = '';
   $post['osreinstall_limit'] = '';
   $post['mg'] = '';
   $post['webuzo'] = '';
   $post['cpu_mode'] = 'default';
   $post['admin_managed'] = '';
   $post['rdp'] = '';
   $post['disable_nw_config'] = '';
   $post['topology_sockets'] = 0;
   $post['topology_cores'] = 0;
   $post['topology_threads'] = 0;
   $post['vnc_keymap'] = 'en-us';
   $post['ips_int'][] = '10.10.1.10';
   $post['cpupin'] = 2;
   $post['dns'][] = '4.2.2.2,4.2.2.1';
   $post['vncpass'] = 'hjdkls';
   $post['editvps'] = 1;

   $output = $admin->editvs($post) ;

   print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Edit Virtual Server",
    "error": [],
    "vs_info": {
        "vpsid": "3744",
        "vps_name": "v2166",
        "uuid": "8rcdxblgnhhalekh",
        "serid": "0",
        "time": "1479899506",
        "edittime": "1479902031",
        "virt": "kvm",
        "uid": "372",
        "plid": "0",
        "hostname": "Test_vps",
        "osid": "334",
        "os_name": "centos-7.0-x86_64",
        "iso": "",
        "sec_iso": "",
        "boot": "cda",
        "space": "8",
        "inodes": "0",
        "ram": "2048",
        "burst": "0",
        "swap": "1024",
        "cpu": "1000",
        "cores": "4",
        "cpupin": "-1",
        "cpu_percent": "0.00",
        "bandwidth": "0",
        "network_speed": "0",
        "upload_speed": "-1",
        "io": "0",
        "ubc": "",
        "acpi": "1",
        "apic": "1",
        "pae": "1",
        "shadow": "0",
        "vnc": "1",
        "vncport": "6245",
        "vnc_passwd": "",
        "hvm": "0",
        "suspended": "0",
        "suspend_reason": null,
        "nw_suspended": null,
        "rescue": "0",
        "band_suspend": "0",
        "tuntap": "0",
        "ppp": "0",
        "ploop": "0",
        "dns_nameserver": "a:2:{i:0;s:7:\"4.2.2.1\";i:1;s:7:\"4.2.2.2\";}",
        "osreinstall_limit": "0",
        "preferences": null,
        "nic_type": "default",
        "vif_type": "netfront",
        "virtio": "0",
        "pv_on_hvm": "0",
        "disks": [{
            "primary": 1,
            "path": "\/dev\/vg\/vsv2166-0gbf-8rcdxblgnhhalekh",
            "st_uuid": "3rjhfdsescpehhor",
            "type": "block",
            "size": 8,
            "size_unit": "",
            "vpsid": "3744",
            "rescue": 0,
            "target_name": "",
            "format": "raw",
            "disk_uuid": "gbf"
        }],
        "kvm_cache": "0",
        "io_mode": "0",
        "cpu_mode": "default",
        "total_iops_sec": "0",
        "read_bytes_sec": "0",
        "write_bytes_sec": "0",
        "kvm_vga": "0",
        "acceleration": "0",
        "vnc_keymap": "en-us",
        "routing": "0",
        "mg": "",
        "used_bandwidth": "0.00",
        "cached_disk": {
            "disk": {
                "Filesystem": "\/dev\/mapper\/vg-vsv2166--0gbf--8rcdxblgnhhalekh1",
                "1K-blocks": "3997376",
                "Used": "882820",
                "Available": "2904856",
                "Use%": "24%",
                "mounted_on": "\/home\/v2166\/0"
            },
            "inode": {
                "Filesystem": "\/dev\/mapper\/vg-vsv2166--0gbf--8rcdxblgnhhalekh1",
                "Inodes": "262144",
                "IUsed": "27190",
                "IFree": "234954",
                "IUse%": "11%",
                "mounted_on": "\/home\/v2166\/0"
            }
        },
        "webuzo": "0",
        "disable_ebtables": "0",
        "admin_managed": "0",
        "rdp": "0",
        "topology_sockets": "0",
        "topology_cores": "0",
        "topology_threads": "0",
        "mac": "",
        "notes": null,
        "disable_nw_config": "0",
        "bpid": "0",
        "pid": "0",
        "ips": [],
        "ips6": ["2001:41d0:0008:5372:0000:0000:4c11:bf9b"],
        "ips6_subnet": [],
        "ips_int": []
    },
    "done": "1"
}

HTTP Request

https://hostname:4085/index.php?act=editvs&vpsid=VPSID

Parameters

Name Type Value Description Required
vpsid POST Int The id of the vps that needs to be edited Yes
act GET editvs The action specified to retrieve data after vps has been edited Yes
uid POST Int The user id to which the vps belongs Yes
pass POST pass The password of the vps Yes
plid POST plid If using plans to configure the vpsm, then plid has to be specified Yes
hostname POST hostname The hostname of the vps Yes
space POST space The disk space of the vps Yes
ips POST ips The number of ips to be assigned and used by the vps Yes
ipv6 POST ipv6 The ipv6 address that needs to be edited Yes
ram POST ram The RAM value to be assigned to the vps Yes
bandwidth POST bandwidth The bandwidth to be assigned to the vps Yes
cores POST cores The number of CPU Cores the vps will use Yes
cpupin POST cpupin IF CPU Affinity is not checked then, number of virtual cpus have to be selected Yes
network_speed POST network_speed The network speed to be used by the vps Yes
upload_speed POST upload_speed The speed at which the data should be uploaded Yes
virt POST virt Type of virtualization using which vps was created Yes
hvm POST hvm Pass value if it is hypervisor.Cannot be used while editing the vps. No
io POST io Set I/O value of the vps Yes
burst POST burst Set the burst RAM for the vps Yes
cpu_percent POST cpu_percent Set the CPU Percent, the vps could use out of the server CPU Yes
swap POST swap The swap space assigned to the vps to be used a virtual RAM Yes
acpi POST acpi If set , then acpi will be enabled for the vps Yes
apic POST apic If set , then apic will be enabled for the vps Yes
pae POST pae If set , then pae will be enabled for the vps Yes
vnc POST 1/0 If set, VNC access will be enabled Yes
shadow POST shadow Amount of Shadow Memory for the vps Yes
iso POST iso The name of the iso file which will be used to install vps Yes
boot POST boot This sets the boot order of the os inside the vps Yes
band_suspend POST band_suspend If set then the vps will be suspended once it exceeds the bandwidth limit assigned Yes
pv_on_hvm POST pv_on_hvm If set then it will be enabled for the vps Yes
osreinstall_limit POST It sets the OS reinstall limit inside the vps Yes
mg POST mg The media group assigned to the vps Yes
admin_managed POST admin_managed If set then the user of the vps will use minimal features Yes
rdp POST rdp IF set, then RDP will be enabled for windows vps Yes
disable_nw_config POST disable_nw_config This will disable network config of the vps Yes
topology_sockets POST Int This will select number of sockets of CPU Yes
topology_cores POST Int This will allow user to enter cores of CPU that can be used by vps Yes
topology_threads POST Int This will allow vps to use threading concept of CPU Yes
tuntap POST tuntap Flag to enable tuntap (0 or 1) (Only for OpenVZ) Yes
vif_type POST vif_type The VIF type (netfront or ioemu) (Only for KVM and Xen HVM) Yes
nic_type POST nic_type The NIC type (default or e1000) (Only for KVM and Xen) Yes
ips_int POST ips_int Set the internal ip for the vps Yes
dns POST dns Adding DNS Nameservers to the vps Yes
cpupin POST 1/0 Enable or Disable CPU Affinity for the vps Yes

Manage VPS

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['editvps'] = 1;
    $post['vpsid'] = 3761;
    $post['rootpass'] = 'test@123';
    $post['ips'][] = '10.10.100.10';
    $post['num_ips6'][] = 1;
    //$post['plid'] = '';
    $post['hostname'] = 'test123';
    $post['space'] = 3;
    $post['ram'] = 1024;
    $post['bandwidth'] = 0;
    $post['cores'] = 2;
    $post['cpupin'] = 0;
    $post['uid'] = 414;
    $post['network_speed'] = 0;
    $post['upload_speed'] = 0;
    $post['virt'] = 'kvm';
    $post['hvm'] = 0;
    $post['io'] = 0;
    $post['burst'] = 0;
    $post['cpu_percent'] = 0;
    $post['swap'] = 1024;
    $post['acpi'] = 1;
    $post['apic'] = 1;
    $post['pae'] = 1;
    $post['vnc'] = 1;
    $post['shadow'] = 0;
    $post['iso'] = '';
    $post['boot'] = 'cda';
    $post['band_suspend'] = 0;
    $post['tuntap'] = 0;
    $post['pv_on_hvm'] = 0;
    $post['ppp'] = 0;
    $post['mac_status'] = 0;
    $post['osreinstall_limit'] = 0;
    $post['mg'][] = '';
    $post['webuzo'] = '';
    $post['cpu_mode'] = 'default';
    $post['admin_managed'] = 0;
    $post['rdp'] = 1;
    $post['mac'] = '';
    $post['notes'] = '';
    $post['disable_nw_config'] = 0;
    $post['topology_sockets'] = 0;
    $post['topology_cores'] = 0;
    $post['topology_threads'] = 0;
    $post['enable_rescue'] = 3628;
    $post['rescue_pass'] = 'test';
    $post['confirm_rescue_pass'] = 'test';

    $output = $admin->managevps($post);

    print_r(json_encode($output));
?>

Result:The above code will produce the following output

{
    "title": "Manage VPS",
    "done": 1,
    "vps": {
        "vpsid": "3761",
        "vps_name": "v2178",
        "uuid": "l6ntyh36zoaaq9zp",
        "serid": "0",
        "time": "1480591457",
        "edittime": "1480941164",
        "virt": "kvm",
        "uid": "414",
        "plid": "0",
        "hostname": "test123",
        "osid": "39",
        "os_name": "centos-5.5-x86",
        "iso": "",
        "sec_iso": "",
        "boot": "cda",
        "space": "3",
        "inodes": "0",
        "ram": "1024",
        "burst": "0",
        "swap": "0",
        "cpu": "0",
        "cores": "2",
        "cpupin": "-1",
        "cpu_percent": "0.00",
        "bandwidth": "0",
        "network_speed": "0",
        "upload_speed": "0",
        "io": "0",
        "ubc": "",
        "acpi": "1",
        "apic": "1",
        "pae": "1",
        "shadow": "0",
        "vnc": "1",
        "vncport": "6247",
        "vnc_passwd": "",
        "hvm": "0",
        "suspended": "0",
        "suspend_reason": null,
        "nw_suspended": null,
        "rescue": "0",
        "band_suspend": "0",
        "tuntap": "0",
        "ppp": "0",
        "ploop": "0",
        "dns_nameserver": "a:0:{}",
        "osreinstall_limit": "0",
        "preferences": null,
        "nic_type": "",
        "vif_type": "",
        "virtio": "0",
        "pv_on_hvm": "0",
        "kvm_cache": "",
        "io_mode": "",
        "cpu_mode": "default",
        "total_iops_sec": "0",
        "read_bytes_sec": "0",
        "write_bytes_sec": "0",
        "kvm_vga": "0",
        "acceleration": "0",
        "vnc_keymap": "",
        "routing": "0",
        "mg": "",
        "used_bandwidth": "0.02",
        "webuzo": "0",
        "disable_ebtables": "0",
        "admin_managed": "0",
        "rdp": "1",
        "topology_sockets": "0",
        "topology_cores": "0",
        "topology_threads": "0",
        "mac": "",
        "notes": "",
        "disable_nw_config": "0",
        "bpid": "0",
        "pid": "0",
        "ips": ["10.10.100.10"],
        "ips6": [],
        "ips6_subnet": [],
        "ips_int": []
    },
    "timenow": "1480941166",
    "time_taken": "5.190"
}

HTTP Request

https://hostname:4085/index.php?act=managevps&vpsid=VPSID

Parameters

Name Type Value Description Required
act GET editvs The action specified to retrieve data after vps has been edited Yes
vpsid POST Int The id of the vps that needs to be edited Yes
uid POST Int The user id to which the vps belongs No
pass POST pass The password of the vps No
plid POST plid If using plans to configure the vpsm, then plid has to be specified No
hostname POST hostname The hostname of the vps No
user_email POST user_email The User specified email No
space POST space The disk space of the vps No
num_ips POST num_ips The number of ips to be assigned and used by the vps No
ram POST ram The RAM value to be assigned to the vps No
bandwidth POST bandwidth The bandwidth to be assigned to the vps No
cores POST cores The number of CPU Cores the vps will use No
cpupin POST cpupin IF CPU Affinity is not checked then, number of virtual cpus have to be selected No
network_speed POST network_speed The network speed to be used by the vps No
upload_speed POST upload_speed The speed at which the data should be uploaded No
virt POST virt Type of virtualization using which vps was created No
hvm POST hvm Pass value if it is hypervisor No
io POST io Set I/O value of the vps No
burst POST burst Set the burst RAM for the vps No
cpu_percent POST cpu_percent Set the CPU Percent, the vps could use out of the server CPU No
swap POST swap The swap space assigned to the vps to be used a virtual RAM No
acpi POST acpi If set , then acpi will be enabled for the vps No
apic POST apic If set , then apic will be enabled for the vps No
pae POST pae If set , then pae will be enabled for the vps No
vnc POST 1/0 If set, VNC access will be enabled No
shadow POST shadow Amount of Shadow Memory for the vps No
iso POST iso The name of the iso file which will be used to install vps No
boot POST boot This sets the boot order of the os inside the vps No
band_suspend POST band_suspend If set then the vps will be suspended once it exceeds the bandwidth limit assigned No
pv_on_hvm POST pv_on_hvm If set then it will be enabled for the vps No
tuntap POST tuntap osreinstall_limit Flag to enable TunTap
osreinstall_limit POST It sets the OS reinstall limit inside the vps No
mg POST mg The media group assigned to the vps No
admin_managed POST admin_managed If set then the user of the vps will use minimal features No
rdp POST rdp IF set, then RDP will be enabled for windows vps No
disable_nw_config POST disable_nw_config This will disable network config of the vps No
topology_sockets POST Int This will select number of sockets of CPU No
topology_cores POST Int This will allow user to enter cores of CPU that can be used by vps No
topology_threads POST Int This will allow vps to use threading concept of CPU No
enable_rescue POST vpsid If set then Rescue will be enabled for the vps No
rescue_pass POST rescue_pass Set the rescue password when enabled No
confirm_rescue_pass POST confirm_rescue_pass Confirmation done for the rescue password No

Start VPS

<?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);

    $vid = 3582;

    $output = $admin->start($vid);

    print_r(json_encode($output));

?>

Result:The above code produces the following output

{
    "title": "Virtual Servers",
    "done": "true",
    "done_msg": "VPS has been started successfully",
    "vsop": {
        "action": "start",
        "id": "3582",
        "serid": "0",
        "output": "Domain v2105 created from \/etc\/libvirt\/qemu\/v2105.xml\n",
        "status": {
            "3582": "1"
        }
    },
    "timenow": "1474866442",
    "time_taken": "3.629"
}

HTTP Request

https://hostname:4085/index.php?act=vs&action=start&vpsid=VPSID

Parameters

Name Type Value Description Required
vpsid GET Int The id of the vps which needs to be started. Yes
act GET vs The action specified to retrieve data after vps is started Yes

Stop VPS

<?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);

    $vid = 3582;

    $output = $admin->stop($vid);

    print_r(json_encode($output));

?>

Result: The above code produces the following output

{
    "title": "Virtual Servers",
    "done": "true",
    "done_msg": "Shutdown signal has been sent to the VPS",
    "vsop": {
        "action": "stop",
        "id": "3582",
        "serid": "0",
        "output": "Domain ca3319b2-b679-4050-acc2-a081024176a6 is being shutdown\n",
        "status": {
            "3582": "1"
        }
    },
    "timenow": "1474865653",
    "time_taken": "0.203"
}

HTTP Request

https://hostname:4085/index.php?act=vs&action=stop&vpsid=VPSID

Parameters

Name Type Value Description Required
vpsid GET Int The id of the vps that need to be shutdown Yes
act GET vs The action specified to retrieve data after vps is stopped Yes

Restart VPS

<?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);

    $vid = 3582;

    $output = $admin->restart($vid);

    print_r(json_encode($output));

?>

Result: The above code produces the following output

{
    "title": "Virtual Servers",
    "done": "true",
    "done_msg": "Restart signal has been sent to the VPS",
    "vsop": {
        "action": "restart",
        "id": "3582",
        "serid": "0",
        "output": "Domain v2105 created from \/etc\/libvirt\/qemu\/v2105.xml\n",
        "status": {
            "3582": "1"
        }
    },
    "timenow": "1474867402",
    "time_taken": "3.857"
}

HTTP Request

https://hostname:4085/index.php?action=vs&action=restart&vpsid=VPSID

Parameters

Name Type Value Description Required
vpsid GET Int The id of the vps which needs to be restarted Yes
act GET vs The action specified to retrieve data after vps is restarted Yes

Poweroff VPS

<?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);

    $vid = 3582;

    $output = $admin->poweroff($vid);

    print_r(json_encode($output));

?>

Result:The above code produces the following output

{
    "title": "Virtual Servers",
    "done": "true",
    "done_msg": "VPS has been powered off successfully",
    "vsop": {
        "action": "poweroff",
        "id": "3582",
        "serid": "0",
        "output": "Domain ca3319b2-b679-4050-acc2-a081024176a6 destroyed\n",
        "status": {
            "3582": "0"
        }
    },
    "timenow": "1474868178",
    "time_taken": "0.476"
}

HTTP Request

https://hostname:4085/index.php?act=vs&action=poweroff&vpsid=VPSID

Parameters

Name Type Value Description Required
vpsid GET Int The id of the vps which needs to be restarted Yes
act GET vs The action specified to retrieve data after vps is powered off. This is used to return data of the whole page Yes

Suspend VPS

<?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);

    $vid = 3609;

    $output = $admin->suspend($vid);

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Virtual Servers",
    "done": "1",
    "done_msg": "VPS Suspended",
    "vs": "null",
    "ostemplates": "null",
    "servers": [{
        "serid": "0",
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:1;s:10:\"soft_email\";s:21:\"test@test.com\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:1;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:100;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3081\";s:8:\"vpslimit\";s:3:\"200\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:20;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": "0",
        "ram": "5008",
        "total_space": "909",
        "space": "115",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "5",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1476316864",
        "locked": "0",
        "vcores": "49",
        "ips": "18485",
        "ipv6": "98",
        "ipv6_subnet": "93",
        "ips_int": "26",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "13",
        "alloc_ram": "22704",
        "alloc_space": "182",
        "alloc_cpu": "12240",
        "alloc_cpu_percent": "300.00",
        "alloc_bandwidth": "1009",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "15",
        "server_name": "KVM Slave: ip_addr",
        "virt": "kvm",
        "ip": "ip_addr",
        "internal_ip": "",
        "vnc_ip": "ip_addr",
        "settings": "a:25:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:19:\"testme@mail_server\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:8:\"enp3s4f0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:100;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:10:\"35 4 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 7,22 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies551\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:14:\"ip_addr\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:10;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "6871",
        "total_space": "1239",
        "space": "242",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "5",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1476316864",
        "locked": "0",
        "vcores": "46",
        "ips": "52",
        "ipv6": "51",
        "ipv6_subnet": "20",
        "ips_int": "3",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "12",
        "alloc_ram": "21760",
        "alloc_space": "363",
        "alloc_cpu": "15540",
        "alloc_cpu_percent": "420.00",
        "alloc_bandwidth": "1001",
        "virts": ["kvm"]
    }],
    "status": "null",
    "network_status": "null",
    "owners": "null",
    "timenow": "1476318029",
    "time_taken": "0.138"
}

HTTP Request

https://hostname:4085/index.php?act=vs&suspend=VPSID

Parameters

Name Type Value Description Required
act GET vs The action will retrieve information after the vps is suspended Yes
suspend GET Int The id of the vps to be suspended.

Unsuspend VPS

<?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);

    $vid = 3609;

    $output = $admin->unsuspend($vid);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Virtual Servers",
    "done": "1",
    "done_msg": "VPS Unsuspended",
    "vs": "null",
    "ostemplates": "null",
    "servers": [{
        "serid": "0",
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:1;s:10:\"soft_email\";s:21:\"test@test.com\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:1;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:100;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3081\";s:8:\"vpslimit\";s:3:\"200\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:20;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": "0",
        "ram": "5008",
        "total_space": "909",
        "space": "115",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "5",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1476316864",
        "locked": "0",
        "vcores": "49",
        "ips": "18485",
        "ipv6": "98",
        "ipv6_subnet": "93",
        "ips_int": "26",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "13",
        "alloc_ram": "22704",
        "alloc_space": "182",
        "alloc_cpu": "12240",
        "alloc_cpu_percent": "300.00",
        "alloc_bandwidth": "1009",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "15",
        "server_name": "KVM Slave: ip_addr",
        "virt": "kvm",
        "ip": "ip_addr",
        "internal_ip": "",
        "vnc_ip": "ip_addr",
        "settings": "a:25:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:19:\"testme@mail_server\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:8:\"enp3s4f0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:100;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:10:\"35 4 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 7,22 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies551\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:14:\"ip_addr\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:10;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "6871",
        "total_space": "1239",
        "space": "242",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "5",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1476316864",
        "locked": "0",
        "vcores": "46",
        "ips": "52",
        "ipv6": "51",
        "ipv6_subnet": "20",
        "ips_int": "3",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "12",
        "alloc_ram": "21760",
        "alloc_space": "363",
        "alloc_cpu": "15540",
        "alloc_cpu_percent": "420.00",
        "alloc_bandwidth": "1001",
        "virts": ["kvm"]
    }],
    "status": "null",
    "network_status": "null",
    "owners": "null",
    "timenow": "1476318629",
    "time_taken": "1.118"
}

HTTP Request

https://hostname:4085/index.php?act=vs&unsuspend=VPSID

Parameters

Name Type Value Description Required
act GET vs The action will retrieve data after the vps is unsuspended
unsuspend GET Int The id of the vps to be unsuspended

Network Suspend

<?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);

    $vid = 3627;

    $output = $admin->suspend_net($vid);

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Virtual Servers",
    "done": "1",
    "done_msg": "Network Suspended",
    "vs": "null",
    "ostemplates": "null",
    "servers": [{
        "serid": "0",
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:1;s:10:\"soft_email\";s:20:\"test@test.com\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:1;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:100;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3081\";s:8:\"vpslimit\";s:3:\"200\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:20;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": "0",
        "ram": "9458",
        "total_space": "909",
        "space": "133",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1477188065",
        "locked": "0",
        "vcores": "33",
        "ips": "18488",
        "ipv6": "98",
        "ipv6_subnet": "93",
        "ips_int": "26",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "9",
        "alloc_ram": "22504",
        "alloc_space": "192",
        "alloc_cpu": "8168",
        "alloc_cpu_percent": "100.00",
        "alloc_bandwidth": "4",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "15",
        "server_name": "KVM Slave: ip_addr",
        "virt": "kvm",
        "ip": "ip_addr",
        "internal_ip": "",
        "vnc_ip": "ip_addr",
        "settings": "a:25:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:19:\"testme@mail_server\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:8:\"enp3s4f0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:100;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:10:\"35 4 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 7,22 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies551\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:14:\"ip_addr\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:10;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "8070",
        "total_space": "1335",
        "space": "149",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1477188066",
        "locked": "0",
        "vcores": "53",
        "ips": "54",
        "ipv6": "51",
        "ipv6_subnet": "20",
        "ips_int": "3",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "14",
        "alloc_ram": "26880",
        "alloc_space": "395",
        "alloc_cpu": "17588",
        "alloc_cpu_percent": "620.00",
        "alloc_bandwidth": "1001",
        "virts": ["kvm"]
    }],
    "status": "null",
    "network_status": "null",
    "owners": "null",
    "timenow": "1477188690",
    "time_taken": "0.104"
}

HTTP Request

https://hostname:4085/index.php?act=vs&suspend_net=VPSID

Parameters

Name Type Value Description Required
act GET vs The action will retrieve list of vps after vps is network suspended Yes
suspend_net GET Int The id of the vps that needs to be network suspended Yes

Network Unsuspend

<?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);

    $vid = 3627;

    $output = $admin->unsuspend_net($vid);

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Virtual Servers",
    "done": "1",
    "done_msg": "Network Unsuspended",
    "vs": "null",
    "ostemplates": "null",
    "servers": [{
        "serid": "0",
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:1;s:10:\"soft_email\";s:20:\"test@test.com\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:1;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:100;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3081\";s:8:\"vpslimit\";s:3:\"200\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:20;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": "0",
        "ram": "9452",
        "total_space": "909",
        "space": "133",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1477195263",
        "locked": "0",
        "vcores": "33",
        "ips": "18488",
        "ipv6": "98",
        "ipv6_subnet": "93",
        "ips_int": "26",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "9",
        "alloc_ram": "22504",
        "alloc_space": "192",
        "alloc_cpu": "8168",
        "alloc_cpu_percent": "100.00",
        "alloc_bandwidth": "4",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "15",
        "server_name": "KVM Slave: ip_addr",
        "virt": "kvm",
        "ip": "ip_addr",
        "internal_ip": "",
        "vnc_ip": "ip_addr",
        "settings": "a:25:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:19:\"testme@mail_server\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:8:\"enp3s4f0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:100;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:10:\"35 4 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 7,22 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies551\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:14:\"ip_addr\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:10;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "8065",
        "total_space": "1335",
        "space": "149",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1477191665",
        "locked": "0",
        "vcores": "53",
        "ips": "53",
        "ipv6": "51",
        "ipv6_subnet": "20",
        "ips_int": "3",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "14",
        "alloc_ram": "26880",
        "alloc_space": "395",
        "alloc_cpu": "17588",
        "alloc_cpu_percent": "620.00",
        "alloc_bandwidth": "1001",
        "virts": ["kvm"]
    }],
    "status": "null",
    "network_status": "null",
    "owners": "null",
    "timenow": "1477195844",
    "time_taken": "0.106"
}

HTTP Request

https://hostname:4085/index.php?act=vs&unsuspend_net=VPSID

Parameters

Name Type Value Description Required
act GET vs The action will retrieve list of vps after vps network is unsuspended Yes
unsuspend_net GET Int The id of the vps that needs to be network unsuspended Yes

Rebuild VPS

Example Code: The code for creating the VPS

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['vpsid']=13;
    $post['osid']=272;
    $post['serid']=0;
    $post['newpass']='1234599';
    $post['conf']='1234599';

    $output = $admin->rebuild($post);
    print_r($output);
?>

The above code returns a JSON array

{
    "title": "Rebuild Virtual Server",
    "vpses": {
        "vpsid": "3335",
        "vps_name": "v1986",
        "uuid": "w1u3mnwlfhioe7pn",
        "serid": "0",
        "time": "1469681615",
        "edittime": "0",
        "virt": "kvm",
        "uid": "299",
        "plid": "0",
        "hostname": "test_createvps",
        "osid": "347",
        "os_name": "centos-6.6-x86_64",
        "iso": "",
        "sec_iso": "",
        "boot": "cda",
        "space": "5",
        "inodes": "0",
        "ram": "1024",
        "burst": "0",
        "swap": "1024",
        "cpu": "1024",
        "cores": "4",
        "cpupin": "-1",
        "cpu_percent": "0.00",
        "bandwidth": "0",
        "network_speed": "0",
        "upload_speed": "-1",
        "io": "0",
        "ubc": "",
        "acpi": "1",
        "apic": "1",
        "pae": "1",
        "shadow": "0",
        "vnc": "1",
        "vncport": "6252",
        "vnc_passwd": "",
        "hvm": "0",
        "suspended": "0",
        "suspend_reason": "null",
        "nw_suspended": "null",
        "rescue": "0",
        "band_suspend": "0",
        "tuntap": "0",
        "ppp": "0",
        "ploop": "0",
        "dns_nameserver": "a:0:{}",
        "osreinstall_limit": "0",
        "preferences": "null",
        "nic_type": "default",
        "vif_type": "",
        "virtio": "0",
        "pv_on_hvm": "0",
        "kvm_cache": "0",
        "io_mode": "0",
        "cpu_mode": "default",
        "total_iops_sec": "0",
        "read_bytes_sec": "0",
        "write_bytes_sec": "0",
        "kvm_vga": "0",
        "acceleration": "0",
        "vnc_keymap": "en-us",
        "routing": "0",
        "mg": "",
        "used_bandwidth": "0.00",
        "webuzo": "0",
        "disable_ebtables": "0",
        "admin_managed": "0",
        "rdp": "0",
        "cpu_topology": "null",
        "mac": "null",
        "notes": "null",
        "pid": "0",
        "ips": ["192.168.10.45"]
    },
    "ostemplates": "null",
    "timenow": "1469690437",
    "time_taken": "0.155"
}

HTTP Request

https://hostname:4085/index.php?act=rebuild

Parameters

Name Type Value Description Required
act GET rebuild The action specified to retrieve data after vps is rebuild
vpsid POST Int The id of the VPS to be rebuilt
osid POST Int The id of the OS Template
newpass POST newpass The new root password
conf POST conf The confirmation password
serid POST Int The id of the Server

Migrate VPS

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');
    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';
    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';
    $ip = 'xxx.xxx.xxx.xxx';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post = array();
    $post['from_server'] = 0;
    $post['spped_limit'] = 100;
    $post['to_server'] = 1;
    $post['migrate'] = 1;
    $post['migrate_but'] = 1;
    $post['vpsid'][] = (3801);
    $post['storage'] = 279;

   $output = $admin->migrate($post);
    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "KVMTestServer",
    "actid": "4902",
    "timenow": 1481700829,
    "time_taken": "6.139"
}

HTTP Request

https://hostname:4085/index.php?act=migrate

Parameters

Name Type Value Description Required
act GET migrate The action specified to carry out operation and return data after vps has been migrated Yes
from_ip POST from_ip The server ip from which vps needs to be migrated Yes
from_server POST from_server The server from which the vps needs to be migrated Yes
ips_selection POST ips_selection Selecting the ip which the vps will use after migrating to destination server Yes
migrate POST 1 IF true, then the vps migration process will begin Yes
migrate_but POST 1 If set the migration process will begin Yes
speed_limit POST Int Setting a speed limit for vps migration Yes
to_server POST Int The server to which the vps will be migrated Yes

Clone VPS

Example Code: The code for cloning the VPS

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');
    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';
    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';
    $ip = 'xxx.xxx.xxx.xxx';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post = array();
    $post['from_server'] = '0';
    $post['vpsid'] = '180';
    $post['storage'] = array('1', '5');    
    $post['to_server'] = '0';
    $post['speed_limit'] = '40';

    $output = $admin->clonevps($post);
    print_r(json_encode($output));
?>

Example output

{
    "title": "Virtualizor",
    "actid": "1176",
    "timenow": 1481604838,
    "time_taken": "7.207"
}

HTTP Request

https://hostname:4085/index.php?act=clone

Parameters

Name Type Value Description Required
act GET clone The action specified to carry out operation and return data after vps has been cloned Yes
from_server POST from_server The server id from which the vps needs to be cloned Yes
vpsid POST Int Vpsid of the vps to be cloned Yes
storage POST Array Array of storage id to be passed for cloning multidisk vps Yes
speed_limit POST Int Setting a speed limit for vps cloning No
to_server POST Int The server id to which the vps will be cloned Yes

IP Pool

List IP Pool

<?php

     require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $count = 10;
    $page_number = 1;

    $output = $admin->ippool($count, $page_number);

    print_r($output);

?>

Returns: The above code returns the list of the IP Pool.

{
    "title": "IP Pool",
    "ippools": {
        "6": {
            "ippid": "6",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "1",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "3",
            "total_locked_ips": "1",
            "subnets": "70",
            "free_subnets": "66"
        },
        "7": {
            "ippid": "7",
            "ipp_serid": "0",
            "ippool_name": "Default IPv4 Pool",
            "gateway": "199.204.187.89",
            "netmask": "255.255.255.248",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "15",
            "freeip": "7"
        },
        "117": {
            "ippid": "117",
            "ipp_serid": "0",
            "ippool_name": "test",
            "gateway": "192.168.1.250",
            "netmask": "255.255.255.0",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "2",
            "freeip": "1"
        },
        "118": {
            "ippid": "118",
            "ipp_serid": "0",
            "ippool_name": "internalpool",
            "gateway": "192.168.1.200",
            "netmask": "255.255.255.0",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "1",
            "bridge": "intbr3",
            "mtu": "0",
            "totalip": "16",
            "freeip": "11"
        },
        "194": {
            "ippid": "194",
            "ipp_serid": "0",
            "ippool_name": "api_pool",
            "gateway": "127.0.1.99",
            "netmask": "255.255.255.255",
            "ns1": "4.2.2.1",
            "ns2": "4.2.2.2",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "3",
            "freeip": "2"
        },
        "257": {
            "ippid": "257",
            "ipp_serid": "0",
            "ippool_name": "testunslavepool",
            "gateway": "94.23.193.254",
            "netmask": "255.255.255.0",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "4",
            "freeip": "3"
        },
        "280": {
            "ippid": "280",
            "ipp_serid": "0",
            "ippool_name": "Kimsufi",
            "gateway": "2001:41d0:8:53ff:ff:ff:ff:ff",
            "netmask": "64",
            "ns1": "2001:4860:4860::8888",
            "ns2": "2001:4860:4860::8844",
            "ipv6": "1",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "54",
            "freeip": "53",
            "subnets": "10",
            "free_subnets": "10"
        },
        "297": {
            "ippid": "297",
            "ipp_serid": "0",
            "ippool_name": "inernal 2",
            "gateway": "192.168.1.1",
            "netmask": "255.255.255.0",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "1",
            "bridge": "natbr0",
            "mtu": "0",
            "totalip": "9",
            "freeip": "9"
        },
        "454": {
            "ippid": "454",
            "ipp_serid": "0",
            "ippool_name": "Bridge Pool",
            "gateway": "192.168.1.1",
            "netmask": "255.255.255.0",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "1",
            "bridge": "intbr0",
            "mtu": "0",
            "totalip": "5",
            "freeip": "5"
        },
        "546": {
            "ippid": "546",
            "ipp_serid": "0",
            "ippool_name": "testpool",
            "gateway": "192.168.1.200",
            "netmask": "255.255.255.0",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "41",
            "freeip": "31"
        }
    },
    "timenow": "1479963910",
    "time_taken": "0.148"
}

HTTP Request

https://hostname:4085/index.php?act=ippool

Parameters

Name Type Value Description Required
act GET ippool The action specified to carry out the operation and return success after ip pool has been added Yes
page_number Int POST If not specified, then only first 50 records are returned Yes
count POST Int Number of records to be returned, default is 50 Yes

Create IP Pool

<?php
require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'API Key of the server';
    $pass = 'API password of the server';
    $ip = IP of  the server'';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass)
    $post=array();  
    $post['iptype'] = 4;    4 for ipv4 & 6 for ipv6
    $post['serid'] = 0;
    $post['ippool_name'] = 'test_api_ipv4';
    $post['gateway'] = '192.168.1.47';
    $post['netmask'] = '255.255.255.0';
    $post['ns1'] = '8.8.8.8';
    $post['ns2'] = '8.8.4.4';
    $post['firstip'] = '192.168.1.48';
    $post['lastip'] = '192.168.1.55';   
    $post['routing'] = 1;       //This is same for both
    $post['nat'] = 'on';

    $output = $admin->addips($post);

    print_r(json_encode($output));
?>

Returns: The above code returns the list of the IP Pool.

{
    "title": "Add IP Pool",
    "done": {
        "ippid": "740",
        "range": {
            "235322": "192.168.23.3",
            "235323": "192.168.23.4",
            "235324": "192.168.23.5",
            "235325": "192.168.23.6",
            "235326": "192.168.23.7",
            "235327": "192.168.23.8",
            "235328": "192.168.23.9",
            "235329": "192.168.23.10",
            "235330": "192.168.23.11",
            "235331": "192.168.23.12",
            "235332": "192.168.23.13",
            "235333": "192.168.23.14",
            "235334": "192.168.23.15"
        },
        "done": "1"
    },
    "timenow": "1479964723",
    "time_taken": "0.091"
}

HTTP Request

https://hostname:4085/index.php?act=addippool

Parameters

Name Type Value Description Required
act GET addippool The action specified to carry out operation and return success after ip pool has been added Yes
iptype POST Int 4 for IPv4, 6 for IPv6 Yes
serid POST Int An array containing server ids Yes
ippool_name POST ippool_name The name for the IP Pool Yes
gateway POST gateway The gateway for the ip pool Yes
netmask POST netmask The netmask for the IP Pool Yes
ns1 POST ns1 Name server address 1 Yes
ns2 POST ns2 Name server address 2 if any Yes
firstip POST firstip The first IP of the IP range Yes
lastip POST lastip The last IP of the IP range Yes
nat POST nat On or off, if nat is supported( Xen and KVM ) No
ips POST An array containing ips to be added ips No
macs POST macs An array containing mac addresses for the ips No
routing POST Int If set then the routing option for the ip pool will be enabled No

Adding Internal IP Pool

<?php

     require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['iptype'] = 4;
    $post['serid'] = 0;
    $post['ippool_name'] = 'test_api_int';
    $post['gateway'] = '10.10.1.1';
    $post['netmask'] = '255.255.255.0';
    $post['ns1'] = '4.2.2.1';
    $post['ns2'] = '4.2.2.2';
    $post['firstip'] = '10.10.1.3';
    $post['lastip'] = '10.10.1.15';
    $post['internal'] = 1;
    $post['internal_bridge'] = 'intbr0';
    //$post['nat'] = 'on';

    $output = $admin->addippool($post); 

    print_r(json_encode($output));
?>

Returns: The above code returns the list of the IP Pool.

{
    "title": "Add IP Pool",
    "done": {
        "ippid": "741",
        "range": {
            "235335": "10.10.1.3",
            "235336": "10.10.1.4",
            "235337": "10.10.1.5",
            "235338": "10.10.1.6",
            "235339": "10.10.1.7",
            "235340": "10.10.1.8",
            "235341": "10.10.1.9",
            "235342": "10.10.1.10",
            "235343": "10.10.1.11",
            "235344": "10.10.1.12",
            "235345": "10.10.1.13",
            "235346": "10.10.1.14",
            "235347": "10.10.1.15"
        },
        "done": "1"
    },
    "timenow": "1479965585",
    "time_taken": "0.115"
}

HTTP Request

https://hostname:4085/index.php?act=addippool

Parameters

Name Type Value Description Required
act GET addippool The action specified to carry out operation and return success after ip pool has been added Yes
iptype POST IPv6 4 for IPv4, 6 for IPv6 Yes
serid POST Int An array containing server ids Yes
ippool_name POST The name for the IP Pool Yes
gateway POST gateway The ip of the gateway Yes
netmask POST netmask The netmask address Yes
ns1 POST ns1 Name server address 1 Yes
ns2 POST ns2 Name server address 2 if any Yes
firstip POST firstip The first IP of the IP range Yes
lastip POST lastip The last IP of the IP range Yes
ips POST An array containing ips to be added ips No
macs POST macs An array containing mac addresses for the ips No
ipv6_1 POST ipv6_1 The first field of the Ipv6 address Yes
ipv6_2 POST ipv6_2 The second field of the Ipv6 address Yes
ipv6_3 POST ipv6_3 The third field of the Ipv6 address Yes
ipv6_4 POST ipv6_4 The fourth field of the Ipv6 address Yes
ipv6_5 POST ipv6_5 The fifth field of the Ipv6 address Yes
ipv6_6 POST ipv6_6 The sixth field of the Ipv6 address Yes
ipv6_num POST Int The number of Ipv6 addresses Yes
internal POST Int Set this flag if you are adding internal ip Yes
internal_bridge POST 1/0 IF set then the pool will be added Yes

Add Ipv6 Pool

<?php

     require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['iptype'] = 6;
    $post['serid'] = 0;
    $post['ippool_name'] = 'test_api_ipv6';
    $post['gateway'] = '1234:0f:0f:1';
    $post['netmask'] = '48';
    $post['ns1'] = '2001:4860:4860::8888';
    $post['ns2'] = '2001:4860:4860::8844';
    $post['routing'] = 1;
    $post['ipv6_1']     = '1234';
    $post['ipv6_2']     = '0f0f';
    $post['ipv6_3']     = '0f0f';
    $post['ipv6_4']     = '0123';
    $post['ipv6_5']     = '1000';
    $post['ipv6_6']     = '0000';
    $post['ipv6_num']   = 50;

    $output = $admin->addippool($post); 

    print_r(json_encode($output));
?>

Returns: The above code returns the list of the IP Pool.

{
    "title": "Add IP Pool",
    "done": {
        "ippid": "743",
        "range": {
            "235398": "1234:0f0f:0f0f:0123:1000:0000:df9f:5b28",
            "235399": "1234:0f0f:0f0f:0123:1000:0000:fa91:ec11",
            "235400": "1234:0f0f:0f0f:0123:1000:0000:218c:ea33",
            "235401": "1234:0f0f:0f0f:0123:1000:0000:c6c8:3716",
            "235402": "1234:0f0f:0f0f:0123:1000:0000:d0c8:1477",
            "235403": "1234:0f0f:0f0f:0123:1000:0000:57e9:a612",
            "235404": "1234:0f0f:0f0f:0123:1000:0000:ef53:0ec2",
            "235405": "1234:0f0f:0f0f:0123:1000:0000:ae14:c80f",
            "235406": "1234:0f0f:0f0f:0123:1000:0000:e3e6:eb39",
            "235407": "1234:0f0f:0f0f:0123:1000:0000:9899:4028",
            "235408": "1234:0f0f:0f0f:0123:1000:0000:6d2d:2463",
            "235409": "1234:0f0f:0f0f:0123:1000:0000:9ddb:c411",
            "235410": "1234:0f0f:0f0f:0123:1000:0000:d5d1:7717",
            "235411": "1234:0f0f:0f0f:0123:1000:0000:6060:7ef4",
            "235412": "1234:0f0f:0f0f:0123:1000:0000:277a:2331",
            "235413": "1234:0f0f:0f0f:0123:1000:0000:763a:0a14",
            "235414": "1234:0f0f:0f0f:0123:1000:0000:65b4:231f",
            "235415": "1234:0f0f:0f0f:0123:1000:0000:9e66:2b0a",
            "235416": "1234:0f0f:0f0f:0123:1000:0000:9ea2:83a6",
            "235417": "1234:0f0f:0f0f:0123:1000:0000:0367:4d11",
            "235418": "1234:0f0f:0f0f:0123:1000:0000:83b1:c36b",
            "235419": "1234:0f0f:0f0f:0123:1000:0000:7280:4f04",
            "235420": "1234:0f0f:0f0f:0123:1000:0000:41d2:bde1",
            "235421": "1234:0f0f:0f0f:0123:1000:0000:6af1:e68c",
            "235422": "1234:0f0f:0f0f:0123:1000:0000:0a42:3040",
            "235423": "1234:0f0f:0f0f:0123:1000:0000:9364:9de3",
            "235424": "1234:0f0f:0f0f:0123:1000:0000:52b6:50e1",
            "235425": "1234:0f0f:0f0f:0123:1000:0000:1386:0786",
            "235426": "1234:0f0f:0f0f:0123:1000:0000:73f0:a97a",
            "235427": "1234:0f0f:0f0f:0123:1000:0000:2441:89b3",
            "235428": "1234:0f0f:0f0f:0123:1000:0000:1c0c:344b",
            "235429": "1234:0f0f:0f0f:0123:1000:0000:e375:061e",
            "235430": "1234:0f0f:0f0f:0123:1000:0000:f640:620f",
            "235431": "1234:0f0f:0f0f:0123:1000:0000:da6b:9751",
            "235432": "1234:0f0f:0f0f:0123:1000:0000:ab34:6e6b",
            "235433": "1234:0f0f:0f0f:0123:1000:0000:736e:fe25",
            "235434": "1234:0f0f:0f0f:0123:1000:0000:bdb7:61d9",
            "235435": "1234:0f0f:0f0f:0123:1000:0000:29b1:7698",
            "235436": "1234:0f0f:0f0f:0123:1000:0000:7334:7f55",
            "235437": "1234:0f0f:0f0f:0123:1000:0000:919e:62a7",
            "235438": "1234:0f0f:0f0f:0123:1000:0000:6c52:381b",
            "235439": "1234:0f0f:0f0f:0123:1000:0000:8336:f25d",
            "235440": "1234:0f0f:0f0f:0123:1000:0000:be79:4343",
            "235441": "1234:0f0f:0f0f:0123:1000:0000:a487:c848",
            "235442": "1234:0f0f:0f0f:0123:1000:0000:a014:e96c",
            "235443": "1234:0f0f:0f0f:0123:1000:0000:2097:94ba",
            "235444": "1234:0f0f:0f0f:0123:1000:0000:99a3:24d3",
            "235445": "1234:0f0f:0f0f:0123:1000:0000:fb02:ab0b",
            "235446": "1234:0f0f:0f0f:0123:1000:0000:1855:728f",
            "235447": "1234:0f0f:0f0f:0123:1000:0000:87d7:1f80"
        },
        "done": 1,
        "ipv6_subnet": "743"
    },
    "timenow": "1479967281",
    "time_taken": "0.119"
}

HTTP Request

https://hostname:4085/index.php?act=addippool

Parameters

Name Type Value Description Required
act GET addippool The action specified to carry out operation and return success after ip pool has been added Yes
iptype POST IPv6 4 for IPv4, 6 for IPv6 Yes
serid POST Int An array containing server ids Yes
ippool_name POST The name for the IP Pool Yes
gateway POST gateway The ip of the gateway Yes
netmask POST netmask The netmask address Yes
ns1 POST ns1 Name server address 1 Yes
ns2 POST ns2 Name server address 2 if any Yes
ips POST An array containing ips to be added ips No
macs POST macs An array containing mac addresses for the ips No
ipv6_1 POST ipv6_1 The first field of the Ipv6 address Yes
ipv6_2 POST ipv6_2 The second field of the Ipv6 address Yes
ipv6_3 POST ipv6_3 The third field of the Ipv6 address Yes
ipv6_4 POST ipv6_4 The fourth field of the Ipv6 address Yes
ipv6_5 POST ipv6_5 The fifth field of the Ipv6 address Yes
ipv6_6 POST ipv6_6 The sixth field of the Ipv6 address Yes
ipv6_num POST Int The number of Ipv6 addresses Yes

Edit IP Pool

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post = array();
    $post['ippool_name'] = 'dummyips';
    $post['gateway'] = '192.168.1.200';
    $post['gateway'] = '1234:0f:0f:1';          //For IPv6 
    $post['netmask'] = '255.255.255.0';
    $post['netmask'] = 48                       //For IPv6 Pool
    $post['nat'] = 'off';                       //For IPv4 only
    $post['ns1'] = '8.8.8.8';
    $post['ns2'] = '8.8.4.4';
    $post['ns1'] = '2001:4860:4860::8888';     // For IPv6
    $post['ns2'] = '2001:4860:4860::8844';      // Pool
    $post['serid'] = 0;
    $post['ippid'] = '1';
    $post['routing'] = 0;
    $post['mtu'] = 0;
    $output = json_encode($admin->editippool($post));

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Edit IP Pool",
    "done": "1",
    "ippool": {
        "ippid": "546",
        "ipp_serid": "0",
        "ippool_name": "dummyips",
        "gateway": "192.168.1.1",
        "netmask": "255.255.255.0",
        "ns1": "8.8.8.8",
        "ns2": "8.8.4.4",
        "ipv6": "0",
        "nat": "0",
        "nat_name": "",
        "routing": "0",
        "internal": "0",
        "bridge": "",
        "mtu": "0",
        "serid": "0"
    },
    "ippid": "546",
    "ippool_servers": {
        "546|-1|-2": {
            "ippid": "546",
            "serid": "-1",
            "sgid": "-2"
        }
    },
    "timenow": "1477462513",
    "time_taken": "0.082"
}

HTTP Request

https://hostname:4085/index.php?act=editippool

Parameters

Name Type Value Description Required
act GET editippool The action specified to perform an operation and retrieve data after ip pool has been edited Yes
ippid GET Int ID of the IP Pool Yes
ippool_name POST ippool_name Name of the IP Pool Yes
editippool POST 1/0 If set then the IP Pool will be edited Yes
gateway POST gateway The Gateway address Yes
netmask POST netmask Netmask Address Yes
ns1 POST ns1 Name Server Address 1 Yes
ns2 POST ns2 Name Server Address 2 Yes
serid POST Int Server Id Yes
nat POST on/off This will be used for NAT ips. Not to be used with IPv6 No
routed POST 1/0 Set/Unset this option No
mtu POST Int Set the maximum transfer unit for the IP Pool No

Delete IP Pool

<?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['delete'] = 690;

    $output = $admin->deleteippool($post);

    print_r(json_encode($output));
?>

Result: The above code returns the following output:

{
    "title": "IP Pool",
    "done": ["690"],
    "ippools": "null",
    "timenow": "1473137056",
    "time_taken": "0.099"
}

HTTP Request

https://hostname:4085/index.php?act=ippools

Parameters

Name Type Value Description Required
act GET ippools The action specified to carry out operation and retrieve list of ip pools Yes
delete POST Int The IP Pool id that needs to be deleted Yes

List IPs


    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();

    $count = 2;
    $page_number = 1;

    $output = json_encode($admin->ips($count,$page_number,$post));

    print_r(json_encode($output));

Output: Result of the code can be seen below:

{
    "title": "IP List",
    "ips": {
        "143101": {
            "ipid": "143101",
            "ippid": "null",
            "ip_serid": "3",
            "vpsid": "0",
            "ip": "107.189.34.29",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "classid": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "143097": {
            "ipid": "143097",
            "ippid": "null",
            "ip_serid": "3",
            "vpsid": "0",
            "ip": "127.0.0.10",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "classid": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        }
    },
    "timenow": "1470895660",
    "time_taken": "0.195"
}

HTTP Request

https://hostname:4085/index.php?act=ips

Parameters

Name Type Value Description Required
act GET ips The action specified to carry out the operation and return list of ips Yes
page_number POST Int If not specified, then only first 50 records are returned Yes
count POST Int Number of records to be returned, default is 50 Yes

Search IP Pool

<?php

     require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $count = 10;
    $page_number = 1;
    $post= array();
    $post['poolname'] = 'Default IPv4 Pool';
    $post['poolgateway'] = '';
    $post['netmask'] = '';
    $post['nameserver'] = '';
    $page = 1;
    $reslen = 50;

    $output = $admin->ippool($count, $page_number,$post);

    print_r($output);

?>

Result: The above code produces the following output

{
    "title": "IP Pool",
    "ippools": {
        "7": {
            "ippid": "7",
            "ipp_serid": "0",
            "ippool_name": "Default IPv4 Pool",
            "gateway": "199.204.187.89",
            "netmask": "255.255.255.248",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "ipv6": "0",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "totalip": "14",
            "total_locked_ips": "1",
            "freeip": "8"
        }
    },
    "timenow": "1481003674",
    "time_taken": "0.109"
}

HTTP Request

https://hostname:4085/index.php?act=ippool&poolname=POOLNAME&poolgateway=POOLGATEWAY&netmask=NETMASK&nameserver=NAMESERVER&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET ippool The action will search according to a particular search Parameter Yes
poolname GET POOLNAME The name of the ip pool No
poolgateway GET POOLGATEWAY The gateway of the pool No
netmask GET NETMASK The netmask of the pool No
nameserver GET NAMESERVER The nameserver of the pool NO
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Search IPs

<?php

     require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $count = 10;
    $page_number = 1;
    $post['ipsearch'] = '192.168.2.110';
    $post['ippoolsearch'] = '';
    $post['macsearch'] = '';
    $post['vps_search'] = '';
    $post['servers_search'] = '';
    $post['lockedsearch'] = '';
    $post['search'] = 'Search';

    $output = $admin->ips($count, $page_number,$post);

    print_r($output);

?>

Result: The above code will produce the following output

{
    "title": "IP List",
    "ips": {
        "8": {
            "ipid": "8",
            "ippid": "7",
            "ip_serid": "0",
            "vpsid": "3600",
            "ip": "192.168.2.110",
            "ipv6": "0",
            "ipr_netmask": "",
            "primary": "1",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "Default IPv4 Pool",
            "gateway": "199.204.187.89",
            "netmask": "255.255.255.248",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "0",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "Testvps_create"
        }
    },
    "timenow": "1481006015",
    "time_taken": "0.155"
}

HTTP Request

https://hostname:4085/index.php?act=ips&ipsearch=IPSSEARCH&ippoolsearch=IPPOOLSEARCH& \macsearch=MACSEARCH&vps_search=VPSSEARCH&servers_search=SERVDERSEARCH&lockedsearch=-1&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET ips The action will search for the specified ip or any related parameters Yes
ipsearch GET ipsearch The ip that needs to be searched No
ippoolsearch GET ippoolsearch The ippoolsearch that needs to be searched No
macsearch GET macsearch The macsearch that needs to be searched No
vps_search GET vps_search The vps_search that needs to be searched No
servers_search GET servers_search The servers_search that needs to be searched No
lockedsearch GET lockedsearch The lockedsearch that needs to be searched No
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Add IP

<?
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'API Key of the server';
    $pass = 'API password of the server';
    $ip = IP of  the server'';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass)
    $post=array();  
    $post['iptype']  = 4;           //4 for ipv4 & 6 for ipv6
    $post['ips']     = array('192.168.1.200');
    $post['macs']    = array('');
    $post['ips6']    = array(array('','','','','','','',''));
    $post['firstip'] = '';
    $post['lastip']  = '';
    $post['ipv6_1']  = '';                  /////////////////
    $post['ipv6_2']  = '';                  ///To be used////
    $post['ipv6_3']  = '';                  ///Only in case//
    $post['ipv6_4']  = '';                  ///Case you  ////
    $post['ipv6_5']  = '';                  ///add IPv6 IPs//
    $post['ipv6_6']  = '';                  /////////////////
    $post['ipv6_num']= '';
    $post['ippid']   = '';
    $post['ip_serid']= '0';

    $output = $admin->addips($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following result

{
    "title": "Add IP",
    "done": {
        "range": {
            "235609": "192.168.1.58",
            "235610": "192.168.1.59"
        },
        "done": "1"
    },
    "timenow": "1481867819",
    "time_taken": "0.095"
}
===============OUTPUT FOR IPv6==============
{
    "title": "Add IP",
    "done": {
        "range": {
            "235615": "1234:0f0f:0f0f:0123:1000:0000:eca7:071f",
            "235616": "1234:0f0f:0f0f:0123:1000:0000:eca7:085c"
        },
        "done": 1
    },
    "timenow": 1481873949,
    "time_taken": "0.104"
}

HTTP Request

https://hostname:4085/index.php?act=addips

Parameters

Name Type Value Description Required
act GET addips The action specified to carry out the operation and return data after the ips have been added Yes
iptype POST Int 4 for IPv4, 6 for IPv6 Yes
ips POST ips An array containing IPv4 ips Yes
macs POST macs An array containing mac addresses No
ips6 POST ips6 An array containing IPv6 addresses Yes
firstip POST firstip First IP of the range if there are multiple IPs No
lastip POST lastip Last IP of the range if there are multiple IPs No
ipv6_1 POST ipv6_1 The first field of the Ipv6 address Yes
ipv6_2 POST ipv6_2 The second field of the Ipv6 address Yes
ipv6_3 POST ipv6_3 The third field of the Ipv6 address Yes
ipv6_4 POST ipv6_4 The fourth field of the Ipv6 address Yes
ipv6_5 POST ipv6_5 The fifth field of the Ipv6 address Yes
ipv6_6 POST ipv6_6 The sixth field of the Ipv6 address Yes
ippid POST Int The IP Pool id No
ipv6_num POST Int The number of Ipv6 addresses Yes
ip_serid POST Int The server id in which the pool exists No

Delete IP

<?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['delete'] = 143243;

   $output = $admin->delete_ips($post);

   print_r(json_encode($output));
?>

Result: The above code returns the following output

{
    "title": "IP List",
    "done": "1",
    "ips": {
        "143101": {
            "ipid": "143101",
            "ippid": "null",
            "ip_serid": "3",
            "vpsid": "0",
            "ip": "107.189.34.29",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "143250": {
            "ipid": "143250",
            "ippid": "null",
            "ip_serid": "1",
            "vpsid": "0",
            "ip": "122.122.1.33",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "143249": {
            "ipid": "143249",
            "ippid": "null",
            "ip_serid": "1",
            "vpsid": "0",
            "ip": "192.168.1.150",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "143093": {
            "ipid": "143093",
            "ippid": "null",
            "ip_serid": "3",
            "vpsid": "0",
            "ip": "192.168.111.125",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "143091": {
            "ipid": "143091",
            "ippid": "null",
            "ip_serid": "3",
            "vpsid": "0",
            "ip": "192.168.22.25",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "143098": {
            "ipid": "143098",
            "ippid": "null",
            "ip_serid": "3",
            "vpsid": "0",
            "ip": "192.168.6.6",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "143084": {
            "ipid": "143084",
            "ippid": "null",
            "ip_serid": "2",
            "vpsid": "0",
            "ip": "199.204.187.88",
            "ipv6": "null",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "null",
            "ippool_name": "null",
            "gateway": "null",
            "netmask": "null",
            "ns1": "null",
            "ns2": "null",
            "nat": "null",
            "nat_name": "null",
            "routing": "null",
            "internal": "null",
            "bridge": "null",
            "mtu": "null",
            "hostname": "null"
        },
        "104": {
            "ipid": "104",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2206",
            "ip": "1111:1111:1111:0df0:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-7",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "108": {
            "ipid": "108",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:0fec:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-5",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "46": {
            "ipid": "46",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:1111:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-6",
            "ipr_ips": "a:1:{i:0;s:39:\"1111:1111:1111:1111:1000:1000:1000:1000\";}",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76553": {
            "ipid": "76553",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:000e:588e:0554:4301:a38f:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76532": {
            "ipid": "76532",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:04b1:55f2:1439:3ab4:c5a9:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76541": {
            "ipid": "76541",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:288c:e4bd:d732:2948:7dcb:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76537": {
            "ipid": "76537",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:2c32:1e8a:763f:c092:c7bd:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "2": {
            "ipid": "2",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2194",
            "ip": "1234:1234:1234:1234:1234:1234:0562:690f",
            "ipv6": "1",
            "ipr_netmask": "",
            "primary": "-2",
            "ipr_ips": "null",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "1": {
            "ipid": "1",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2194",
            "ip": "1234:1234:1234:1234:1234:1234:05cc:2b74",
            "ipv6": "1",
            "ipr_netmask": "",
            "primary": "-3",
            "ipr_ips": "null",
            "mac_addr": "",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76277": {
            "ipid": "76277",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2121:2121:3213:de97:0000:0000:0000:0002",
            "ipv6": "1",
            "ipr_netmask": "",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "",
            "locked": "1",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210340": {
            "ipid": "210340",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1e3e:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210331": {
            "ipid": "210331",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1e5c:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210341": {
            "ipid": "210341",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1e7a:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210344": {
            "ipid": "210344",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1e92:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210351": {
            "ipid": "210351",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1e9b:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210359": {
            "ipid": "210359",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1ea1:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210321": {
            "ipid": "210321",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1ebf:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210323": {
            "ipid": "210323",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1eca:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210337": {
            "ipid": "210337",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1ee7:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210345": {
            "ipid": "210345",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1f09:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210400": {
            "ipid": "210400",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:1011:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210370": {
            "ipid": "210370",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:1030:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210365": {
            "ipid": "210365",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:103f:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210402": {
            "ipid": "210402",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:104a:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210410": {
            "ipid": "210410",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:111c:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210366": {
            "ipid": "210366",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:1134:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210372": {
            "ipid": "210372",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:115a:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210377": {
            "ipid": "210377",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:116b:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210390": {
            "ipid": "210390",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:11e0:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210375": {
            "ipid": "210375",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:11e3:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210404": {
            "ipid": "210404",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:121c:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210379": {
            "ipid": "210379",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:1231:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210374": {
            "ipid": "210374",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:128a:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210393": {
            "ipid": "210393",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:12c6:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210368": {
            "ipid": "210368",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:12cd:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210391": {
            "ipid": "210391",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:12f3:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210386": {
            "ipid": "210386",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:12f6:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210380": {
            "ipid": "210380",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:149a:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210397": {
            "ipid": "210397",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:14c0:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210392": {
            "ipid": "210392",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:14df:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210387": {
            "ipid": "210387",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:1562:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210403": {
            "ipid": "210403",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:15cc:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "210406": {
            "ipid": "210406",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1004:15e1:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        }
    },
    "timenow": "1475130453",
    "time_taken": "0.191"
}

HTTP Request

https://hostname:4085/index.php?act=ips&delete=IPID

Parameters

Name Type Value Description Required
act GET ips The action specified will list the ips after delete of ip is successful
delete POST ipid Deletes the specified ip

List IPv6 Subnet

<?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();
    $page = 1;
    $reslen = 50;   

    $output = $admin->iprange();

    print_r(json_encode($output));

?>

Result:The above code produces the above output

{
    "title": "IPv6 Subnets",
    "ips": {
        "104": {
            "ipid": "104",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2206",
            "ip": "1111:1111:1111:0df0:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-7",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "108": {
            "ipid": "108",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:0fec:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-5",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "46": {
            "ipid": "46",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:1111:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-6",
            "ipr_ips": "a:1:{i:0;s:39:\"1111:1111:1111:1111:1000:1000:1000:1000\";}",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76551": {
            "ipid": "76551",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:0f06:7554:9cb1:8e13:2271:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76536": {
            "ipid": "76536",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:1064:f573:bf2e:45a9:189d:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76549": {
            "ipid": "76549",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:155b:9708:419a:02f9:7d11:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        },
        "76516": {
            "ipid": "76516",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:15bf:e5a2:4796:077e:30df:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "hostname": "null"
        }
    },
    "timenow": "1473643895",
    "time_taken": "0.091"
}

HTTP Request

https://hostname:4085/index.php?act=ipranges&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET ipranges The action specified to carry out operation and retrieve data of the ipranges
page_number POST Int If not specified, then only first 50 records are returned Yes
count POST Int Number of records to be returned, default is 50 Yes

Search IPv6 Subnet

<?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();
    $page = 1;
    $reslen = 50;
    $post['ipsearch'] = '';
    $post['ippoolsearch'] = 'pool7';
    $post['lockedsearch'] = 'hidelocked';   

    $output = $admin->iprange($page,$reslen,$post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "IPv6 Subnets",
    "ips": {
        "104": {
            "ipid": "104",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2206",
            "ip": "1111:1111:1111:0df0:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-7",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "108": {
            "ipid": "108",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:0fec:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-5",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "46": {
            "ipid": "46",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:1111:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-6",
            "ipr_ips": "a:1:{i:0;s:39:\"1111:1111:1111:1111:1000:1000:1000:1000\";}",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "76553": {
            "ipid": "76553",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:000e:588e:0554:4301:a38f:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "76532": {
            "ipid": "76532",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:04b1:55f2:1439:3ab4:c5a9:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        }
    },
    "timenow": "1481876010",
    "time_taken": "0.133"
}

HTTP Request

https://hostname:4085/index.php?act=ipranges&ipsearch=IPSEARCH& \ippoolsearch=IPPOOLSEARCH&lockedsearch=LOCKSEARCH&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET ipranges The action will list of IPv6 Subnet Yes
ipsearch GET IPSEARCH The ipv6 subnet that needs to be searched No
ippoolsearch GET IPPOOLSEARCH The Subnet will be returned on the basis of the IP Pool to which it belongs No
lockedsearch GET LOCKEDSEARCH The Subnet will be searched on the basis whether they are locked or unlocked No
page_number POST Int If not specified, then only first 50 records are returned No
count POST Int Number of records to be returned, default is 50 No

Edit IPv6 Subnet

<?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();
    $page = 1;
    $reslen = 50;
    $post['ipid'] = 104;
    $post['netmask'] = 80;
    $post['locked'] = 1;
    $post['editip'] = 1;    

    $output = $admin->editiprange($page,$reslen,$post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Edit IPs",
    "timenow": 1481882455,
    "time_taken": "0.109"
}

HTTP Request

https://hostname:4085/index.php?act=editiprange&ipid=ipid

Parameters

Name Type Value Description Required
act GET editiprange The action will edit the IPv6 Subnet Yes
ipid POST ipid The IPv6 Subnet id that needs to be edited Yes
locked POST 1/0 If set then the IPv6 Subnet will be locked No
netmask POST Int The netmask of IPv6 Subnet will be edited Yes
editip POST 1/0 If set then the ip will be edited Yes
Netmask Values
48
64
80
96
112

Delete IPv6 Subnet

<?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();
    $page = 1;
    $reslen = 50;
    $post['delete'] = 76553;

    $output = $admin->editiprange($page,$reslen,$post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "IPv6 Subnets",
    "done": true,
    "ips": {
        "104": {
            "ipid": "104",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2206",
            "ip": "1111:1111:1111:0df0:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "80",
            "primary": "-7",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "1",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "108": {
            "ipid": "108",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:0fec:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-5",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "46": {
            "ipid": "46",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "2018",
            "ip": "1111:1111:1111:1111:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "-6",
            "ipr_ips": "a:1:{i:0;s:39:\"1111:1111:1111:1111:1000:1000:1000:1000\";}",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "76532": {
            "ipid": "76532",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:04b1:55f2:1439:3ab4:c5a9:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "76541": {
            "ipid": "76541",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "3772",
            "ip": "111:555:288c:e4bd:d732:2948:7dcb:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "test-ant"
        },
        "76537": {
            "ipid": "76537",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "111:555:2c32:1e8a:763f:c092:c7bd:0001",
            "ipv6": "1",
            "ipr_netmask": "112",
            "primary": "0",
            "ipr_ips": "",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        },
        "210340": {
            "ipid": "210340",
            "ippid": "6",
            "ip_serid": "0",
            "vpsid": "0",
            "ip": "2605:9880:1000:1e3e:0000:0000:0000:0001",
            "ipv6": "1",
            "ipr_netmask": "64",
            "primary": "0",
            "ipr_ips": "null",
            "mac_addr": "null",
            "locked": "0",
            "ipp_serid": "0",
            "ippool_name": "pool7",
            "gateway": "2a06:8ec0::4",
            "netmask": "10",
            "ns1": "8.8.8.8",
            "ns2": "8.8.4.4",
            "nat": "0",
            "nat_name": "",
            "routing": "1",
            "internal": "0",
            "bridge": "",
            "mtu": "0",
            "vlan": "0",
            "hostname": "null"
        }
    },
    "timenow": 1481883964,
    "time_taken": "0.147"
}

Add IPv6 Subnet

<?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['submitip'] = 1;
    $post['netmask'] = 48;
    $post['input_netmask'] = 40;
    $post['ipv6_1'] = '102f';
    $post['ipv6_2'] = '4526';
    $post['ipv6_3'] = '1f25';
    $post['ipv6_4'] = '';
    $post['ipv6_5'] = '';
    $post['ipv6_6'] = '';
    $post['ipv6_7'] = '';
    $post['ipv6_num'] = 50;
    $post['ippid'] = 750;

    $output = $admin->addiprange($post);

    print_r(json_encode($output));

?>

Result: The above code will return the following output

{
    "title": "Add IPv6 Subnet",
    "done": {
        "range": {
            "235617": "102f:4526:1f2501:0000:0000:0000:0000:0001",
            "235618": "102f:4526:1f25c0:0000:0000:0000:0000:0001",
            "235619": "102f:4526:1f25ce:0000:0000:0000:0000:0001",
            "235620": "102f:4526:1f2503:0000:0000:0000:0000:0001",
            "235621": "102f:4526:1f25a6:0000:0000:0000:0000:0001",
            "235622": "102f:4526:1f25b4:0000:0000:0000:0000:0001",
            "235623": "102f:4526:1f253a:0000:0000:0000:0000:0001",
            "235624": "102f:4526:1f2531:0000:0000:0000:0000:0001",
            "235625": "102f:4526:1f2514:0000:0000:0000:0000:0001",
            "235626": "102f:4526:1f2569:0000:0000:0000:0000:0001",
            "235627": "102f:4526:1f252c:0000:0000:0000:0000:0001",
            "235628": "102f:4526:1f25c4:0000:0000:0000:0000:0001",
            "235629": "102f:4526:1f2504:0000:0000:0000:0000:0001",
            "235630": "102f:4526:1f2502:0000:0000:0000:0000:0001",
            "235631": "102f:4526:1f25e6:0000:0000:0000:0000:0001",
            "235632": "102f:4526:1f2595:0000:0000:0000:0000:0001",
            "235633": "102f:4526:1f25ec:0000:0000:0000:0000:0001",
            "235634": "102f:4526:1f25b0:0000:0000:0000:0000:0001",
            "235635": "102f:4526:1f25a0:0000:0000:0000:0000:0001",
            "235636": "102f:4526:1f25eb:0000:0000:0000:0000:0001",
            "235637": "102f:4526:1f25b8:0000:0000:0000:0000:0001",
            "235638": "102f:4526:1f25c5:0000:0000:0000:0000:0001",
            "235639": "102f:4526:1f25f4:0000:0000:0000:0000:0001",
            "235640": "102f:4526:1f25fb:0000:0000:0000:0000:0001",
            "235641": "102f:4526:1f2538:0000:0000:0000:0000:0001",
            "235642": "102f:4526:1f2534:0000:0000:0000:0000:0001",
            "235643": "102f:4526:1f250a:0000:0000:0000:0000:0001",
            "235644": "102f:4526:1f25d4:0000:0000:0000:0000:0001",
            "235645": "102f:4526:1f256d:0000:0000:0000:0000:0001",
            "235646": "102f:4526:1f25fa:0000:0000:0000:0000:0001",
            "235647": "102f:4526:1f25f1:0000:0000:0000:0000:0001",
            "235648": "102f:4526:1f2516:0000:0000:0000:0000:0001",
            "235649": "102f:4526:1f2591:0000:0000:0000:0000:0001",
            "235650": "102f:4526:1f25cd:0000:0000:0000:0000:0001",
            "235651": "102f:4526:1f253e:0000:0000:0000:0000:0001",
            "235652": "102f:4526:1f25b6:0000:0000:0000:0000:0001",
            "235653": "102f:4526:1f250f:0000:0000:0000:0000:0001",
            "235654": "102f:4526:1f252a:0000:0000:0000:0000:0001",
            "235655": "102f:4526:1f25e7:0000:0000:0000:0000:0001",
            "235656": "102f:4526:1f2567:0000:0000:0000:0000:0001",
            "235657": "102f:4526:1f251d:0000:0000:0000:0000:0001",
            "235658": "102f:4526:1f2574:0000:0000:0000:0000:0001",
            "235659": "102f:4526:1f2573:0000:0000:0000:0000:0001",
            "235660": "102f:4526:1f258d:0000:0000:0000:0000:0001",
            "235661": "102f:4526:1f254d:0000:0000:0000:0000:0001",
            "235662": "102f:4526:1f254b:0000:0000:0000:0000:0001",
            "235663": "102f:4526:1f2593:0000:0000:0000:0000:0001",
            "235664": "102f:4526:1f257c:0000:0000:0000:0000:0001",
            "235665": "102f:4526:1f2509:0000:0000:0000:0000:0001"
        },
        "done": "1"
    },
    "timenow": "1481885828",
    "time_taken": "0.128"
}

HTTP Request

https://hostname:4085/index.php?act=addiprange

Parameters

Name Type Value Description Required
submitip GET addiprange If set the IPv6 Subnet will be generated Yes
netmask POST Int The Desired Netmask Yes
input_netmask POST Int The input netmask will be used to generate the subnet Yes
ipv6_1 POST ipv6_1 The 1st ipv6 subnet bits Yes
ipv6_2 POST ipv6_2 The 2st ipv6 subnet bits Yes
ipv6_3 POST ipv6_3 The 3st ipv6 subnet bits Yes
ipv6_num POST Int The number of ipv6 subnets that will be generated Yes
ippid POST Int The IP Pool Id to which the subnet has to be added No

Servers

List Servers

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->listservers();

    print_r(json_encode($output));
{
    "title": "Servers",
    "servs": [{
        "serid": 0,
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:13:\"test@test.com\";s:8:\"timezone\";s:1:\"0\";s:9:\"interface\";s:0:\"\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:0;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:0;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3042\";s:8:\"vpslimit\";s:3:\"250\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:40;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": 0,
        "ram": "6261",
        "total_space": "909",
        "space": "118",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1479970865",
        "locked": "0",
        "vcores": "56",
        "ips": "65",
        "ipv6": "149",
        "ipv6_subnet": "5091",
        "ips_int": "41",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "14",
        "alloc_ram": "22960",
        "alloc_space": "209",
        "alloc_cpu": "16312",
        "alloc_cpu_percent": "500.00",
        "alloc_bandwidth": "2015",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "0",
        "server_name": "kvm_107.189.41.210",
        "virt": "kvm lxc",
        "ip": "107.189.41.210",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": null,
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "3588",
        "total_space": "232",
        "space": "138",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux kvm2.nuftp.com 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1479970865",
        "locked": "0",
        "vcores": "36",
        "ips": "42",
        "ipv6": "53",
        "ipv6_subnet": "25",
        "ips_int": "14",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "9",
        "alloc_ram": "15352",
        "alloc_space": "200",
        "alloc_cpu": "10420",
        "alloc_cpu_percent": "120.00",
        "alloc_bandwidth": "2",
        "virts": ["kvm", "lxc"]
    }],
    "servers": [{
        "serid": 0,
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:13:\"test@test.com\";s:8:\"timezone\";s:1:\"0\";s:9:\"interface\";s:0:\"\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:0;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:0;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3042\";s:8:\"vpslimit\";s:3:\"250\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:40;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": 0,
        "ram": "6261",
        "total_space": "909",
        "space": "118",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1479970865",
        "locked": "0",
        "vcores": "56",
        "ips": "65",
        "ipv6": "149",
        "ipv6_subnet": "5091",
        "ips_int": "41",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "14",
        "alloc_ram": "22960",
        "alloc_space": "209",
        "alloc_cpu": "16312",
        "alloc_cpu_percent": "500.00",
        "alloc_bandwidth": "2015",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "0",
        "server_name": "kvm_107.189.41.210",
        "virt": "kvm lxc",
        "ip": "107.189.41.210",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": null,
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "3588",
        "total_space": "232",
        "space": "138",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux kvm2.nuftp.com 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.8",
        "patch": "0",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1479970865",
        "locked": "0",
        "vcores": "36",
        "ips": "42",
        "ipv6": "53",
        "ipv6_subnet": "25",
        "ips_int": "14",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "9",
        "alloc_ram": "15352",
        "alloc_space": "200",
        "alloc_cpu": "10420",
        "alloc_cpu_percent": "120.00",
        "alloc_bandwidth": "2",
        "virts": ["kvm", "lxc"]
    }],
    "timenow": "1479972487",
    "time_taken": "0.089"
}

HTTP Request

https://hostname:4085/index.php?act=servers

Parameters

Name Type Value Description Required
server_id POST Int The id given to a particular server Yes
server_type POST server_type The type of virtualization used in the server No
os POST os Operating system used in the server NO
server_name POST server_name Name given to a particular server No
server_ip POST server_ip IP address given to a particular server NO
server_ram POST server_ram RAM defined for the server NO
server_vps POST Number of virtual servers using the existing server No
expires_on POST expires_on The expiry date of the server NO
version POST version Version of VPS Panel displayed No
server_group POST server_group Add the server to a particular group NO
server_locked POST 1/0 If enabled, the server will be locked and no new VPS will be created No

Add Server

<?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['server_name'] = 'Slave_server';
    $post['ip'] = 'slave_ip';
    $post['pass'] = 'slave_api_pass';
    $post['sgid'] = 0;

    $output = $admin->addserver($post);
    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Add Server",
    "saved": "true",
    "servergroups": {
        "0": {
            "sgid": "0",
            "sg_name": "sg_test",
            "sg_reseller_name": "sg_region",
            "sg_desc": "This is just desc",
            "sg_select": "0"
        },
        "15": {
            "sgid": "15",
            "sg_name": "testlocal",
            "sg_reseller_name": "Local_test",
            "sg_desc": "",
            "sg_select": "0"
        }
    },
    "timenow": "1474850356",
    "time_taken": "1.827"
}

HTTP Request

https://hostname:4085/index.php?act=addserver

Parameters

Name Type Value Description Required
act GET addserver The action to add the server to a cluster Yes
server_name POST server_name The server name that will be given while adding Yes
ip POST ip IP address of the server to be added Yes
pass POST pass The API password of the server Yes
sgid POST Int The server group to which the server will be added Yes
locked POST 1/0 Will the server be locked? No
internal_ip POST internal_ip The internal ip will be assigned to the server No

Edit Server

<?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['server_name'] = 'Slave_server';
    $post['ip'] = 'slave_ip';
    $post['pass'] = 'slave_api_pass';
    $post['sgid'] = 0;
    $output = $admin->editserver($post);
    print_r(json_encode($output));
?>

Result: The above code produces the following output php { "title": "Edit Server", "error": [ "Could not load the server details" ], "ipblocks": null, "serid": 1, "serv": { "serid": "1", "sgid": "0", "server_name": "XenSlave211", "virt": "xen", "ip": "107.189.41.211", "internal_ip": "", "vnc_ip": "", "settings": "a:30:{s:6:\"update\";i:2;s:12:\"email_update\";i:1;s:9:\"pv_on_hvm\";i:0;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:22:\"chirag@softaculous.com\";s:8:\"timezone\";s:1:\"0\";s:9:\"interface\";s:0:\"\";s:11:\"xen_dom0mem\";i:512;s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"49 18 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 2,17 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies804\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:12:\"xen_pvbridge\";s:0:\"\";s:13:\"xen_hvmbridge\";s:0:\"\";s:6:\"use_xl\";i:0;s:15:\"change_ssh_port\";i:22;s:13:\"max_ssh_login\";i:999;s:6:\"vcores\";i:0;}", "unique_txt": "", "lv": "", "hvm": "0", "licnumvs": "0", "total_ram": "0", "overcommit": "0", "ram": "0", "total_space": "20", "space": "18", "os": "CentOS release 6.8 (Final)", "os_arch": "x86_64", "uname": "Linux XEN-SLave-DND 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux", "version": "2.8.8", "patch": "0", "lic_expires": "13/12/2016 GMT", "checked": "1479459664", "locked": "0", "vcores": "4", "ips": "228", "ipv6": "9", "ipv6_subnet": "5", "ips_int": "0", "bandwidth": "0", "update_resource": "0", "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}", "numvps": "1", "alloc_ram": "256", "alloc_space": "2", "alloc_cpu": "256", "alloc_cpu_percent": "40.00", "alloc_bandwidth": "1", "virts": [ "xen" ] }, "servergroups": [ { "sgid": 0, "sg_name": "Default", "sg_reseller_name": "Default", "sg_desc": "Default Group", "sg_select": 0 } ], "timenow": 1481875753, "time_taken": "3.123" }

HTTP Request

https://hostname:4085/index.php?act=editserver&serid=SERID

Parameters

Name Type Value Description Required
act GET editserver The action to edit the server in a cluster Yes
serid GET Int The id of the server which needs to be edited Yesserver_name
ip POST ip IP address of the server to be added No
pass POST pass The API password of the server No
sgid POST Int The server group id to which the server will be added No
locked POST 1/0 Will the server be locked? No
internal_ip POST internal_ip The internal ip will be assigned to the server No

Delete Server

<?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);

    $del_serid =  2;

    $output = $admin->servers($del_serid);
    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Servers",
    "servs": [{
        "serid": "0",
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:1;s:10:\"soft_email\";s:21:\"test@test.com\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:1;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:100;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3081\";s:8:\"vpslimit\";s:3:\"200\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:20;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": "0",
        "ram": "6407",
        "total_space": "909",
        "space": "186",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "4",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1474851663",
        "locked": "0",
        "vcores": "29",
        "ips": "18490",
        "ipv6": "97",
        "ipv6_subnet": "93",
        "ips_int": "28",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "8",
        "alloc_ram": "17584",
        "alloc_space": "149",
        "alloc_cpu": "7144",
        "alloc_cpu_percent": "100.00",
        "alloc_bandwidth": "4",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "15",
        "server_name": "KVM Slave: ip_addr",
        "virt": "kvm",
        "ip": "ip_addr",
        "internal_ip": "",
        "vnc_ip": "ip_addr",
        "settings": "a:25:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:19:\"testme@mail_server\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:8:\"enp3s4f0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:100;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:10:\"35 4 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 7,22 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies551\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:14:\"ip_addr\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:10;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "1515",
        "total_space": "1239",
        "space": "260",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "4",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1474851664",
        "locked": "0",
        "vcores": "45",
        "ips": "56",
        "ipv6": "50",
        "ipv6_subnet": "20",
        "ips_int": "5",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "11",
        "alloc_ram": "19400",
        "alloc_space": "356",
        "alloc_cpu": "14336",
        "alloc_cpu_percent": "360.00",
        "alloc_bandwidth": "2",
        "virts": ["kvm"]
    }],
    "servers": [{
        "serid": "0",
        "sgid": "0",
        "server_name": "localhost",
        "virt": "kvm openvz",
        "ip": "127.0.0.1",
        "internal_ip": "",
        "vnc_ip": "",
        "settings": "a:30:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:1;s:10:\"soft_email\";s:21:\"test@test.com\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:4:\"eth0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:16:\"enable_tuntap_cp\";i:0;s:13:\"enable_ppp_cp\";i:1;s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:5:\"vswap\";i:1;s:5:\"ploop\";i:0;s:14:\"node_bandwidth\";i:100;s:17:\"disable_backup_cp\";i:0;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:11:\"18 16 * * 3\";s:14:\"emps_cron_time\";s:11:\"18 16 * * 3\";s:11:\"cookie_name\";s:14:\"SIMCookies3081\";s:8:\"vpslimit\";s:3:\"200\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:0:\"\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:20;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15912",
        "overcommit": "0",
        "ram": "6407",
        "total_space": "909",
        "space": "186",
        "os": "CentOS release 6.7 (Final)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "4",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1474851663",
        "locked": "0",
        "vcores": "29",
        "ips": "18490",
        "ipv6": "97",
        "ipv6_subnet": "93",
        "ips_int": "28",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "8",
        "alloc_ram": "17584",
        "alloc_space": "149",
        "alloc_cpu": "7144",
        "alloc_cpu_percent": "100.00",
        "alloc_bandwidth": "4",
        "virts": ["kvm", "openvz"]
    }, {
        "serid": "1",
        "sgid": "15",
        "server_name": "KVM Slave: ip_addr",
        "virt": "kvm",
        "ip": "ip_addr",
        "internal_ip": "",
        "vnc_ip": "ip_addr",
        "settings": "a:25:{s:6:\"update\";i:1;s:12:\"email_update\";i:1;s:17:\"novnc_server_name\";i:1;s:6:\"cpu_nm\";i:0;s:10:\"soft_email\";s:19:\"testme@mail_server\";s:8:\"timezone\";s:1:\"1\";s:9:\"interface\";s:8:\"enp3s4f0\";s:16:\"alert_load_limit\";i:0;s:16:\"alert_disk_limit\";i:0;s:7:\"ping_ip\";s:0:\"\";s:14:\"addvs_cpu_prio\";s:0:\"\";s:13:\"addvs_io_prio\";s:0:\"\";s:14:\"addvs_io_class\";s:0:\"\";s:14:\"node_bandwidth\";i:100;s:20:\"del_slave_ostemplate\";i:0;s:19:\"openvz_suspend_load\";d:0;s:9:\"cron_time\";s:10:\"35 4 * * *\";s:14:\"emps_cron_time\";s:12:\"1 1 7,22 * *\";s:11:\"cookie_name\";s:13:\"SIMCookies551\";s:8:\"vpslimit\";s:0:\"\";s:10:\"overcommit\";i:0;s:6:\"vnc_ip\";s:14:\"ip_addr\";s:15:\"change_ssh_port\";i:2044;s:13:\"max_ssh_login\";i:10;s:6:\"vcores\";i:0;}",
        "unique_txt": "",
        "lv": "",
        "hvm": "0",
        "licnumvs": "0",
        "total_ram": "15885",
        "overcommit": "0",
        "ram": "1515",
        "total_space": "1239",
        "space": "260",
        "os": "CentOS Linux release 7.2.1511 (Core)",
        "os_arch": "x86_64",
        "uname": "Linux hostname 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU\/Linux",
        "version": "2.8.7",
        "patch": "4",
        "lic_expires": "28\/12\/2016 GMT",
        "checked": "1474851664",
        "locked": "0",
        "vcores": "45",
        "ips": "56",
        "ipv6": "50",
        "ipv6_subnet": "20",
        "ips_int": "5",
        "bandwidth": "0",
        "update_resource": "0",
        "location": "{\"city\":\"Atlanta\",\"state\":\"Georgia\",\"country_code\":\"US\"}",
        "numvps": "11",
        "alloc_ram": "19400",
        "alloc_space": "356",
        "alloc_cpu": "14336",
        "alloc_cpu_percent": "360.00",
        "alloc_bandwidth": "2",
        "virts": ["kvm"]
    }],
    "timenow": "1474852126",
    "time_taken": "0.693"
}

HTTP Request

https://hostname:4085/index.php?act=servers&delete=SERID

Parameters

Name Type Value Description Required
act GET servers The action specified to perform an operation and return success after the server has been deleted Yes
del_serid POST del_serid The server which needs to be deleted Yes

Servergroups

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $output = $admin->servergroups();
    print_r($output);

Result: The output of the following code is as given below

{
    "title": "Server Groups",
    "servergroups": {
        "0": {
            "sgid": "0",
            "sg_name": "sg_test",
            "sg_reseller_name": "sg_region",
            "sg_desc": "This is just desc",
            "sg_select": "0",
            "totalservers": "1",
            "servers": ["localhost"]
        },
        "15": {
            "sgid": "15",
            "sg_name": "testlocal",
            "sg_reseller_name": "Local_test",
            "sg_desc": "",
            "sg_select": "0",
            "totalservers": "1",
            "servers": {
                "1": "KVM Slave: ip_addr"
            }
        }
    },
    "timenow": "1477444769",
    "time_taken": "0.127"
}

HTTP Request

https://hostname:4085/index.php?act=servergroups

Parameters

Name Type Value Description Required
act GET servergroups The action specified list the server groups Yes

Add Server Groups

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['addsg'] = 1;
    $post['sg_name'] = 'test_sg';
    $post['sg_reseller_name'] = 'US';
    $post['sg_desc'] = 'This is just test';
    $post['sg_select'] = 0;

    $output = $admin->addsg($post);
    print_r(json_encode($output));

Result: The following code will return the following result

{
    "title" : "Add Server Group",
    "done" : "1",
    "timenow" : "1470990646",
    "time_taken" : "0.103"
}

HTTP Request

https://hostname:4085/index.php?act=addsg

Parameters

Name Type Value Description Required
act GET addsg The action specified to perform operation and return success after the server group has been added successfully Yes
addsg POST 1/0 Flag to add Server Group Yes
sg_name POST sg_name Server Group Name Yes
sg_reseller_name POST sg_reseller_name The name that will be shown to resellers (Optional) No
sg_desc POST sg_desc Description of the Group No
sg_select POST sg_select Server Selection (0 for Least Utilized and 1 for First Available) No

Edit Server group

<?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['editsg'] = 1;
    $post['sgid'] = 16;
    $post['sg_name'] = 'test@test';
    $post['sg_reseller_name'] = 'test';

    $output = $admin->editsg($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Edit Server Group",
    "done": "1",
    "servergroup": {
        "sgid": "16",
        "sg_name": "test",
        "sg_reseller_name": "test",
        "sg_desc": "",
        "sg_select": "0"
    },
    "timenow": "1477268613",
    "time_taken": "0.101"
}

HTTP Request

https://hostname:4085/index.php?act=editsg&sgid=SGID

Parameters

Name Type Value Description Required
act GET editsg The action will edit the information of server group and retrieve data Yes
sgid GET Int The server group id which needs to be edited Yes
sg_name POST sg_name The name of the server group that will be edited Yes
sg_reseller_name POST sg_reseller_name The reseller or region name that will edited No
sg_desc POST sg_desc A short description about the server group No
sg_select POST 1/0 Between the two options Least Utilised and First Available whichever is selected will be saved No

Delete Server Group

<?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['delete'] = 18;

    $output = $admin->servergroups($post);

    print_r(json_encode($output));
?>

Result : The above code will produce the following output

{
    "title": "Server Groups",
    "done": {
        "18": {
            "sgid": "18",
            "sg_name": "test",
            "sg_desc": ""
        }
    },
    "servergroups": "null",
    "timenow": "1477271894",
    "time_taken": "0.101"
}

HTTP Request

https://hostname:4085/index.php?act=servergroups

Parameters

Name Type Value Description Required
act GET servergroups The action will list the server group after particular server group is deleted Yes
delete POST Int The server group id that needs to be deleted Yes

List BackupServer

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $output = $admin->backupservers();
    print_r(json_encode($output));

Result: The above code will generate the following output

{
    "title": "Backup Servers",
    "backupservers": {
        "14": {
            "bid": "14",
            "type": "SSH",
            "name": "107.189.34.19",
            "hostname": "107.189.34.19",
            "username": "root",
            "password": "",
            "salt": "",
            "port": "22",
            "dir": "",
            "private_key": "null"
        },
        "15": {
            "bid": "15",
            "type": "SSH",
            "name": "199.204.187.93",
            "hostname": "199.204.187.93",
            "username": "root",
            "password": "",
            "salt": "",
            "port": "2044",
            "dir": "",
            "private_key": ""
        },
        "19": {
            "bid": "19",
            "type": "FTP",
            "name": "test_ftp",
            "hostname": "37.59.163.128",
            "username": "root",
            "password": "",
            "salt": "",
            "port": "22",
            "dir": "",
            "private_key": ""
        }
    },
    "timenow": "1471055427",
    "time_taken": "0.098"
}

HTTP Request

https://hostname:4085/index.php?act=backupservers

Parameters

Name Type Value Description Required
act GET backupservers The action specified to perform operation and retrieve the list of the backup servers Yes

Add Backup Server

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['addbackupserver'] = 1;
    $post['hostname'] = 'testhost';
    $post['name'] = 'backupstest';
    $post['type'] = 'SSH';
    $post['username'] = 'test';
    $post['password'] = 'test123';
    $post['port'] = 22;

    $output = $admin->addbackupserver($post);
    print_r(json_encode($output));
?>

Result: The following code produces output in the following format

{
    "title": "Add Backup Server",
    "done": "true",
    "timenow": "1471056390",
    "time_taken": "0.139"
}

HTTP Request

https://hostname:4085/index.php?act=addbackupservers

Parameters

Name Type Value Description Required
act GET addbackupservers The action specified to perform operation and return success after the backup server has been added Yes
addbackupserver POST 1 Flag to add Backup Server Yes
hostname POST hostname Any one of the Hostname of the Backup Server or IP address can be added Yes
name POST name A unique for the Backup Server Yes
type POST type Type of the Server (FTP / SSH) Yes
username POST username Username for access Yes
password POST password Password of the user Yes
port POST Int Port number Yes

Edit Backup Server

<?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['id'] = 37;
    $post['editbackupserver'] = 1;
    $post['name'] = 'lxc server';
    $post['hostname'] = 'lxc.nuftp.com';
    $post['type'] = 'SSH';
    $post['username'] = 'root';
    $post['port'] = 2044;

    $output = $admin->editbackupserver($post);

    print_r(json_encode($output));
?>

Result : The above code produces the following output

{
    "title": "Edit Backup Server",
    "timenow": "1477273778",
    "time_taken": "0.078"
}

HTTP Request

https://hostname:4085/index.php?act=editbackupserver&id=BID

Parameters

Name Type Value Description Required
act GET editbackupserver The action will edit the backup server Yes
id GET Int The backup server id which needs to be edited Yes
name POST name The name to be given to the backup server Yes
hostname POST hostname The hostname that has to given to the backup server Yes
type POST type The type of server that will be created(SSH/FTP/LOCAL) Yes
username POST username The name given which is used to login to the server Yes
port POST Int The port that will be used to connect to the server Yes
password POST password The port that will be used to connect to the server No

Delete Backup Server

<?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['delete'] = 37;

    $output = $admin->backupservers($post);

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Backup Servers",
    "done": {
        "37": {
            "bid": "37",
            "type": "SSH",
            "name": "lxc server",
            "hostname": "test.test.com",
            "username": "root",
            "password": "password",
            "salt": "7tf8b59b",
            "port": "22",
            "dir": "",
            "private_key": "null"
        }
    },
    "backupservers": "null",
    "timenow": "1477274649",
    "time_taken": "0.077"
}

HTTP Request

https://hostname:4085/index.php?act=backupservers&delete=ID

Parameters

Name Type Value Description Required
act GET backupservers The action will list all backupservers after the deleting the specified server Yes
delete GET Int The backup server id that needs to be deleted Yes

Test Backup connectivity

<?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['test'] = 35;

    $output = $admin->backupservers($post);

    print_r(json_encode($output));
?>

Result : The above code produces the following output

{
    "title": "Backup Servers",
    "done_test": "1",
    "backupservers": "null",
    "timenow": "1477275462",
    "time_taken": "0.160"
}

HTTP Request

https://hostname:4085/index.php?act=backupservers&test=ID

Parameters

Name Type Value Description Required
act GET backupservers The action will test the connection of the server with backup server Yes
test GET Int The backup server id which needs to be tested for connection. If the value of “done_test” in the output is 1 then that means connection with backup server was successful Yes

Storage

List Storage

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $output = $admin->storages();
    print_r(json_encode($output));
?>

Result: The above code produces output in the folowing way

{
    "title": "Storage Overview",
    "storage": {
        "1": {
            "stid": "1",
            "st_uuid": "3rjhfdsescpehhor",
            "name": "Default Storage",
            "path": "\/dev\/vg",
            "type": "block",
            "format": "",
            "size": "465.47",
            "free": "9.88",
            "oversell": "0",
            "alert_threshold": "0.00",
            "primary_storage": "1",
            "last_alert": "0"
        },
        "44": {
            "stid": "44",
            "st_uuid": "qcqgjremr0xh5eya",
            "name": "OpenVZ Storage",
            "path": "\/vz",
            "type": "openvz",
            "format": "raw",
            "size": "105.84",
            "free": "3.67",
            "oversell": "200",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "45": {
            "stid": "45",
            "st_uuid": "ek6zzxbxr27ot7fx",
            "name": "Thinn storage",
            "path": "\/dev\/vg\/thin_pool",
            "type": "thin block",
            "format": "raw",
            "size": "10.00",
            "free": "10.00",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "113": {
            "stid": "113",
            "st_uuid": "pmk8iswob8qdvb1m",
            "name": "QCOW File",
            "path": "\/vms",
            "type": "file",
            "format": "qcow2",
            "size": "105.84",
            "free": "3.67",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "115": {
            "stid": "115",
            "st_uuid": "sj8m4febv2iziad9",
            "name": "Raw file",
            "path": "\/vms",
            "type": "file",
            "format": "raw",
            "size": "105.84",
            "free": "3.67",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "128": {
            "stid": "128",
            "st_uuid": "8oulbkpmhpmvkvrb",
            "name": "Thin Pool 2",
            "path": "\/dev\/vg\/thin-pool",
            "type": "thin block",
            "format": "raw",
            "size": "10.00",
            "free": "10.00",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "246": {
            "stid": "246",
            "st_uuid": "cjeyyhlzk3yexo87",
            "name": "Default Storage",
            "path": "\/dev\/vg",
            "type": "block",
            "format": "",
            "size": "20.00",
            "free": "8.00",
            "oversell": "0",
            "alert_threshold": "0.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "247": {
            "stid": "247",
            "st_uuid": "wxs181guwijoj7mw",
            "name": "QCOW File",
            "path": "\/vms",
            "type": "file",
            "format": "qcow2",
            "size": "96.00",
            "free": "71.06",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "248": {
            "stid": "248",
            "st_uuid": "l4tjm7032nzktiap",
            "name": "File",
            "path": "\/vms",
            "type": "file",
            "format": "raw",
            "size": "96.00",
            "free": "71.06",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        },
        "251": {
            "stid": "251",
            "st_uuid": "72k1mayacrdnaex1",
            "name": "anotherStorageon kvm2",
            "path": "\/dev\/vg1",
            "type": "block",
            "format": "raw",
            "size": "931.27",
            "free": "280.73",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "1",
            "last_alert": "0"
        }
    },
    "storage_servers": [{
        "stid": "1",
        "serid": "0",
        "sgid": "-2"
    }, {
        "stid": "44",
        "serid": "0",
        "sgid": "-2"
    }, {
        "stid": "45",
        "serid": "0",
        "sgid": "-2"
    }, {
        "stid": "113",
        "serid": "0",
        "sgid": "-2"
    }, {
        "stid": "115",
        "serid": "0",
        "sgid": "-2"
    }, {
        "stid": "128",
        "serid": "0",
        "sgid": "-2"
    }, {
        "stid": "246",
        "serid": "1",
        "sgid": "-2"
    }, {
        "stid": "247",
        "serid": "1",
        "sgid": "-2"
    }, {
        "stid": "248",
        "serid": "1",
        "sgid": "-2"
    }, {
        "stid": "251",
        "serid": "1",
        "sgid": "-2"
    }],
    "timenow": "1471060045",
    "time_taken": "0.097"
}

HTTP Request

https://hostname:4085/index.php?act=storage&name=STORAGENAME&path=PATH

Parameters

Name Type Value Description Required
act GET storage The action performed to perform operation and retireve list of storages Yes
name GET name Search storage by storage name No
path GET path Search storage by storage path No

Edit Storage

<?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['editstorage'] = 1;
    $post['name'] = 'QCOW File Storage';
    $post['stid'] = 113;

    $output = $admin->editstorage($post);

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Edit Storage",
    "done": "1",
    "edit_storage": "true",
    "timenow": "1477286283",
    "time_taken": "0.085"
}

HTTP Request

https://hostname:4085/index.php?act=editstorage&stid=STID

Parameters

Name Type Value Description Required
act GET editstorage The action will return the list of storage after the particular storage has been edited Yes
stid POST Int The storage id which needs to be edited Yes
name POST name The name of the storage No
oversell POST Int The oversell value given to the storage No
alert_threshold POST Int If this used size crosses this percentage, an email will be sent to the Admin No
primary_storage POST 1/0 IF set then the storage will be set as primary No

Delete Storage

<?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['delete'] = 273;
    $output = $admin->storages($post);

    print_r(json_encode($output));
?>

Result:The above code will produce the following output

{
    "title": "Storage Overview",
    "done": {
        "273": {
            "stid": "273",
            "st_uuid": "jyrwebelvwsdbcjw",
            "name": "New Storage",
            "path": "\/vm1",
            "type": "file",
            "format": "qcow2",
            "size": "0.00",
            "free": "0.00",
            "oversell": "0",
            "alert_threshold": "90.00",
            "primary_storage": "0",
            "last_alert": "0"
        }
    },
    "timenow": "1475643015",
    "time_taken": "0.108"
}

HTTP Request

https://hostname:4085/index.php?act=storage

Parameters

Name Type Value Description Required
act GET storages The action to delete storages Yes
delete POST stid The storage that needs to be deleted Yes

Add Storage

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post = array();
    $post['name'] = 'Test Storage';
    $post['serid'] = 0;
    $post['path'] = '/dev/vg/thin_pool';
    $post['type'] = 'thin block';
    $post['format'] = 'raw';

    $output = $admin->addstorage($post);
    print_r(json_encode($output));
?>

Result: The following code generates output in the following way

{
    "title": "Add Storage",
    "done": "284",
    "timenow": "1479985570",
    "time_taken": "0.839"
}

HTTP Request

https://hostname:4085/index.php?act=addstorage

Parameters

Name Type Value Description Required
act GET addstorage The action specified carries out operation and returns success if the storage has been added successfully Yes
name POST name Name of the Storage Yes
serid[] POST Array Server Id on which storage exist, array for shared storage Yes
path POST path Path of the Storage (In case of LVM / Thin LVM the Volume Group path should be of form /dev/VG_NAME) Yes
type POST type Type of Storage to add (file, block, openvz, thin block, zfs block, zfs thin block, zfs block compressed, zfs thin block compressed) Yes
format POST format Format of the Storage (raw, qcow2) Yes
oversell POST Int Disk space to overcommit in GBs No
alert_threshold POST Int If storage exceeds threshold, an email is sent to admin (in percentage) No
primary_storage POST 1/0 Set it as on to use storage as primary or do not define No

Storage type available

Name
LVM
File
OpenVZ
Thin LVM
ZFS Pool
ZFS Thin
ZFS Compressed
ZFS Thin Compressed

Plans

List Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $count = 20;
    $page_number = 1;

    $output = $admin->plans($count,$page_number);
    print_r(json_encode($output));

Result: The above code produces the follwing output

{
    "title": "Plans",
    "plans": {
        "1": {
            "plid": "1",
            "plan_name": "vz",
            "virt": "openvz",
            "ips": "4",
            "ips6": "2",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "11",
            "inodes": "0",
            "ram": "2048",
            "burst": "4096",
            "swap": "0",
            "cpu": "1000",
            "cores": "4",
            "cpu_percent": "5.00",
            "bandwidth": "1",
            "network_speed": "512",
            "upload_speed": "0",
            "nic_type": "default",
            "io": "3",
            "virtio": "0",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "a:0:{}",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "0",
            "mgs": "",
            "cpu_mode": "default",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "en-us",
            "osid": "0",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "0",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "0",
            "apic": "0",
            "pae": "0",
            "rdp": "0"
        },
        "2": {
            "plid": "2",
            "plan_name": "Plan",
            "virt": "kvm",
            "ips": "1",
            "ips6": "0",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "7",
            "inodes": "0",
            "ram": "2048",
            "burst": "0",
            "swap": "4096",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "0.00",
            "bandwidth": "1000",
            "network_speed": "1024",
            "upload_speed": "0",
            "nic_type": "default",
            "io": "0",
            "virtio": "1",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "a:0:{}",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "0",
            "mgs": "",
            "cpu_mode": "default",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "en-us",
            "osid": "0",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "1",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "1",
            "apic": "1",
            "pae": "1",
            "rdp": "0"
        },
        "26": {
            "plid": "26",
            "plan_name": "Openvztest",
            "virt": "openvz",
            "ips": "1",
            "ips6": "0",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "2",
            "inodes": "0",
            "ram": "1024",
            "burst": "1",
            "swap": "0",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "10.00",
            "bandwidth": "1024",
            "network_speed": "512",
            "upload_speed": "0",
            "nic_type": "default",
            "io": "5",
            "virtio": "0",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "null",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "",
            "mgs": "null",
            "cpu_mode": "null",
            "sec_iso": "null",
            "hvm": "0",
            "kvm_cache": "",
            "io_mode": "",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "",
            "osid": "0",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "null",
            "vnc": "0",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "0",
            "apic": "0",
            "pae": "0",
            "rdp": "0"
        },
        "27": {
            "plid": "27",
            "plan_name": "KVM",
            "virt": "kvm",
            "ips": "1",
            "ips6": "0",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "1",
            "inodes": "0",
            "ram": "1024",
            "burst": "0",
            "swap": "512",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "100.00",
            "bandwidth": "512",
            "network_speed": "512",
            "upload_speed": "0",
            "nic_type": "virtio",
            "io": "0",
            "virtio": "1",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "a:0:{}",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "0",
            "mgs": "",
            "cpu_mode": "default",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "en-us",
            "osid": "0",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "0",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "0",
            "apic": "0",
            "pae": "0",
            "rdp": "0"
        },
        "28": {
            "plid": "28",
            "plan_name": "Changed_KVM",
            "virt": "kvm",
            "ips": "2",
            "ips6": "0",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "5",
            "inodes": "0",
            "ram": "2048",
            "burst": "0",
            "swap": "512",
            "cpu": "1000",
            "cores": "4",
            "cpu_percent": "0.00",
            "bandwidth": "0",
            "network_speed": "512",
            "upload_speed": "0",
            "nic_type": "default",
            "io": "0",
            "virtio": "0",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "a:0:{}",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "0",
            "mgs": "",
            "cpu_mode": "default",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "en-us",
            "osid": "347",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "1",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "0",
            "apic": "0",
            "pae": "0",
            "rdp": "0"
        }
    },
    "timenow": "1471065589",
    "time_taken": "0.095"
}

HTTP Request

https://hostname:4085/index.php?act=plans

Parameters

Name Type Value Description Required
act GET plans The action specified to perform operation list all vps plans Yes
page Int POST If not specified then first 50 records would be returned No
reslen POST Int Number of records to be returned, default is 50 No

Add Plan

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['addplan'] = 1;
    $post['plan_name'] = 'test_api_plan';
    $post['cplan'] = 'kvm';
    $post['disk_space'] = 5;
    $post['guaranteed_ram'] = 1024;
    $post['swapram'] = 1024;
    $post['burst_ram'] = 0;
    $post['priority'] = 3;
    $post['bandwidth'] = 0;
    $post['network_speed'] = 0;
    $post['cpu_units'] = 1024;
    $post['topology_sockets'] = 0;
    $post['topology_cores'] = 0;
    $post['topology_threads'] = 0;
    $post['cpu_cores'] = 4;
    $post['percent_cpu'] = 0;
    $post['ips'] = 1;
    $post['ips6'] = 0;
    $post['ips6_subnet'] = 0;
    $post['ips_int'] = 0;
    $post['nic_type'] = 'e100';
    $post['acpi'] = 1;
    $post['apic'] = 1;
    $post['pae'] = 1;
    $post['virtio'] = 0;
    $post['ploop'] = 0;
    $post['band_suspend'] = 0;
    $post['upload_speed'] = 0;
    $post['tuntap'] = 0; 
    $post['ppp'] = 0;
    $post['rdp'] = 1;
    $post['ubcsettings'] = 0;
    $post['control_panel'] = 'cpanel';
    $post['cpu_mode'] = 'host-model';
    $post['sec_iso'] = 0;
    $post['iso'] = 0;
    $post['osreinstal_limit'] = 10;
    $post['osid'] = 347;
    $post['kvm_vga'] = 1;
    $post['acceleration'] = 0;
    $post['vnc'] = 1;
    $post['admin_managed'] = 0;
    $post['recipe'] = 18;
    $post['disable_nw_config'] = 0;
    $post['shadow'] = 8;
    $post['pv_on_hvm'] = 0;
    $post['vif_type'] = '';
    $post['mgs'] = 16;
    $post['dns'] = array('4.2.2.1','4.2.2.2');
    $post['vnc_keymap'] = 'en-us';
    $post['kvm_cache'] = 'writeback';
    $post['io_mode'] = 0;
    $post['total_iops_sec'] = 10;
    $post['read_bytes_sec'] = 10;
    $post['write_bytes_sec'] = 10;

    $output = $admin->addplan($post);
    print_r(json_encode($output));
?>

Result: The above code produces the foloowing result

{
    "title": "Add Plan",
    "done": "1",
    "timenow": "1471066800",
    "time_taken": "0.131"
}

HTTP Request

https://hostname:4085/index.php?act=addplan

Parameters

Name Type Value Description Required
act POST addplan The action specified to perform operation Yes
addplan POST Int Confirmation to Add Plan Yes
planname POST planname Name of the plan Yes
cplan POST cplan The Virt type of Plan(XCP,XEN,KVM,OpenVz) Yes
disk_space POST Int Amount of disk space for the VPS Yes
guaranteed_ram POST Int Amount of ram for the VPS Yes
swapram POST Int Amount of swap ram for the VPS (for KVM,XCP and XEN VPS) Yes
burst_ram POST Int Amount of burst ram for the VPS(Required for OpenVz VPS) No
bandwidth POST Int Network bandwidth in GB(Setting 0 will set bandwidth to unlimited) No
network_speed POST Int Network speed in kb/s No
network_speed2 POST Int Network speed in kb/s, same as network_speed No
cpu_units POST Int The amount of CPU units to be set Yes
cpu_cores POST Int The amount of CPU cores to be set Yes
percent_cpu POST Int The total amount of CPU processing in percent to be given to a VPS Yes
priority POST 1-7 Required I/O priority for OpenVZ. Valid values are 1-7. No
ips POST Int The amount of ips to auto allocate No
ips6_subnet POST Int The number of ipv6 subnet No
ips6 POST Int The number of ipv6 address No
ips_int POST Int The number of internal ips to be specified No
virtio POST 1/0 This will enable/disable virtio for the vps No
acpi POST 1/0 This will enable/disable acpi for the vps No
apic POST 1/0 This will enable/disable apic for the vps No
pae POST 1/0 This will enable/disable pae for the vps No
mgs POST mgs This will assign the vps to the media group No
upload_speed1 POST Int This will assign upload speed to the vps No
upload_speed2 POST upload_speed2 This will assign a predefined network speed to the vps No
nic_type POST nic_type This will assign a network interface card. If not selected the default card Realtek will be assigned No
band_suspend POST band_suspend The bandwidth suspension option will be enabled for the vps No
dns[] POST array The DNS will be assigned to the vps No
control_panel POST control_panel The control panel selected will be installed on the vps No
recipe POST recipe A recipe will be assigned to the vps No
cpu_mode POST cpu_mode This will assign a cpu mode to the vps No
enable_cpu_topology POST 1/0 This will enable the cpu topology to the vps No
sockets POST Int IF cpu topology is enabled then number of sockets can be assigned to the vps No
cpu_cores POST Int IF cpu topology is enabled then number of cores can be assigned to the vps No
Threads POST Int IF cpu topology is enabled then number of threads can be assigned to the vps No
sec_iso POST sec_iso The secondary iso will be used for the vps, if selected No
vnc_keymap POST 1/0 If enabled, vnc keymap will be used No
kvm_cache POST kvm_cache Controls the cache mechanism No
io_mode POST io_mode Assigns the io policy to the vps No
kvm_vga POST 1/0 Enables VGA Adaptor for the vps No
total_iops_sec POST Int Assigns Total I/O time to the vps No
rdp POST 1/0 Enables RDP for the vps No
read_bytes_sec POST Int Assigns Read per sec value to the vps No
write_bytes_sec POST Int Assigns Write per sec value to the vps No
osreinstall_limit POST Int Set OS reinstall limit to the vps No
admin_managed POST Int Some options will be disbled for the enduser No

Edit Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['plid'] = 66;
    $post['virt'] = 'kvm';
    $post['cpu_cores'] = 4;
    $post['burst_ram'] = '';
    $post['percent_cpu'] = 0;
    $post['priority'] ='';
    $post['cpu_units'] = 1024;
    $post['swapram'] = 1024;
    $post['topology_sockets'] = 1;
    $post['topology_cores'] = 2;
    $post['topology_threads'] = 2;
    $post['acpi'] = 1;
    $post['apic'] = 1;
    $post['pae'] = 1;
    $post['plan_name'] = 'test_api_edit';
    $post['disk_space'] = 10;
    $post['guaranteed_ram'] = 1024;
    $post['bandwidth'] = 0;
    $post['ips'] = 1;
    $post['ips6'] = 2;
    $post['ips6_subnet'] = 0;
    $post['ips_int'] = 0;
    $post['network_speed'] = 0;
    $post['nic_type'] = 'e1000';
    $post['virtio'] = 0;
    $post['ploop'] = 0;
    $post['upload_speed'] = 0;
    $post['tuntap'] = 0;
    $post['ppp'] = '';
    $post['rdp'] = 0;
    $post['ubcsettings'] = 0;
    $post['band_suspend'] = 0;
    $post['control_panel'] = 'webuzo';
    $post['cpu_mode'] = 'host-model';
    $post['sec_iso'] = 0;
    $post['iso'] = 0;
    $post['osreinstall_limit'] = 5;
    $post['osid'] = 272;
    $post['kvm_vga'] = 0;
    $post['acceleration'] = 0;
    $post['vnc'] = 1;
    $post['admin_managed'] = 0;
    $post['recipe'] = 13;
    $post['disable_nw_config'] = 0;
    $post['shadow'] = 8;
    $post['pv_on_hvm'] = 0;
    $post['vif_type'] = '';
    $post['mgs'] = '';
    $post['dns'] = '';
    $post['vnc_keymap'] = 'en-gb';
    $post['kvm_cache'] = 'writeback';
    $post['io_mode'] = 0;
    $post['total_iops_sec'] = 8;
    $post['read_bytes_sec'] = 5;
    $post['write_bytes_sec'] = 6;
    $post['editplan'] = 1;

    $output = $admin->editplan($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Edit Plan",
    "done": "1",
    "plan": {
        "plid": "66",
        "plan_name": "test-api",
        "virt": "kvm",
        "ips": "1",
        "ips6": "0",
        "ips6_subnet": "0",
        "ips_int": "0",
        "space": "3",
        "inodes": "0",
        "ram": "1024",
        "burst": "0",
        "swap": "100",
        "cpu": "1024",
        "cores": "4",
        "cpu_percent": "0.00",
        "bandwidth": "1000",
        "network_speed": "1024",
        "upload_speed": "0",
        "nic_type": "default",
        "io": "0",
        "virtio": "1",
        "ubc": "false",
        "ploop": "0",
        "band_suspend": "0",
        "dns_nameserver": "false",
        "ppp": "0",
        "tuntap": "0",
        "control_panel": "0",
        "mgs": [""],
        "cpu_mode": "default",
        "sec_iso": "0",
        "hvm": "0",
        "kvm_cache": "0",
        "io_mode": "0",
        "osreinstall_limit": "0",
        "total_iops_sec": "0",
        "read_bytes_sec": "0",
        "write_bytes_sec": "0",
        "vnc_keymap": "en-us",
        "osid": "0",
        "kvm_vga": "0",
        "acceleration": "0",
        "vif_type": "",
        "pv_on_hvm": "0",
        "iso": "0",
        "vnc": "1",
        "admin_managed": "0",
        "shadow": "0",
        "acpi": "1",
        "apic": "1",
        "pae": "1",
        "recipe": "9",
        "topology_sockets": "1",
        "topology_cores": "4",
        "topology_threads": "1",
        "disable_nw_config": "1",
        "rdp": "0",
        "bpid": "0"
    },
    "error": "null",
    "timenow": "1480147790",
    "time_taken": "0.139"
}

HTTP Request

https://hostname:4085/index.php?act=editplan&plid=PLID

Parameters

Name Type Value Description Required
act POST addplan The action specified to perform operation Yes
editplan POST Int Confirmation to Edit Plan Yes
planname POST planname Name of the plan Yes
cplan POST cplan The Virt type of Plan(XCP,XEN,KVM,OpenVZ) Yes
disk_space POST Int Amount of disk space for the VPS Yes
guaranteed_ram POST Int Amount of ram for the VPS Yes
swapram POST Int Amount of swap ram for the VPS (for KVM,XCP and XEN VPS) Yes
burst_ram POST Int Amount of burst ram for the VPS(for OpenVz VPS) Yes
bandwidth POST Int Network bandwidth in GB(Setting 0 will set bandwidth to unlimited) Yes
network_speed POST Int Network speed in kb/s Yes
network_speed2 POST Int Network speed in kb/s, same as network_speed Yes
cpu_units POST Int The amount of CPU units to be set No
cpu_cores POST Int The amount of CPU cores to be set Yes
percent_cpu POST Int The total amount of CPU processing in percent to be given to a VPS Yes
priority POST 1-7 I/O priority for OpenVZ. Valid values are 1-7 Yes
ips POST Int The amount of ips to auto allocate Yes
ips6_subnet POST Int The number of ipv6 subnet No
ips6 POST Int The number of ipv6 address No
ips_int POST Int The number of internal ips to be specified Yes
virtio POST 1/0 This will enable/disable virtio for the vps No
acpi POST 1/0 This will enable/disable acpi for the vps No
apic POST 1/0 This will enable/disable apic for the vps No
pae POST 1/0 This will enable/disable pae for the vps No
mgs POST mgs This will assign the vps to the media group No
upload_speed1 POST Int This will assign upload speed to the vps No
upload_speed2 POST upload_speed2 This will assign a predefined network speed to the vps No
nic_type POST nic_type This will assign a network interface card. If not selected the default card Realtek will be assigned No
band_suspend POST band_suspend The bandwidth suspension option will be enabled for the vps No
dns[] POST array The DNS will be assigned to the vps No
control_panel POST control_panel The control panel selected will be installed on the vps No
recipe POST recipe A recipe will be assigned to the vps No
cpu_mode POST cpu_mode This will assign a cpu mode to the vps No
sec_iso POST sec_iso The secondary iso will be used for the vps, if selected No
vnc_keymap POST 1/0 If enabled, vnc keymap will be used No
kvm_cache POST kvm_cache Controls the cache mechanism No
io_mode POST io_mode Assigns the io policy to the vps No
kvm_vga POST 1/0 Enables VGA Adaptor for the vps No
total_iops_sec POST Int Assigns Total I/O time to the vps No
rdp POST 1/0 Enables RDP for the vps No
read_bytes_sec POST Int Assigns Read per sec value to the vps No
write_bytes_sec POST Int Assigns Write per sec value to the vps No
osreinstall_limit POST Int Set OS reinstall limit to the vps No
admin_managed POST Int Some options will be disbled for the enduser No
topology_sockets POST Int This specifies the socket value for the cpu No
topology_cores POST Int This specifies the CPU cores for the cpu No
topology_threads POST Int This specifies the CPU threads for the cpu No

Search Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $search['planname'] = 'Plan';
    $search['ptype'] = 'kvm';
    $page = 0;
    $reslen = 0;
    $output = $admin->sort_plans($sort);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Plans",
    "plans": {
        "2": {
            "plid": "2",
            "plan_name": "Plan",
            "virt": "kvm",
            "ips": "1",
            "ips6": "0",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "3",
            "inodes": "0",
            "ram": "1024",
            "burst": "0",
            "swap": "100",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "0.00",
            "bandwidth": "1000",
            "network_speed": "1024",
            "upload_speed": "0",
            "nic_type": "default",
            "io": "0",
            "virtio": "1",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "a:0:{}",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "0",
            "mgs": "",
            "cpu_mode": "default",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "en-us",
            "osid": "0",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "1",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "1",
            "apic": "1",
            "pae": "1",
            "recipe": "9",
            "topology_sockets": "1",
            "topology_cores": "4",
            "topology_threads": "1",
            "disable_nw_config": "1",
            "rdp": "0",
            "bpid": "0"
        }
    },
    "timenow": "1480062650",
    "time_taken": "0.110"
}

HTTP Request

https://hostname:4085/index.php?act=plans&planname=PLANNAME&ptype=PTYPE&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET plans The action returns the list of plans Yes
planname GET planname Will Search plans according to the plan name Yes
ptype GET ptype Will search according to the plan type Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Sorting of Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['sortcolumn'] = 'plid';
    $post['sortby'] = 'desc';
    $page = 1;
    $reslen = 2;
    $output = $admin->sort_plans($page,$reslen,$post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Plans",
    "plans": {
        "66": {
            "plid": "66",
            "plan_name": "test_api_edit",
            "virt": "kvm",
            "ips": "1",
            "ips6": "2",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "10",
            "inodes": "0",
            "ram": "1024",
            "burst": "0",
            "swap": "1024",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "0.00",
            "bandwidth": "0",
            "network_speed": "0",
            "upload_speed": "0",
            "nic_type": "e1000",
            "io": "0",
            "virtio": "1",
            "ubc": "a:0:{}",
            "ploop": "1",
            "band_suspend": "1",
            "dns_nameserver": "a:0:{}",
            "ppp": "1",
            "tuntap": "1",
            "control_panel": "webuzo",
            "mgs": "",
            "cpu_mode": "host-model",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "writeback",
            "io_mode": "0",
            "osreinstall_limit": "5",
            "total_iops_sec": "8",
            "read_bytes_sec": "5",
            "write_bytes_sec": "6",
            "vnc_keymap": "en-gb",
            "osid": "272",
            "kvm_vga": "1",
            "acceleration": "1",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "1",
            "admin_managed": "1",
            "shadow": "0",
            "acpi": "1",
            "apic": "1",
            "pae": "1",
            "recipe": "13",
            "topology_sockets": "1",
            "topology_cores": "2",
            "topology_threads": "2",
            "disable_nw_config": "1",
            "rdp": "1",
            "bpid": "0"
        },
        "64": {
            "plid": "64",
            "plan_name": "abhi_testKVMPlan1",
            "virt": "kvm",
            "ips": "1",
            "ips6": "0",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "2",
            "inodes": "0",
            "ram": "256",
            "burst": "0",
            "swap": "256",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "40.00",
            "bandwidth": "1",
            "network_speed": "128",
            "upload_speed": "-1",
            "nic_type": "e1000",
            "io": "0",
            "virtio": "0",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "a:0:{}",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "0",
            "mgs": "",
            "cpu_mode": "default",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "en-us",
            "osid": "272",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "1",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "1",
            "apic": "1",
            "pae": "1",
            "recipe": "0",
            "topology_sockets": "0",
            "topology_cores": "0",
            "topology_threads": "0",
            "disable_nw_config": "0",
            "rdp": "0",
            "bpid": "0"
        }
    },
    "timenow": "1482122574",
    "time_taken": "0.092"
}

HTTP Request

https://hostname:4085/index.php?act=plans&sortcolumn=SORTCOLUMN&sortby=SORTBY

Parameters

Name Type Value Description Required
act GET plans The action will return the list of plans Yes
sortcolumn POST sortcolumn The action will sort the column according to the column name (plid/plan_name/space/ram/cpu) Yes
sortby POST sortby Sort according to Ascending order or Descending order Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Delete Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['delete'] = 65;

    $output = $admin->delete_plans($post);

    print_r(json_encode($output));
?>

Result : The above code will produce the following output

{
    "title": "Plans",
    "done": {
        "65": {
            "plid": "65",
            "plan_name": "test-api",
            "virt": "kvm",
            "ips": "1",
            "ips6": "0",
            "ips6_subnet": "0",
            "ips_int": "0",
            "space": "3",
            "inodes": "0",
            "ram": "1024",
            "burst": "0",
            "swap": "100",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "0.00",
            "bandwidth": "1000",
            "network_speed": "1024",
            "upload_speed": "0",
            "nic_type": "default",
            "io": "0",
            "virtio": "1",
            "ubc": "a:0:{}",
            "ploop": "0",
            "band_suspend": "0",
            "dns_nameserver": "a:0:{}",
            "ppp": "0",
            "tuntap": "0",
            "control_panel": "0",
            "mgs": "",
            "cpu_mode": "default",
            "sec_iso": "0",
            "hvm": "0",
            "kvm_cache": "0",
            "io_mode": "0",
            "osreinstall_limit": "0",
            "total_iops_sec": "0",
            "read_bytes_sec": "0",
            "write_bytes_sec": "0",
            "vnc_keymap": "en-us",
            "osid": "0",
            "kvm_vga": "0",
            "acceleration": "0",
            "vif_type": "",
            "pv_on_hvm": "0",
            "iso": "0",
            "vnc": "1",
            "admin_managed": "0",
            "shadow": "0",
            "acpi": "1",
            "apic": "1",
            "pae": "1",
            "recipe": "9",
            "topology_sockets": "1",
            "topology_cores": "4",
            "topology_threads": "1",
            "disable_nw_config": "1",
            "rdp": "0",
            "bpid": "0"
        }
    },
    "plans": "null",
    "timenow": "1480074682",
    "time_taken": "0.111"
}

HTTP Request

https://hostname:4085/index.php?act=plans&delete=PLID

Parameters

Name Type Value Description Required
act GET plans The action will list the plans after deleting the specified plans. Yes
delete POST Int The plan that needs to be deleted Yes

Add DNS Plans

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['adddnsplan'] = 1;
    $post['plan_name'] = 'test';
    $post['dnsserverid'] = 10;
    $post['maxdomains'] = 1000;
    $post['maxdomainsrec'] = 1999;
    $post['ttl'] = 10000;

$output = $admin->adddnsplan($post);
    print_r(json_encode($output));

Result: The above code produces output in the following format

{
    "title": "Add DNS Plan",
    "done": "true",
    "timenow": "1471070236",
    "time_taken": "0.098"
}

HTTP Request

https://hostname:4085/index.php?act=adddnsplans

Parameters

Name Type Value Description Required
act GET adddnsplans Specified action adds a dns plan and returns true on success Yes
adddnsplan POST 1 Flag to Add DNS Plan Yes
plan_name POST plan_name Name of the Plan Yes
dnsserverid POST Int Id of DNS Server on which plan is to be created Yes
maxdomains POST Int Maximum number of Domains Yes
maxdomainsrec POST Int Maximum number of Records for Domain Yes
ttl POST Int Time To Live value Yes

List DNS Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $page = 1;
    $reslen = 10;
    $post=array();
    $output = $admin->listdnsplans($page,$reslen,$post);
    print_r(json_encode($output));
?>

Result: The above code produces output in the following format

{
    "title": "DNS Plans",
    "dnsplans": {
        "14": {
            "dnsplid": "14",
            "pdnsid": "10",
            "plan_name": "test",
            "max_domains": "1000",
            "max_domain_records": "1999",
            "def_ttl": "10000",
            "dns_server_name": "dns2"
        },
        "10": {
            "dnsplid": "10",
            "pdnsid": "7",
            "plan_name": "asd",
            "max_domains": "1000000",
            "max_domain_records": "10000",
            "def_ttl": "86400",
            "dns_server_name": "My dns"
        },
        "11": {
            "dnsplid": "11",
            "pdnsid": "7",
            "plan_name": "dnsplan",
            "max_domains": "200",
            "max_domain_records": "254",
            "def_ttl": "80000",
            "dns_server_name": "My dns"
        },
        "13": {
            "dnsplid": "13",
            "pdnsid": "10",
            "plan_name": "dns1",
            "max_domains": "10000",
            "max_domain_records": "9456",
            "def_ttl": "10000",
            "dns_server_name": "dns2"
        }
    },
    "timenow": "1471072012",
    "time_taken": "0.101"
}

HTTP Request

https://hostname:4085/index.php?act=dnsplans

Parameters

Name Type Value Description Required
act GET dnsplans The action specified to perform operation Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Edit DNS Plan

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['dnsplid'] = 17;
    $post['editdnsplan'] = 1;
    $post['plan_name'] = 'test-api-dns';
    $post['dnsserverid'] = 12;
    $post['maxdomains'] = 1000;
    $post['maxdomainsrec'] = 1000;
    $post['ttl'] = 990;

    $output = $admin->edit_dnsplans($post);
    print_r(json_encode($output));
?>

Result : The above code will produce the following output

{
    "title": "Edit DNS Plan",
    "done": "true",
    "timenow": "1480076870",
    "time_taken": "0.094"
}

HTTP Request

https://hostname:4085/index.php?act=editdnsplans&dnsplid=DNSPLID

Parameters

Name Type Value Description Required
act GET editdnsplans The action will edit the dns plans Yes
dnsplid POST Int The dns plan id which needs to be edited Yes
editdnsplan POST 1/0 If set then the plan will be edited Yes
plan_name POST plan_name The plan name which will be assigned Yes
dnsserverid POST dnsserverid Assigning the dns server Yes
maxdomains POST The max domains that can be supported Yes
maxdomainsrec POST The max domain records that can be assigned Yes
ttl POST Value of Time to live Yes

DELETE DNS Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['delete'] = 16;

    $output = $admin->delete_dnsplans($post);

    print_r(json_encode($output));
?>

Result: The above code produces output in the following format

{
    "title": "DNS Plans",
    "done": {
        "16": {
            "dnsplid": "16",
            "pdnsid": "12",
            "plan_name": "test-api",
            "max_domains": "1000",
            "max_domain_records": "100000",
            "def_ttl": "10000"
        }
    },
    "dnsplans": "null",
    "timenow": "1480075606",
    "time_taken": "0.100"
}

HTTP Request

https://hostname:4085/index.php?act=dnsplans

Parameters

Name Type Value Description Required
act GET dnsplans The action specified to perform operation Yes
delete POST delete Deletes the specified DNS Plan Yes

Search DNS Plans

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $page = 1;
    $reslen = 3;
    $post['planname'] = 'test*';

    $output = $admin->listdnsplans($page,$reslen,$post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output


HTTP Request

https://hostname:4085/index.php?act=listdnsplans&planname=PLANNAME&page=PAGE&RESLEN=RESLEN

Parameters

Name Type Value Description Required
act GET dnsplans List all the DNS Plans Yes
planname GET planname Pass the planname to retrieve its data Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Users

List Users

<?php
require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->users();
    print_r(json_encode($output));
?>

Result:The above code produces the following output

{
    "title": "Users",
    "users": {
        "27": {
            "uid": "27",
            "password": "",
            "email": "test@test.com",
            "type": "2",
            "aclid": "0",
            "pid": "0",
            "num_vs": "0",
            "num_users": "10",
            "space": "1024",
            "ram": "10000",
            "burst": "20000",
            "bandwidth": "10000",
            "cpu": "1024",
            "cores": "4",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "20",
            "num_ipv6": "100",
            "num_ipv6_subnet": "0",
            "allowed_virts": "openvz xen xenhvm kvm xcp xcphvm",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "0",
            "suspended": "0",
            "suspend_reason": "null",
            "numvps": "2",
            "bw_used": "0.40"
        },
        "53": {
            "uid": "53",
            "password": "",
            "email": "cloud@openvz.com",
            "type": "2",
            "aclid": "0",
            "pid": "0",
            "num_vs": "2",
            "num_users": "2",
            "space": "10",
            "ram": "5000",
            "burst": "5000",
            "bandwidth": "0",
            "cpu": "0",
            "cores": "4",
            "cpu_percent": "100",
            "num_cores": "0",
            "num_ipv4": "1",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "openvz",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "0",
            "suspended": "0",
            "suspend_reason": "null",
            "numvps": "1",
            "bw_used": "0.00"
        },
        "182": {
            "uid": "182",
            "password": "",
            "email": "test1@test.com",
            "type": "2",
            "aclid": "0",
            "pid": "0",
            "num_vs": "0",
            "num_users": "0",
            "space": "10000",
            "ram": "10000",
            "burst": "0",
            "bandwidth": "0",
            "cpu": "50",
            "cores": "5",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "10",
            "num_ipv6": "10",
            "num_ipv6_subnet": "10",
            "allowed_virts": "openvz xen xenhvm kvm xcp xcphvm",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "0",
            "suspended": "0",
            "suspend_reason": "null"
        },

    },
    "timenow": "1471072308",
    "time_taken": "0.102"
}

Http Request

https://hostname:4085/index.php?act=users

Parameters

Name Type Value Description Required
act GET users The action specified list the users Yes
uid POST Int List the users according to their id No
email POST email List the users according to the email No
type POST type List the users according to their type No

Edit User

<?php

    <?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['uid'] = 372;
   $post['edituser'] = 1;
   $post['priority'] = 2;
   $post['newemail'] = 'test@test.com';
   $post['newpass'] = 'avinsh_123';
   $post['dnsplan_id'] = 13;
   $post['fname'] = 'test';
   $post['lname'] = 'test';
   $post['acl_id'] = 0;   
   $post['num_vs'] = 100000;
   $post['num_users'] = 15;
   $post['ram'] = 2048;
   $post['burst'] = 1024;
   $post['bandwidth'] = 1000000;
   $post['cpu'] = 1024;
   $post['cores'] = 8;
   $post['cpu_percent'] = 50;
   $post['num_cores'] = 10000;
   $post['num_ipv4'] = 50;
   $post['num_ipv6_subnet'] = 0;
   $post['num_ipv6'] = 0;
   $post['network_speed'] = 0;
   $post['upload_speed'] = 0;
   $post['service_period'] = 1;
   $post['virts'] = array('kvm', 'openvz');
   $post['sgs'] = 0;


   $output = $admin->edituser($post);

   print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Edit User",
    "done": "1",
    "users": {
        "uid": "372",
        "password": "$1$K.DyuVs0$EV5v3Qb17I4F8nRw9Xv1h\/",
        "email": "test@test.com",
        "type": "2",
        "aclid": "0",
        "pid": "0",
        "num_vs": "100000",
        "num_users": "15",
        "space": "0",
        "ram": "2048",
        "burst": "1024",
        "bandwidth": "1000000",
        "cpu": "1024",
        "cores": "8",
        "cpu_percent": "50",
        "num_cores": "10000",
        "num_ipv4": "50",
        "num_ipv6": "0",
        "num_ipv6_subnet": "0",
        "allowed_virts": [""],
        "network_speed": "0",
        "upload_speed": "0",
        "openvz": "0",
        "xen": "0",
        "xenhvm": "0",
        "kvm": "0",
        "sg": [0],
        "mg": [0],
        "preferences": {
            "fname": "test",
            "lname": "test"
        },
        "dnsplid": "13",
        "date_created": "0",
        "service_period": "1",
        "band_suspend": "0"
    },
    "mgs": {
        "1": {
            "mgid": "1",
            "mg_name": "windows",
            "mg_desc": "dsafsd",
            "mg_type": "kvm"
        },
        "14": {
            "mgid": "14",
            "mg_name": "openvz1",
            "mg_desc": "asdasdadasd",
            "mg_type": "openvz"
        },
        "15": {
            "mgid": "15",
            "mg_name": "openvz2",
            "mg_desc": "asdadad",
            "mg_type": "openvz"
        },
        "16": {
            "mgid": "16",
            "mg_name": "just another kvm mg",
            "mg_desc": "aise hi tp re",
            "mg_type": "kvm"
        },
        "17": {
            "mgid": "17",
            "mg_name": "only ISO",
            "mg_desc": "Only ISO",
            "mg_type": "kvm"
        },
        "18": {
            "mgid": "18",
            "mg_name": "LXC-group",
            "mg_desc": "test dfvcdfcv",
            "mg_type": "lxc"
        },
        "19": {
            "mgid": "19",
            "mg_name": "LXC-groupsxd",
            "mg_desc": "sxsx",
            "mg_type": "lxc"
        },
        "20": {
            "mgid": "20",
            "mg_name": "testing for api",
            "mg_desc": "Testing for the api",
            "mg_type": "kvm"
        }
    },
    "servergroups": [{
        "sgid": "0",
        "sg_name": "sg_test",
        "sg_reseller_name": "sg_region",
        "sg_desc": "This is just desc",
        "sg_select": "0"
    }],
    "timenow": "1473726161",
    "time_taken": "0.109"
}

HTTP Request

https://hostname:4085/index.php?act=edituser

Parameters

Name Type Value Description Required
act GET edituser The action specified to perform operation and retrieve data after user editing has been done Yes
uid POST Int The user id that needs to be edited No
edituser POST 1 If set then the user details will be edited Yes
priority POST priority This sets the type of user Yes
newemail POST newemail This edits the email of the user No
newpass POST newpass This edits the password of the user account No
dnsplan_id POST dnsplan_id IF the DNS Plan is configured then, plan will be assigned to user No
fname POST fname This sets the first name of the user No
lname POST lname This sets the last name of the user No
acl_id POST acl_id IF the user is administrator then No
num_vs POST Int If the user is cloud user, then it will set the number of vps No
num_users POST Int This will set the number of users the cloud user will be allowed to create No
ram POST Int This will set the amount of RAM that will be usable to create vps No
burst POST Int This defines swap ram of the vps No
bandwidth POST Int This sets the bandwidth limit for the vps No
cpu POST Int This sets the CPU weight for the vps No
cores POST Int This will set the total cores that will be used to create vps No
cpu_percent POST Int This will set the cpu percentage No
num_cores POST Int This will set the number of cpu cores No
num_ipv4 POST Int The number of IPv4 addresses that can be used to assign the vps No
num_ipv6_subnet POST Int The number of IPv6 addresses that can be used to assign the vps NO
num_ipv6 POST Int The number of single IPv6 address that can be used to assign the vps No
network_speed POST Int This will set the network speed for the vps No
upload_speed POST Int This will set the upload speed of the vps No
service_period POST Int Required for monthly bandwidth calculation No
virts POST virts The type of virtualization for the which the vps will be created No
sgs POST sgs Assign a server group for vps creation No

Add User

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['adduser'] = 1;
    $post['priority'] = 0;
    $post['newemail'] = 'test@mail.com';
    $post['newpass'] = 'test';
    $post['dnsplan_id'] = 10;
    $post['acl_id'] = 0;
    $post['bandwidth'] = 0;
    $post['burst'] = 0;
    $post['cores'] = 0;
    $post['cpu'] = 0;
    $post['cpu_percent'] = 0;
    $post['network_speed'] = 0;
    $post['num_cores'] = 0;
    $post['num_ipv4'] = 0;
    $post['num_ipv6'] = 0;
    $post['num_ipv6_subnet'] = 0;
    $post['num_users'] = 0;
    $post['num_vs'] = 0;
    $post['ram'] = 0;
    $post['space'] = 0;
    $post['upload_speed'] = 0;

    $output = $admin->adduser($post);
    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Add User",
    "done": "366",
    "mgs": {
        "1": {
            "mgid": "1",
            "mg_name": "windows",
            "mg_desc": "dsafsd",
            "mg_type": "kvm"
        },
        "14": {
            "mgid": "14",
            "mg_name": "openvz1",
            "mg_desc": "asdasdadasd",
            "mg_type": "openvz"
        },
        "15": {
            "mgid": "15",
            "mg_name": "openvz2",
            "mg_desc": "asdadad",
            "mg_type": "openvz"
        },
        "16": {
            "mgid": "16",
            "mg_name": "just another kvm mg",
            "mg_desc": "aise hi tp re",
            "mg_type": "kvm"
        },
        "17": {
            "mgid": "17",
            "mg_name": "only ISO",
            "mg_desc": "Only ISO",
            "mg_type": "kvm"
        },
        "18": {
            "mgid": "18",
            "mg_name": "LXC-group",
            "mg_desc": "test dfvcdfcv",
            "mg_type": "lxc"
        },
        "19": {
            "mgid": "19",
            "mg_name": "LXC-groupsxd",
            "mg_desc": "sxsx",
            "mg_type": "lxc"
        }
    },
    "servergroups": {
        "0": {
            "sgid": "0",
            "sg_name": "Default",
            "sg_reseller_name": "Default",
            "sg_desc": "Default Group",
            "sg_select": "0"
        },
        "11": {
            "sgid": "11",
            "sg_name": "KVM Slave",
            "sg_reseller_name": "KVM Slave",
            "sg_desc": "",
            "sg_select": "0"
        },
        "13": {
            "sgid": "13",
            "sg_name": "test_sg",
            "sg_reseller_name": "US",
            "sg_desc": "This is just test",
            "sg_select": "0"
        }
    },
    "timenow": "1471073857",
    "time_taken": "0.106"
}

HTTP Request

https://hostname:4085/index.php?act=adduser

Parameters

Name Type Value Description Required
act GET adduser The action specified to add the user. Returns user id in the result. Yes
priority POST priority This specifies if the user is a user or cloud or admin Yes
newpass POST newpass This specifies the password of the user Yes
newemail POST newemail This specifies the email of the user Yes
dnsplan_id POST dnsplan_id This specifies the dnsplan id to the user No
acl_id POST acl_id This gives ACL permission id to the user No
fname POST fname This specifies the first name of the user Yes
lname POST lname This specifies the last name of the user Yes
num_vs POST num_vs The number of vps that will be created under the user Yes
num_users POST num_users The number of users that will be created Yes
space POST space The total space that will be used to create vps Yes
ram POST ram The total ram that will be assigned for the vps Yes
burst POST burst This is the swap ram Yes
bandwidth POST bandwidth The total bandwidth assigned to the user No
cpu POST cpu The total cpu assigned to the user to create vps
cores POST cores The total cpu cores that will be assigned to the user Yes
cpu_percent cpu_percent POST The cpu percentage that will be used by the vps Yes
num_cores POST num_cores The total number of cores to be used by the vps Yes
num_ipv4 POST num_ipv4 The total number of ipv4 addresses that will be used for the vps No
num_ipv6_subnet POST num_ips6_subnet The total number of ipv6 subnet No
num_ipv6 POST num_ipv6 The total number of ipv6 addresses No

networ network_speed | POST | network_speed | The total network speed | No upload_speed | POST | upload_speed | The total upload speed that will be used | No service_period | POST | service_period | Service period if checked then bandwidth will be calculated on basis vps creation date | No

Required values for priority

Name Value
0 User
1 Admin
2 Cloud

Search Users

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['uid'] = 5;
    $post['email'] = 'user_specified_email' ;
    $post['type'] = 2;
    $page = 1;
    $reslen = 20;

    $output = $admin->users();
    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Users",
    "users": {
        "5": {
            "uid": "5",
            "password": "",
            "email": "user_specified_email",
            "type": "2",
            "aclid": "0",
            "pid": "0",
            "num_vs": "100000",
            "num_users": "100000",
            "space": "100000",
            "ram": "6144",
            "burst": "10000000",
            "bandwidth": "1",
            "cpu": "1024",
            "cores": "8",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "15",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "xcp xcphvm",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "1",
            "date_created": "0",
            "service_period": "1",
            "band_suspend": "0",
            "suspended": null,
            "numvps": "4",
            "bw_used": "0.06"
        }
    },
    "timenow": "1481534182",
    "time_taken": "0.111"
}

HTTP Request

https://hostname:4085/index.php?act=users&uid=UID&email=EMAIL&type=TYPE&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET Users The action will return list of users Yes
uid GET Int The user id that needs to be searched Yes
email GET email The user email Yes
type GET type The type of user.(Please check Add Users for User type/Priority) Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

User Suspension

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['suspend'] = 5;
    $page = 1;
    $reslen = 3;

    $output = $admin->users($page,$reslen,$post);

    print_r(json_encode($output));

?>

Result: The action will return the following output

{
    "title": "Users",
    "done": true,
    "users": {
        "3": {
            "uid": "3",
            "password": "",
            "email": "jevin@softaculous.com",
            "type": "0",
            "aclid": "0",
            "pid": "0",
            "num_vs": "0",
            "num_users": "0",
            "space": "0",
            "ram": "0",
            "burst": "0",
            "bandwidth": "0",
            "cpu": "0",
            "cores": "0",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "0",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": null,
            "mg": null,
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "0",
            "date_created": "0",
            "service_period": "0",
            "band_suspend": "0",
            "suspended": null,
            "numvps": "2",
            "bw_used": "0.09"
        },
        "4": {
            "uid": "4",
            "password": "",
            "email": "test@test.com",
            "type": "0",
            "aclid": "0",
            "pid": "0",
            "num_vs": "0",
            "num_users": "0",
            "space": "0",
            "ram": "0",
            "burst": "0",
            "bandwidth": "0",
            "cpu": "0",
            "cores": "0",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "0",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:4:\"test\";s:5:\"lname\";s:4:\"test\";}",
            "dnsplid": "0",
            "date_created": "0",
            "service_period": "1",
            "band_suspend": "0",
            "suspended": null,
            "numvps": "2",
            "bw_used": "0.01"
        },
        "5": {
            "uid": "5",
            "password": "",
            "email": "user_specified_email",
            "type": "2",
            "aclid": "0",
            "pid": "0",
            "num_vs": "100000",
            "num_users": "100000",
            "space": "100000",
            "ram": "6144",
            "burst": "10000000",
            "bandwidth": "1",
            "cpu": "1024",
            "cores": "8",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "15",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "xcp xcphvm",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "1",
            "date_created": "0",
            "service_period": "1",
            "band_suspend": "0",
            "suspended": "a:2:{s:2:\"id\";i:0;s:6:\"reason\";s:83:\"Account suspended by Admin. Please contact your Administrator for more information.\";}",
            "numvps": "2",
            "bw_used": "0.02"
        }
    },
    "timenow": "1480935416",
    "time_taken": "0.725"
}

HTTP Request

https://hostname:4085/index.php?act=users

Parameters

Name Type Value Description Required
act GET users The action will return the list of users after suspending a specific user Yes
suspend POST Int The specific user who needs to be suspended Yes

User Unsuspension

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['unsuspend'] = 5;
    $page = 1;
    $reslen = 3;

    $output = $admin->users($page,$reslen,$post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Users",
    "done": true,
    "users": {
        "3": {
            "uid": "3",
            "password": "",
            "email": "jevin@softaculous.com",
            "type": "0",
            "aclid": "0",
            "pid": "0",
            "num_vs": "0",
            "num_users": "0",
            "space": "0",
            "ram": "0",
            "burst": "0",
            "bandwidth": "0",
            "cpu": "0",
            "cores": "0",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "0",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": null,
            "mg": null,
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "0",
            "date_created": "0",
            "service_period": "0",
            "band_suspend": "0",
            "suspended": null,
            "numvps": "2",
            "bw_used": "0.09"
        },
        "4": {
            "uid": "4",
            "password": "",
            "email": "test@test.com",
            "type": "0",
            "aclid": "0",
            "pid": "0",
            "num_vs": "0",
            "num_users": "0",
            "space": "0",
            "ram": "0",
            "burst": "0",
            "bandwidth": "0",
            "cpu": "0",
            "cores": "0",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "0",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:4:\"test\";s:5:\"lname\";s:4:\"test\";}",
            "dnsplid": "0",
            "date_created": "0",
            "service_period": "1",
            "band_suspend": "0",
            "suspended": null,
            "numvps": "2",
            "bw_used": "0.01"
        },
        "5": {
            "uid": "5",
            "password": "",
            "email": "user_specified_email",
            "type": "2",
            "aclid": "0",
            "pid": "0",
            "num_vs": "100000",
            "num_users": "100000",
            "space": "100000",
            "ram": "6144",
            "burst": "10000000",
            "bandwidth": "1",
            "cpu": "1024",
            "cores": "8",
            "cpu_percent": "0",
            "num_cores": "0",
            "num_ipv4": "15",
            "num_ipv6": "0",
            "num_ipv6_subnet": "0",
            "allowed_virts": "xcp xcphvm",
            "network_speed": "0",
            "upload_speed": "0",
            "openvz": "0",
            "xen": "0",
            "xenhvm": "0",
            "kvm": "0",
            "sg": "0",
            "mg": "",
            "preferences": "a:2:{s:5:\"fname\";s:0:\"\";s:5:\"lname\";s:0:\"\";}",
            "dnsplid": "1",
            "date_created": "0",
            "service_period": "1",
            "band_suspend": "0",
            "suspended": null,
            "numvps": "2",
            "bw_used": "0.02"
        }
    },
    "timenow": "1480935808",
    "time_taken": "1.007"
}

HTTP Request

https://hostname:4085/index.php?act=users

Parameters

Name Type Value Description Required
act GET users The action will return the list of users after the specific user has been unsuspended Yes
unsuspend POST Int The user which needs to be unsuspended Yes

Delete User

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['delete'] = 412;

    $output = $admin->delete_users($post);

    print_r(json_encode($output));

?>

Result : The above code produces the following output

{
    "title": "Users",
    "done": {
        "412": {
            "uid": "412",
            "email": "test@test.com",
            "dnsplid": "11"
        }
    },
    "users": "null",
    "timenow": "1480053507",
    "time_taken": "0.232"
}

HTTP Request

https://hostname:4085/index.php?act=users

Parameters

Name Type Value Description Required
act GET users The action will list the users after a specific operation is executed Yes
delete POST Int This will delete the users Yes

Add Administrator ACL

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post['add_admin_acl'] = 1;
    $post['name'] = 'test_api';
    $post['act_add_admin_acl'] = 0;
    $post['act_addbackupserver'] = 0;
    $post['act_adddnsplan'] = 0;    

    $output = $admin->add_admin_acl($post);
    print_r(json_encode($output));

?>

Result: The above code produces the output in the following

{
    "title": "Add Administrator ACL",
    "done": "true",
    "timenow": "1471074962",
    "time_taken": "0.101"
}

HTTP Request

https://hostname:4085/index.php?act=add_admin_acl

Parameters

Name Type Value Description Required
act GET add_admin_acl The action specified to perform specific operation and retrieve data Yes
add_admin_acl POST 1 Flag to Add ACL Yes
name POST name Name of the Plan No
act_add_admin_acl POST 1/0 Add Admin ACL No
act_addbackupserver POST 1/0 Add Backup Server No
act_adddnsplan POST 1/0 Add DNS Plan No
act_addips POST 1/0 Add IPs No
act_addiso POST 1/0 Add ISOs No
act_addmg POST 1/0 Add Media Groups No
act_addpdns POST 1/0 Add PDNS No
act_addplan POST 1/0 Add Plans No
act_addreversedns POST 1/0 Add rDNS No
act_addserver POST 1/0 Add Slave Server No
act_addsg POST 1/0 Add Server Groups No
act_addtemplate POST 1/0 Add Templates No
act_adduser POST 1/0 Add Users No
act_adminacl POST 1/0 View Admin ACLs No
act_backupservers POST 1/0 View Backup Servers No
act_changehostname POST 1/0 Edit Hostname No
act_cluster_statistics POST 1/0 View Cluster Statistics No
act_config POST 1/0 Edit General Settings No
act_createssl POST 1/0 Create SSL No
act_createtemplate POST 1/0 Create Template No
act_createvs POST 1/0 Create VPS No
act_databackup POST 1/0 View DB Backups No
act_defaultvsconf POST 1/0 Default VPS Config No
act_delete_admin_acl POST 1/0 Delete Admin ACL No
act_deletebackupserver POST 1/0 Delete Backup Server No
act_deletedatabackup POST 1/0 Delete Data Backup No
act_deletednsplan POST 1/0 Delete DNS Plan No
act_deleteippool POST 1/0 Delete IP Pool No
act_deleteips POST 1/0 Delete IPs No
act_deleteiso POST 1/0 Delete ISO No
act_deleteloginlogs POST 1/0 Delete Login Logs No
act_deletemg POST 1/0 Delete Media Group No
act_deletepdns POST 1/0 Delete PDNS No
act_deleteplan POST 1/0 Delete Plans No
act_deleteserver POST 1/0 Delete Server No
act_deletesg POST 1/0 Delete Server Group No
act_deletetemplate POST 1/0 Delete Template No
act_deleteuser POST 1/0 Delete User No
act_deleteuserlogs POST 1/0 Delete User Log No
act_deletevpsbackup POST 1/0 Delete VPS Backup No
act_deletevs POST 1/0 Delete VPS No
act_dldatabackup POST 1/0 Download DB Backups No
act_dnsplans POST 1/0 View DNS Plans No
act_edit_admin_acl POST 1/0 Edit Admin ACL No
act_editbackupservsers POST 1/0 Edit Backup Server No
act_editdnsplan POST 1/0 Edit DNS Plan No
act_editemailtemps POST 1/0 Edit Email Templates No
act_editfirewall POST 1/0 Edit Firewall No
act_editippool POST 1/0 Edit IP Pool No
act_editips POST 1/0 Edit IPs No
act_editiso POST 1/0 Edit ISO No
act_editmg POST 1/0 Edit Media Group No
act_editpdns POST 1/0 Edit PDNS No
act_editplan POST 1/0 Edit Plan No
act_editserver POST 1/0 Edit Server No
act_editsg POST 1/0 Edit Server Group No
act_editssl POST 1/0 Edit SSL No
act_edittemplate POST 1/0 Edit Template No
act_edituser POST 1/0 Edit User No
act_editvs POST 1/0 Edit VPS No
act_emailsettings POST 1/0 Edit Email Settings No
act_emailtemps POST 1/0 View email templates No
act_filemanager POST 1/0 Access File Manager No
act_hostname POST 1/0 View Hostname No
act_importvs POST 1/0 Import VS No
act_ippool POST 1/0 View IP Pools No
act_iptables POST 1/0 Restart IP Tables No
act_kernconfig POST 1/0 Edit Kernel Config No
act_licenseinfo POST 1/0 View License Info No
act_listips POST 1/0 View IPs No
act_listiso POST 1/0 View ISO No
act_listvs POST 1/0 View VPS No
act_loginlogs POST 1/0 View Login Logs No
act_logs POST 1/0 View Logs No
act_maintenance POST 1/0 Maintenance Mode No
act_managepdns POST 1/0 Manage DNS Servers No
act_migrate POST 1/0 Migrate Virtual Server No
act_mysqld POST 1/0 Restart MySQL No
act_network POST 1/0 Restart network service No
act_os POST 1/0 View Template Browser No
act_ostemplates POST 1/0 View Templates No
act_pdns POST 1/0 View DNS Servers No
act_performdatabackup POST 1/0 Perform DB Backups No
act_phpmyadmin POST 1/0 Access PhpMyAdmin No
act_plans POST 1/0 View Plans No
act_procs POST 1/0 Manage processes No
act_rebootserver POST 1/0 Reboot Server No
act_rebuildvs POST 1/0 Rebuild Virtual Server No
act_restorevpsbackup POST 1/0 Restore VPS Backups No
act_sendmail POST 1/0 Restart mail server No
act_server_statistics POST 1/0 View Server Statistics No
act_serverinfo POST 1/0 View Server Info No
act_servers POST 1/0 View Servers No
act_services POST 1/0 Manage services No
act_sg POST 1/0 View Server Groups No
act_ssh POST 1/0 Access SSH No
act_ssl POST 1/0 Access SSL No
act_suspendvs POST 1/0 Suspend Virtual Server No
act_unsuspendvs POST 1/0 Unsuspend Virtual Server No
act_updates POST 1/0 Perform Updates No
act_userlogs POST 1/0 View User logs No
act_users POST 1/0 View Users No
act_vpsbackups POST 1/0 View VPS Backups No
act_vpsbackupsettings POST 1/0 Edit VPS Backup Settings No
act_vpsvnc POST 1/0 Virtual Server VNC No
act_vsresources POST 1/0 View VPS Resources No
act_webserver POST 1/0 Restart webserver No
deletelogs POST 1/0 Delete logs No

Administrator ACL

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post['reslen'] = 10;

    $output = $admin->admin_acl($post);
    print_r(json_encode($output));

?>

Result:The above code will produce the following output

{
    "title": "Administrator Access Control List",
    "acls": {
        "1": {
            "aclid": "1",
            "acl_name": "test1",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "1",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "1",
            "act_deliplogs": "1",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "23": {
            "aclid": "23",
            "acl_name": "alrights",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "0",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "0",
            "act_deliplogs": "0",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "34": {
            "aclid": "34",
            "acl_name": "279test",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "0",
            "act_vs": "1",
            "act_vsresources": "0",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "0",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "1",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "0",
            "act_deliplogs": "0",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "35": {
            "aclid": "35",
            "acl_name": "Distro Acl Test",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "1",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "1",
            "act_deliplogs": "1",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "36": {
            "aclid": "36",
            "acl_name": "DistroACL",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "1",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "1",
            "act_deliplogs": "1",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "37": {
            "aclid": "37",
            "acl_name": "ACL1",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "1",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "1",
            "act_deliplogs": "1",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "38": {
            "aclid": "38",
            "acl_name": "alrights",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "0",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "0",
            "act_deliplogs": "0",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "39": {
            "aclid": "39",
            "acl_name": "test",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "1",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "0",
            "act_deliplogs": "0",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "40": {
            "aclid": "40",
            "acl_name": "test_acl",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "1",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "0",
            "act_deliplogs": "0",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        },
        "41": {
            "aclid": "41",
            "acl_name": "alrights",
            "act_cluster_statistics": "1",
            "act_cluster_resources": "0",
            "act_statistics": "0",
            "act_server_statistics": "1",
            "act_vs": "1",
            "act_vsresources": "1",
            "act_editvs": "1",
            "act_suspendvs": "1",
            "act_unsuspendvs": "1",
            "act_deletevs": "1",
            "act_startvs": "0",
            "act_stopvs": "0",
            "act_restartvs": "0",
            "act_poweroffvs": "0",
            "act_addvs": "1",
            "act_rebuildvs": "1",
            "act_vnc": "1",
            "act_migrate": "1",
            "act_ippool": "1",
            "act_editippool": "1",
            "act_deleteippool": "1",
            "act_addippool": "1",
            "act_ips": "1",
            "act_editips": "1",
            "act_deleteips": "1",
            "act_addips": "1",
            "act_servers": "1",
            "act_addserver": "1",
            "act_editserver": "1",
            "act_deleteserver": "1",
            "act_rebootserver": "1",
            "act_sg": "1",
            "act_addsg": "1",
            "act_editsg": "1",
            "act_deletesg": "1",
            "act_vpsbackupsettings": "0",
            "act_restorevpsbackup": "1",
            "act_deletevpsbackup": "1",
            "act_vpsbackups": "1",
            "act_backupservers": "1",
            "act_editbackupservsers": "1",
            "act_addbackupserver": "1",
            "act_deletebackupserver": "1",
            "act_plans": "1",
            "act_addplan": "1",
            "act_editplan": "1",
            "act_deleteplan": "1",
            "act_dnsplans": "1",
            "act_adddnsplan": "1",
            "act_editdnsplan": "1",
            "act_deletednsplan": "1",
            "act_users": "1",
            "act_adduser": "1",
            "act_edituser": "1",
            "act_deleteuser": "1",
            "act_ostemplates": "1",
            "act_edittemplate": "1",
            "act_deletetemplate": "1",
            "act_os": "1",
            "act_addtemplate": "1",
            "act_createtemplate": "1",
            "act_iso": "1",
            "act_addiso": "1",
            "act_editiso": "1",
            "act_deleteiso": "1",
            "act_mg": "1",
            "act_addmg": "1",
            "act_editmg": "1",
            "act_deletemg": "1",
            "act_config": "1",
            "act_emailsettings": "1",
            "act_databackup": "1",
            "act_performdatabackup": "1",
            "act_dldatabackup": "1",
            "act_deletedatabackup": "1",
            "act_adminacl": "1",
            "act_add_admin_acl": "1",
            "act_edit_admin_acl": "1",
            "act_delete_admin_acl": "1",
            "act_serverinfo": "1",
            "act_licenseinfo": "1",
            "act_hostname": "1",
            "act_changehostname": "1",
            "act_maintenance": "1",
            "act_kernconfig": "1",
            "act_defaultvsconf": "1",
            "act_updates": "1",
            "act_emailtemps": "1",
            "act_editemailtemps": "1",
            "act_phpmyadmin": "1",
            "act_pdns": "1",
            "act_addpdns": "1",
            "act_editpdns": "1",
            "act_deletepdns": "1",
            "act_rdns": "1",
            "act_managepdns": "1",
            "act_importvs": "1",
            "act_ssl": "1",
            "act_editssl": "1",
            "act_createssl": "1",
            "act_firewall": "1",
            "act_procs": "1",
            "act_services": "1",
            "act_webserver": "1",
            "act_network": "1",
            "act_sendmail": "1",
            "act_mysqld": "1",
            "act_iptables": "1",
            "act_filemanager": "1",
            "act_ssh": "1",
            "act_logs": "1",
            "act_userlogs": "1",
            "act_loginlogs": "1",
            "act_deletelogs": "1",
            "act_deleteloginlogs": "1",
            "act_deleteuserlogs": "1",
            "act_recipes": "1",
            "act_addrecipe": "1",
            "act_editrecipe": "1",
            "act_iplogs": "0",
            "act_deliplogs": "0",
            "act_list_distros": "0",
            "act_add_distro": "0",
            "act_suspend_user": "0",
            "act_unsuspend_user": "0"
        }
    },
    "timenow": "1480056130",
    "time_taken": "0.085"
}

HTTP Request

https://hostname:4085/index.php?act=admin_acl

Parameters

Name Type Value Description Required
act GET admin_acl The action will return a list of the admin ACL Yes
reslen POST Int Specifies length of the result to be returned No

Edit Acl

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['aclid'] = 50;
    $post['edit_admin_acl'] = 1;
    $post['name'] = 'test_api_acl';
    $post['act_add_admin_acl'] = 1;
    $post['act_addbackupserver'] = 1;
    $post['act_adddnsplan'] = 0;

    $output = $admin->edit_admin_acl($post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Edit Administrator ACL",
    "done": "true",
    "timenow": "1480060578",
    "time_taken": "0.113"
}

HTTP Request

https://hostname:4085/index.php?act=edit_admin_acl&aclid=ACLID

Parameters

Name Type Value Description Required
act GET edit_admin_acl The acl list will be returned after performing the execution Yes
aclid GET Int The acl that needs to be edited Yes
edit_admin_acl POST 1/0 If set then the acl will be edited Yes
name POST name Name of the Plan No
act_add_admin_acl POST 1/0 Add Admin ACL No
act_addbackupserver POST 1/0 Add Backup Server No
act_adddnsplan POST 1/0 Add DNS Plan No
act_addips POST 1/0 Add IPs No
act_addiso POST 1/0 Add ISOs No
act_addmg POST 1/0 Add Media Groups No
act_addpdns POST 1/0 Add PDNS No
act_addplan POST 1/0 Add Plans No
act_addreversedns POST 1/0 Add rDNS No
act_addserver POST 1/0 Add Slave Server No
act_addsg POST 1/0 Add Server Groups No
act_addtemplate POST 1/0 Add Templates No
act_adduser POST 1/0 Add Users No
act_adminacl POST 1/0 View Admin ACLs No
act_backupservers POST 1/0 View Backup Servers No
act_changehostname POST 1/0 Edit Hostname No
act_cluster_statistics POST 1/0 View Cluster Statistics No
act_config POST 1/0 Edit General Settings No
act_createssl POST 1/0 Create SSL No
act_createtemplate POST 1/0 Create Template No
act_createvs POST 1/0 Create VPS No
act_databackup POST 1/0 View DB Backups No
act_defaultvsconf POST 1/0 Default VPS Config No
act_delete_admin_acl POST 1/0 Delete Admin ACL No
act_deletebackupserver POST 1/0 Delete Backup Server No
act_deletedatabackup POST 1/0 Delete Data Backup No
act_deletednsplan POST 1/0 Delete DNS Plan No
act_deleteippool POST 1/0 Delete IP Pool No
act_deleteips POST 1/0 Delete IPs No
act_deleteiso POST 1/0 Delete ISO No
act_deleteloginlogs POST 1/0 Delete Login Logs No
act_deletemg POST 1/0 Delete Media Group No
act_deletepdns POST 1/0 Delete PDNS No
act_deleteplan POST 1/0 Delete Plans No
act_deleteserver POST 1/0 Delete Server No
act_deletesg POST 1/0 Delete Server Group No
act_deletetemplate POST 1/0 Delete Template No
act_deleteuser POST 1/0 Delete User No
act_deleteuserlogs POST 1/0 Delete User Log No
act_deletevpsbackup POST 1/0 Delete VPS Backup No
act_deletevs POST 1/0 Delete VPS No
act_dldatabackup POST 1/0 Download DB Backups No
act_dnsplans POST 1/0 View DNS Plans No
act_edit_admin_acl POST 1/0 Edit Admin ACL No
act_editbackupservsers POST 1/0 Edit Backup Server No
act_editdnsplan POST 1/0 Edit DNS Plan No
act_editemailtemps POST 1/0 Edit Email Templates No
act_editfirewall POST 1/0 Edit Firewall No
act_editippool POST 1/0 Edit IP Pool No
act_editips POST 1/0 Edit IPs No
act_editiso POST 1/0 Edit ISO No
act_editmg POST 1/0 Edit Media Group No
act_editpdns POST 1/0 Edit PDNS No
act_editplan POST 1/0 Edit Plan No
act_editserver POST 1/0 Edit Server No
act_editsg POST 1/0 Edit Server Group No
act_editssl POST 1/0 Edit SSL No
act_edittemplate POST 1/0 Edit Template No
act_edituser POST 1/0 Edit User No
act_editvs POST 1/0 Edit VPS No
act_emailsettings POST 1/0 Edit Email Settings No
act_emailtemps POST 1/0 View email templates No
act_filemanager POST 1/0 Access File Manager No
act_hostname POST 1/0 View Hostname No
act_importvs POST 1/0 Import VS No
act_ippool POST 1/0 View IP Pools No
act_iptables POST 1/0 Restart IP Tables No
act_kernconfig POST 1/0 Edit Kernel Config No
act_licenseinfo POST 1/0 View License Info No
act_listips POST 1/0 View IPs No
act_listiso POST 1/0 View ISO No
act_listvs POST 1/0 View VPS No
act_loginlogs POST 1/0 View Login Logs No
act_logs POST 1/0 View Logs No
act_maintenance POST 1/0 Maintenance Mode No
act_managepdns POST 1/0 Manage DNS Servers No
act_migrate POST 1/0 Migrate Virtual Server No
act_mysqld POST 1/0 Restart MySQL No
act_network POST 1/0 Restart network service No
act_os POST 1/0 View Template Browser No
act_ostemplates POST 1/0 View Templates No
act_pdns POST 1/0 View DNS Servers No
act_performdatabackup POST 1/0 Perform DB Backups No
act_phpmyadmin POST 1/0 Access PhpMyAdmin No
act_plans POST 1/0 View Plans No
act_procs POST 1/0 Manage processes No
act_rebootserver POST 1/0 Reboot Server No
act_rebuildvs POST 1/0 Rebuild Virtual Server No
act_restorevpsbackup POST 1/0 Restore VPS Backups No
act_sendmail POST 1/0 Restart mail server No
act_server_statistics POST 1/0 View Server Statistics No
act_serverinfo POST 1/0 View Server Info No
act_servers POST 1/0 View Servers No
act_services POST 1/0 Manage services No
act_sg POST 1/0 View Server Groups No
act_ssh POST 1/0 Access SSH No
act_ssl POST 1/0 Access SSL No
act_suspendvs POST 1/0 Suspend Virtual Server No
act_unsuspendvs POST 1/0 Unsuspend Virtual Server No
act_updates POST 1/0 Perform Updates No
act_userlogs POST 1/0 View User logs No
act_users POST 1/0 View Users No
act_vpsbackups POST 1/0 View VPS Backups No
act_vpsbackupsettings POST 1/0 Edit VPS Backup Settings No
act_vpsvnc POST 1/0 Virtual Server VNC No
act_vsresources POST 1/0 View VPS Resources No
act_webserver POST 1/0 Restart webserver No
deletelogs POST 1/0 Delete logs No

Delete Administrator Acl

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post['delete'] = 44;

    $output = $admin->admin_acl($post);
    print_r(json_encode($output));

?>

Result : The above code will produce the following output

{
    "title": "Administrator Access Control List",
    "done": ["46"],
    "acls": "null",
    "timenow": "1480058213",
    "time_taken": "0.106"
}

HTTP Request

https://hostname:4085/index.php?act=admin_acl

Parameters

Name Type Value Description Required
act GET admin_acl The action returns list of Admin ACL after deletion Yes
delete POST Int Delete the admin acl using id Yes

Media

OS Templates

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->ostemplates();
    print_r(json_encode($output));

?>

Result: The above code produces the following output

{
    "title": "OS Templates",
    "oslist": {
        "openvz": {
            "centos": {
                "117": {
                    "osid": "117",
                    "type": "openvz",
                    "name": "centos-6-x86_64",
                    "filename": "centos-6-x86_64.tar.gz",
                    "size": "229692743",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "0",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=117",
                    "distro": "centos",
                    "Nvirt": "openvz"
                },
                "361": {
                    "osid": "361",
                    "type": "openvz",
                    "name": "centos-6-x86-minimal",
                    "filename": "centos-6-x86-minimal.tar.gz",
                    "size": "108992571",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "0",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=361",
                    "distro": "centos",
                    "Nvirt": "openvz"
                },
                "100077": {
                    "type": "openvz",
                    "fstype": "ext3",
                    "url": "https:\/\/download.openvz.org\/template\/precreated\/centos-6-x86-minimal.tar.gz",
                    "filename": "centos-7-x86_64-minimal",
                    "name": "centos-7-x86_64-minimal",
                    "size": 125431402,
                    "distro": "centos",
                    "Nvirt": "openvz"
                },
                "100096": {
                    "type": "openvz",
                    "fstype": "ext3",
                    "url": "",
                    "filename": "centos-5-x86_64.tar.gz",
                    "name": "centos-5-x86_64",
                    "size": 198019852,
                    "distro": "centos",
                    "Nvirt": "openvz"
                }
            }
        },
        "kvm": {
            "ubuntu": {
                "212": {
                    "osid": "212",
                    "type": "kvm",
                    "name": "ubuntu-13.04-x86",
                    "filename": "ubuntu-13.04-x86.img",
                    "size": "1074855936",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "1",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=212",
                    "distro": "ubuntu",
                    "Nvirt": "kvm"
                },
                "100067": {
                    "type": "kvm",
                    "fstype": "ext3",
                    "perf_ops": true,
                    "url": "https:\/\/cloud-images.ubuntu.com\/releases\/16.04\/release\/ubuntu-16.04-server-cloudimg-amd64-disk1.img",
                    "filename": "ubuntu-16.04-server-cloudimg-amd64-disk1.img",
                    "name": "ubuntu-16.04-server-cloudimg-amd64-disk1.img",
                    "size": 309264384,
                    "distro": "ubuntu",
                    "Nvirt": "kvm"
                },
                "100083": {
                    "type": "kvm",
                    "url": "",
                    "filename": "ubuntu-16.04-x86_64",
                    "name": "ubuntu-16.04-x86_64",
                    "fstype": "ext3",
                    "perf_ops": true,
                    "size": 2147483648,
                    "distro": "ubuntu",
                    "Nvirt": "kvm"
                }
            },
            "centos": {
                "272": {
                    "osid": "272",
                    "type": "kvm",
                    "name": "centos-6.5-x86_64",
                    "filename": "centos-6.5-x86_64.img",
                    "size": "1074855936",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "1",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=272",
                    "distro": "centos",
                    "Nvirt": "kvm"
                },
                "334": {
                    "osid": "334",
                    "type": "kvm",
                    "name": "centos-7.0-x86_64",
                    "filename": "centos-7.0-x86_64.img",
                    "size": "1291845632",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "1",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=334",
                    "distro": "centos",
                    "Nvirt": "kvm",
                    "mg": [16]
                },
                "347": {
                    "osid": "347",
                    "type": "kvm",
                    "name": "centos-6.6-x86_64",
                    "filename": "centos-6.6-x86_64.img",
                    "size": "1074855936",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "1",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=347",
                    "distro": "centos",
                    "Nvirt": "kvm"
                },
                "381": {
                    "osid": "381",
                    "type": "kvm",
                    "name": "centos-7.1-x86_64",
                    "filename": "centos-7.1-x86_64.img",
                    "size": "1074855936",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "1",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=381",
                    "distro": "centos",
                    "Nvirt": "kvm"
                },
                "100097": {
                    "type": "kvm",
                    "url": "",
                    "filename": "centos-7.0-x86_64-new.img",
                    "name": "centos-7.0-x86_64-new.img",
                    "fstype": "ext3",
                    "perf_ops": true,
                    "size": 1610612736,
                    "distro": "centos",
                    "mg": [21],
                    "Nvirt": "kvm"
                },
                "100098": {
                    "type": "kvm",
                    "url": "",
                    "filename": "centos-7.1-x86_64-new.img",
                    "name": "centos-7.1-x86_64-new.img",
                    "fstype": "ext3",
                    "perf_ops": true,
                    "size": 1610612736,
                    "distro": "centos",
                    "mg": [21],
                    "Nvirt": "kvm"
                },
                "100099": {
                    "type": "kvm",
                    "url": "",
                    "filename": "centos-7.2-x86_64.img",
                    "name": "centos-7.2-x86_64.img",
                    "fstype": "ext3",
                    "perf_ops": true,
                    "size": 1610612736,
                    "distro": "centos",
                    "mg": [21],
                    "Nvirt": "kvm"
                },
                "100100": {
                    "type": "kvm",
                    "url": "",
                    "filename": "centos-6.6-x86_64-new.img",
                    "name": "centos-6.6-x86_64-new.img",
                    "fstype": "ext3",
                    "perf_ops": true,
                    "size": 1207959552,
                    "distro": "centos",
                    "mg": [21],
                    "Nvirt": "kvm"
                },
                "100101": {
                    "type": "kvm",
                    "url": "",
                    "filename": "centos-6.8-x86_64.img",
                    "name": "centos-6.8-x86_64.img",
                    "fstype": "ext3",
                    "perf_ops": true,
                    "size": 1308622848,
                    "distro": "centos",
                    "mg": [21],
                    "Nvirt": "kvm"
                }
            },
            "debian": {
                "399": {
                    "osid": "399",
                    "type": "kvm",
                    "name": "debian-8.0-x86_64",
                    "filename": "debian-8.0-x86_64.img",
                    "size": "1073741824",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "1",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=399",
                    "distro": "debian",
                    "Nvirt": "kvm"
                }
            },
            "others": {
                "100065": {
                    "type": "kvm",
                    "filename": "92_openvz_abhi.img",
                    "name": "92_openvz_abhi",
                    "url": "",
                    "size": 6442450944,
                    "fstype": "ext3",
                    "perf_ops": true,
                    "distro": "others",
                    "Nvirt": "kvm"
                },
                "100102": {
                    "type": "kvm",
                    "filename": "testelastixcentos7.img",
                    "name": "testelastixcentos7",
                    "url": "",
                    "size": 5368709120,
                    "fstype": "ext3",
                    "perf_ops": true,
                    "distro": "others",
                    "Nvirt": "kvm"
                }
            },
            "windows": {
                "100104": {
                    "type": "kvm",
                    "fstype": "ext3",
                    "url": "",
                    "filename": "windows-2012server.img",
                    "name": "windows-2012server.img",
                    "size": 10737418240,
                    "distro": "windows",
                    "Nvirt": "kvm"
                }
            }
        },
        "lxc": {
            "centos": {
                "423": {
                    "osid": "423",
                    "type": "lxc",
                    "name": "centos-6-x86_64",
                    "filename": "centos-6-x86_64.tar.gz",
                    "size": "136257473",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "0",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=423",
                    "distro": "centos",
                    "Nvirt": "lxc"
                },
                "425": {
                    "osid": "425",
                    "type": "lxc",
                    "name": "centos-7-x86_64",
                    "filename": "centos-7-x86_64.tar.gz",
                    "size": "157722893",
                    "pygrub": "0",
                    "drive": "",
                    "hvm": "0",
                    "perf_ops": "0",
                    "active": "1",
                    "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=425",
                    "distro": "centos",
                    "Nvirt": "lxc"
                }
            }
        }
    },
    "mgs": {
        "16": {
            "mgid": "16",
            "mg_name": "just another kvm mg",
            "mg_desc": "aise hi tp re",
            "mg_type": "kvm"
        },
        "21": {
            "mgid": "21",
            "mg_name": "Jevin",
            "mg_desc": "DND",
            "mg_type": "kvm"
        }
    },
    "timenow": "1480160029",
    "time_taken": "0.129"
}

HTTP Request

https://hostname:4085/index.php?act=ostemplates

Parameters

Name Type Value Description Required
act GET ostemplates The action will return the ostemplate added Yes

Delete Os Templates

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');
    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post['delete'] = 262;
    $output = $admin->delostemplates($post);    
    print_r(json_encode($output));
?>

Result: The above code will produce the following output


{
    "title": "OS Templates",
    "done": [
        262
    ],
    "ostemplates": {
        "20": {
            "osid": "20",
            "type": "xen",
            "name": "centos-5.5-x86_64",
            "filename": "centos-5.5-x86_64.tar.gz",
            "size": "209697014",
            "pygrub": "0",
            "drive": "",
            "hvm": "0",
            "perf_ops": "0",
            "active": "1",
            "url": "http://files.virtualizor.com/ostemplates.php?osid=20",
            "distro": "centos",
            "Nvirt": "xen"
        },
        "268": {
            "osid": "268",
            "type": "xen",
            "name": "centos-6.5-x86_64",
            "filename": "centos-6.5-x86_64.tar.gz",
            "size": "215894653",
            "pygrub": "1",
            "drive": "xvda",
            "hvm": "0",
            "perf_ops": "0",
            "active": "1",
            "url": "http://files.virtualizor.com/ostemplates.php?osid=268",
            "distro": "centos",
            "Nvirt": "xen"
        },
        "333": {
            "osid": "333",
            "type": "xen",
            "name": "centos-7.0-x86_64",
            "filename": "centos-7.0-x86_64.tar.gz",
            "size": "305187008",
            "pygrub": "1",
            "drive": "xvda",
            "hvm": "0",
            "perf_ops": "0",
            "active": "1",
            "url": "http://files.virtualizor.com/ostemplates.php?osid=333",
            "distro": "centos",
            "Nvirt": "xen",
            "mg": [
                4
            ]
        },
        "348": {
            "osid": "348",
            "type": "xen",
            "name": "centos-6.6-x86_64",
            "filename": "centos-6.6-x86_64.img",
            "size": "1074855936",
            "pygrub": "0",
            "drive": "",
            "hvm": "1",
            "perf_ops": "1",
            "active": "1",
            "url": "http://files.virtualizor.com/ostemplates.php?osid=348",
            "distro": "centos",
            "Nvirt": "xenhvm",
            "mg": [
                1
            ]
        },
        "380": {
            "osid": "380",
            "type": "xen",
            "name": "centos-7.1-x86_64",
            "filename": "centos-7.1-x86_64.img",
            "size": "1074855936",
            "pygrub": "0",
            "drive": "",
            "hvm": "1",
            "perf_ops": "1",
            "active": "1",
            "url": "http://files.virtualizor.com/ostemplates.php?osid=380",
            "distro": "centos",
            "Nvirt": "xenhvm",
            "mg": [
                3
            ]
        },
        "100001": {
            "type": "xen",
            "url": "https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-root.tar.gz",
            "filename": "ubuntu-16.04-server-cloudimg-amd64-root.tar.gz",
            "name": "ubuntu-16.04-server-cloudimg-amd64-root",
            "pygrub": true,
            "fstype": "ext3",
            "drive": "ext3",
            "size": 232341973,
            "distro": "ubuntu",
            "mg": [
                2
            ],
            "Nvirt": "xen"
        },
        "100002": {
            "type": "xen",
            "hvm": 1,
            "fstype": "ext3",
            "url": "",
            "filename": "windows-2003-x86.img",
            "name": "windows-2003-x86.img",
            "size": 5368709120,
            "distro": "others",
            "Nvirt": "xenhvm"
        },
        "100003": {
            "type": "xen",
            "hvm": 1,
            "url": "",
            "filename": "windows-2008r2.img",
            "name": "windows-2008r2.img",
            "fstype": "ext3",
            "size": 10737418240,
            "distro": "others",
            "mg": [
                3
            ],
            "Nvirt": "xenhvm"
        },
        "100004": {
            "type": "xen",
            "url": "",
            "filename": "testpvtemplate1.tar.gz",
            "name": "testpvtemplate1",
            "fstype": "ext4",
            "drive": "xvda",
            "size": 215873349,
            "distro": "others",
            "Nvirt": "xen"
        }
    }
}

HTTP Request

https://hostname:4085/index.php?act=ostemplates&delete=OSID

Parameters

Name Type Value Description Required
act GET ostemplates The action will return the ostemplate added Yes
delete GET Int The action will delete the os template, pass an array to delete multiple templates Yes

Template Browser

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->os(); 
    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "1": {
        "osid": "1",
        "type": "openvz",
        "name": "centos-4-x86",
        "filename": "centos-4-x86.tar.gz",
        "size": "158628685",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=1",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "2": {
        "osid": "2",
        "type": "openvz",
        "name": "centos-4-x86_64",
        "filename": "centos-4-x86_64.tar.gz",
        "size": "172018026",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=2",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "3": {
        "osid": "3",
        "type": "openvz",
        "name": "centos-5-x86",
        "filename": "centos-5-x86.tar.gz",
        "size": "182778727",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=3",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "4": {
        "osid": "4",
        "type": "openvz",
        "name": "centos-5-x86_64",
        "filename": "centos-5-x86_64.tar.gz",
        "size": "197978185",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=4",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "5": {
        "osid": "5",
        "type": "openvz",
        "name": "debian-4.0-x86",
        "filename": "debian-4.0-x86.tar.gz",
        "size": "117087334",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=5",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "6": {
        "osid": "6",
        "type": "openvz",
        "name": "debian-4.0-x86_64",
        "filename": "debian-4.0-x86_64.tar.gz",
        "size": "141572456",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=6",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "7": {
        "osid": "7",
        "type": "openvz",
        "name": "debian-5.0-x86",
        "filename": "debian-5.0-x86.tar.gz",
        "size": "138538999",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=7",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "8": {
        "osid": "8",
        "type": "openvz",
        "name": "debian-5.0-x86_64",
        "filename": "debian-5.0-x86_64.tar.gz",
        "size": "140102449",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=8",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "9": {
        "osid": "9",
        "type": "openvz",
        "name": "fedora-12-x86",
        "filename": "fedora-12-x86.tar.gz",
        "size": "201580171",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=9",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "10": {
        "osid": "10",
        "type": "openvz",
        "name": "fedora-12-x86_64",
        "filename": "fedora-12-x86_64.tar.gz",
        "size": "206274188",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=10",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "11": {
        "osid": "11",
        "type": "openvz",
        "name": "fedora-13-x86",
        "filename": "fedora-13-x86.tar.gz",
        "size": "202154558",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=11",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "12": {
        "osid": "12",
        "type": "openvz",
        "name": "fedora-13-x86_64",
        "filename": "fedora-13-x86_64.tar.gz",
        "size": "209650900",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=12",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "13": {
        "osid": "13",
        "type": "openvz",
        "name": "suse-11.1-x86",
        "filename": "suse-11.1-x86.tar.gz",
        "size": "173145037",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=13",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "14": {
        "osid": "14",
        "type": "openvz",
        "name": "suse-11.1-x86_64",
        "filename": "suse-11.1-x86_64.tar.gz",
        "size": "177508627",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=14",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "15": {
        "osid": "15",
        "type": "openvz",
        "name": "ubuntu-9.10-x86",
        "filename": "ubuntu-9.10-x86.tar.gz",
        "size": "130441013",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=15",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "16": {
        "osid": "16",
        "type": "openvz",
        "name": "ubuntu-9.10-x86_64",
        "filename": "ubuntu-9.10-x86_64.tar.gz",
        "size": "132656455",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=16",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "17": {
        "osid": "17",
        "type": "openvz",
        "name": "ubuntu-10.04-x86",
        "filename": "ubuntu-10.04-x86.tar.gz",
        "size": "139776520",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=17",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "18": {
        "osid": "18",
        "type": "openvz",
        "name": "ubuntu-10.04-x86_64",
        "filename": "ubuntu-10.04-x86_64.tar.gz",
        "size": "143950633",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=18",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "19": {
        "osid": "19",
        "type": "xen",
        "name": "centos-5.5-x86",
        "filename": "centos-5.5-x86.tar.gz",
        "size": "174966870",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=19",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "20": {
        "osid": "20",
        "type": "xen",
        "name": "centos-5.5-x86_64",
        "filename": "centos-5.5-x86_64.tar.gz",
        "size": "209697014",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=20",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "21": {
        "osid": "21",
        "type": "xen",
        "name": "debian-5.0-x86",
        "filename": "debian-5.0-x86.tar.gz",
        "size": "187453910",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=21",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "22": {
        "osid": "22",
        "type": "xen",
        "name": "debian-5.0-x86_64",
        "filename": "debian-5.0-x86_64.tar.gz",
        "size": "179045408",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=22",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "23": {
        "osid": "23",
        "type": "xen",
        "name": "fedora-13-x86",
        "filename": "fedora-13-x86.tar.gz",
        "size": "174624590",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=23",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "24": {
        "osid": "24",
        "type": "xen",
        "name": "fedora-13-x86_64",
        "filename": "fedora-13-x86_64.tar.gz",
        "size": "292624536",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=24",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "25": {
        "osid": "25",
        "type": "xen",
        "name": "suse-11.3-x86",
        "filename": "suse-11.3-x86.tar.gz",
        "size": "292912416",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=25",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "26": {
        "osid": "26",
        "type": "xen",
        "name": "suse-11.3-x86_64",
        "filename": "suse-11.3-x86_64.tar.gz",
        "size": "267053908",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=26",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "27": {
        "osid": "27",
        "type": "xen",
        "name": "ubuntu-10.10-x86",
        "filename": "ubuntu-10.10-x86.tar.gz",
        "size": "238002820",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=27",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "28": {
        "osid": "28",
        "type": "xen",
        "name": "ubuntu-10.10-x86_64",
        "filename": "ubuntu-10.10-x86_64.tar.gz",
        "size": "230360413",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=28",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "29": {
        "osid": "29",
        "type": "xen",
        "name": "centos-5.5-x86",
        "filename": "centos-5.5-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=29",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "30": {
        "osid": "30",
        "type": "xen",
        "name": "centos-5.5-x86_64",
        "filename": "centos-5.5-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=30",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "31": {
        "osid": "31",
        "type": "xen",
        "name": "debian-5.0-x86",
        "filename": "debian-5.0-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=31",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "32": {
        "osid": "32",
        "type": "xen",
        "name": "debian-5.0-x86_64",
        "filename": "debian-5.0-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=32",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "33": {
        "osid": "33",
        "type": "xen",
        "name": "fedora-13-x86",
        "filename": "fedora-13-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=33",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "34": {
        "osid": "34",
        "type": "xen",
        "name": "fedora-13-x86_64",
        "filename": "fedora-13-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=34",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "35": {
        "osid": "35",
        "type": "xen",
        "name": "suse-11.3-x86",
        "filename": "suse-11.3-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=35",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "36": {
        "osid": "36",
        "type": "xen",
        "name": "suse-11.3-x86_64",
        "filename": "suse-11.3-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=36",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "37": {
        "osid": "37",
        "type": "xen",
        "name": "ubuntu-10.10-x86",
        "filename": "ubuntu-10.10-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=37",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "38": {
        "osid": "38",
        "type": "xen",
        "name": "ubuntu-10.10-x86_64",
        "filename": "ubuntu-10.10-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=38",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "39": {
        "osid": "39",
        "type": "kvm",
        "name": "centos-5.5-x86",
        "filename": "centos-5.5-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=39",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "40": {
        "osid": "40",
        "type": "kvm",
        "name": "centos-5.5-x86_64",
        "filename": "centos-5.5-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=40",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "41": {
        "osid": "41",
        "type": "kvm",
        "name": "debian-5.0-x86",
        "filename": "debian-5.0-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=41",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "42": {
        "osid": "42",
        "type": "kvm",
        "name": "debian-5.0-x86_64",
        "filename": "debian-5.0-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=42",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "43": {
        "osid": "43",
        "type": "kvm",
        "name": "fedora-13-x86",
        "filename": "fedora-13-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=43",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "44": {
        "osid": "44",
        "type": "kvm",
        "name": "fedora-13-x86_64",
        "filename": "fedora-13-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=44",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "45": {
        "osid": "45",
        "type": "kvm",
        "name": "suse-11.3-x86",
        "filename": "suse-11.3-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=45",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "46": {
        "osid": "46",
        "type": "kvm",
        "name": "suse-11.3-x86_64",
        "filename": "suse-11.3-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=46",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "47": {
        "osid": "47",
        "type": "kvm",
        "name": "ubuntu-10.10-x86",
        "filename": "ubuntu-10.10-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=47",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "48": {
        "osid": "48",
        "type": "kvm",
        "name": "ubuntu-10.10-x86_64",
        "filename": "ubuntu-10.10-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=48",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "49": {
        "osid": "49",
        "type": "xen",
        "name": "centos-6.0-x86",
        "filename": "centos-6.0-x86.tar.gz",
        "size": "193307328",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=49",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "50": {
        "osid": "50",
        "type": "xen",
        "name": "centos-6.0-x86_64",
        "filename": "centos-6.0-x86_64.tar.gz",
        "size": "169944162",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=50",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "51": {
        "osid": "51",
        "type": "xen",
        "name": "centos-6.2-x86",
        "filename": "centos-6.2-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=51",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "52": {
        "osid": "52",
        "type": "xen",
        "name": "centos-6.2-x86_64",
        "filename": "centos-6.2-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=52",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "53": {
        "osid": "53",
        "type": "kvm",
        "name": "centos-6.2-x86",
        "filename": "centos-6.2-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=53",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "54": {
        "osid": "54",
        "type": "kvm",
        "name": "centos-6.2-x86_64",
        "filename": "centos-6.2-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=54",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "55": {
        "osid": "55",
        "type": "xen",
        "name": "ubuntu-10.04-x86",
        "filename": "ubuntu-10.04-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=55",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "56": {
        "osid": "56",
        "type": "xen",
        "name": "ubuntu-10.04-x86_64",
        "filename": "ubuntu-10.04-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=56",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "57": {
        "osid": "57",
        "type": "kvm",
        "name": "ubuntu-10.04-x86",
        "filename": "ubuntu-10.04-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=57",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "58": {
        "osid": "58",
        "type": "kvm",
        "name": "ubuntu-10.04-x86_64",
        "filename": "ubuntu-10.04-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=58",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "59": {
        "osid": "59",
        "type": "openvz",
        "name": "debian-6.0-x86",
        "filename": "debian-6.0-x86.tar.gz",
        "size": "154773101",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=59",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "60": {
        "osid": "60",
        "type": "openvz",
        "name": "debian-6.0-x86_64",
        "filename": "debian-6.0-x86_64.tar.gz",
        "size": "157283366",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=60",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "63": {
        "osid": "63",
        "type": "openvz",
        "name": "suse-11.3-x86",
        "filename": "suse-11.3-x86.tar.gz",
        "size": "196405252",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=63",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "64": {
        "osid": "64",
        "type": "openvz",
        "name": "suse-11.3-x86_64",
        "filename": "suse-11.3-x86_64.tar.gz",
        "size": "200594873",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=64",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "65": {
        "osid": "65",
        "type": "openvz",
        "name": "suse-11.4-x86",
        "filename": "suse-11.4-x86.tar.gz",
        "size": "191959022",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=65",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "66": {
        "osid": "66",
        "type": "openvz",
        "name": "suse-11.4-x86_64",
        "filename": "suse-11.4-x86_64.tar.gz",
        "size": "196208953",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=66",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "67": {
        "osid": "67",
        "type": "openvz",
        "name": "ubuntu-8.04-x86",
        "filename": "ubuntu-8.04-x86.tar.gz",
        "size": "112793464",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=67",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "68": {
        "osid": "68",
        "type": "openvz",
        "name": "ubuntu-8.04-x86_64",
        "filename": "ubuntu-8.04-x86_64.tar.gz",
        "size": "115255948",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=68",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "69": {
        "osid": "69",
        "type": "openvz",
        "name": "ubuntu-10.10-x86",
        "filename": "ubuntu-10.10-x86.tar.gz",
        "size": "135123283",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=69",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "70": {
        "osid": "70",
        "type": "openvz",
        "name": "ubuntu-10.10-x86_64",
        "filename": "ubuntu-10.10-x86_64.tar.gz",
        "size": "141296656",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=70",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "71": {
        "osid": "71",
        "type": "openvz",
        "name": "ubuntu-11.04-x86",
        "filename": "ubuntu-11.04-x86.tar.gz",
        "size": "127076387",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=71",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "72": {
        "osid": "72",
        "type": "openvz",
        "name": "ubuntu-11.04-x86_64",
        "filename": "ubuntu-11.04-x86_64.tar.gz",
        "size": "133123735",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=72",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "73": {
        "osid": "73",
        "type": "openvz",
        "name": "ubuntu-11.10-x86",
        "filename": "ubuntu-11.10-x86.tar.gz",
        "size": "129047134",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=73",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "74": {
        "osid": "74",
        "type": "openvz",
        "name": "ubuntu-11.10-x86_64",
        "filename": "ubuntu-11.10-x86_64.tar.gz",
        "size": "130634950",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=74",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "75": {
        "osid": "75",
        "type": "xen",
        "name": "centos-6.2-x86",
        "filename": "centos-6.2-x86.tar.gz",
        "size": "225618604",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=75",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "76": {
        "osid": "76",
        "type": "xen",
        "name": "centos-6.2-x86_64",
        "filename": "centos-6.2-x86_64.tar.gz",
        "size": "230226499",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=76",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "77": {
        "osid": "77",
        "type": "xen",
        "name": "debian-6.0-x86",
        "filename": "debian-6.0-x86.tar.gz",
        "size": "180742277",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=77",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "78": {
        "osid": "78",
        "type": "xen",
        "name": "debian-6.0-x86_64",
        "filename": "debian-6.0-x86_64.tar.gz",
        "size": "184270099",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=78",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "79": {
        "osid": "79",
        "type": "xen",
        "name": "fedora-15-x86",
        "filename": "fedora-15-x86.tar.gz",
        "size": "163382030",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=79",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "80": {
        "osid": "80",
        "type": "xen",
        "name": "fedora-15-x86_64",
        "filename": "fedora-15-x86_64.tar.gz",
        "size": "164184835",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=80",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "81": {
        "osid": "81",
        "type": "xen",
        "name": "fedora-16-x86_64",
        "filename": "fedora-16-x86_64.tar.gz",
        "size": "189066170",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=81",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "82": {
        "osid": "82",
        "type": "xen",
        "name": "ubuntu-11.04-x86",
        "filename": "ubuntu-11.04-x86.tar.gz",
        "size": "202803482",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=82",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "83": {
        "osid": "83",
        "type": "xen",
        "name": "ubuntu-11.04-x86_64",
        "filename": "ubuntu-11.04-x86_64.tar.gz",
        "size": "209453980",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=83",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "84": {
        "osid": "84",
        "type": "xen",
        "name": "ubuntu-11.10-x86",
        "filename": "ubuntu-11.10-x86.tar.gz",
        "size": "233853586",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=84",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "85": {
        "osid": "85",
        "type": "xen",
        "name": "ubuntu-11.10-x86_64",
        "filename": "ubuntu-11.10-x86_64.tar.gz",
        "size": "254685473",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=85",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "86": {
        "osid": "86",
        "type": "xen",
        "name": "ubuntu-12.04-x86",
        "filename": "ubuntu-12.04-x86.tar.gz",
        "size": "198091247",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=86",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "87": {
        "osid": "87",
        "type": "xen",
        "name": "ubuntu-12.04-x86_64",
        "filename": "ubuntu-12.04-x86_64.tar.gz",
        "size": "210366142",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=87",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "88": {
        "osid": "88",
        "type": "kvm",
        "name": "centos-5.8-x86",
        "filename": "centos-5.8-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=88",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "89": {
        "osid": "89",
        "type": "kvm",
        "name": "centos-5.8-x86_64",
        "filename": "centos-5.8-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=89",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "90": {
        "osid": "90",
        "type": "kvm",
        "name": "fedora-15-x86",
        "filename": "fedora-15-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=90",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "91": {
        "osid": "91",
        "type": "kvm",
        "name": "fedora-15-x86_64",
        "filename": "fedora-15-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=91",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "92": {
        "osid": "92",
        "type": "kvm",
        "name": "fedora-16-x86",
        "filename": "fedora-16-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=92",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "93": {
        "osid": "93",
        "type": "kvm",
        "name": "fedora-16-x86_64",
        "filename": "fedora-16-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=93",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "94": {
        "osid": "94",
        "type": "kvm",
        "name": "debian-6.0-x86",
        "filename": "debian-6.0-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=94",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "95": {
        "osid": "95",
        "type": "kvm",
        "name": "debian-6.0-x86_64",
        "filename": "debian-6.0-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=95",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "96": {
        "osid": "96",
        "type": "kvm",
        "name": "ubuntu-11.04-x86",
        "filename": "ubuntu-11.04-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=96",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "97": {
        "osid": "97",
        "type": "kvm",
        "name": "ubuntu-11.04-x86_64",
        "filename": "ubuntu-11.04-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=97",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "98": {
        "osid": "98",
        "type": "kvm",
        "name": "ubuntu-11.10-x86",
        "filename": "ubuntu-11.10-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=98",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "99": {
        "osid": "99",
        "type": "kvm",
        "name": "ubuntu-11.10-x86_64",
        "filename": "ubuntu-11.10-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=99",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "100": {
        "osid": "100",
        "type": "kvm",
        "name": "ubuntu-12.04-x86",
        "filename": "ubuntu-12.04-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=100",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "101": {
        "osid": "101",
        "type": "kvm",
        "name": "ubuntu-12.04-x86_64",
        "filename": "ubuntu-12.04-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=101",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "102": {
        "osid": "102",
        "type": "xen",
        "name": "centos-5.8-x86",
        "filename": "centos-5.8-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=102",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "103": {
        "osid": "103",
        "type": "xen",
        "name": "centos-5.8-x86_64",
        "filename": "centos-5.8-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=103",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "104": {
        "osid": "104",
        "type": "xen",
        "name": "fedora-15-x86",
        "filename": "fedora-15-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=104",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "105": {
        "osid": "105",
        "type": "xen",
        "name": "fedora-15-x86_64",
        "filename": "fedora-15-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=105",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "106": {
        "osid": "106",
        "type": "xen",
        "name": "fedora-16-x86",
        "filename": "fedora-16-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=106",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "107": {
        "osid": "107",
        "type": "xen",
        "name": "fedora-16-x86_64",
        "filename": "fedora-16-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=107",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "108": {
        "osid": "108",
        "type": "xen",
        "name": "debian-6.0-x86",
        "filename": "debian-6.0-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=108",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "109": {
        "osid": "109",
        "type": "xen",
        "name": "debian-6.0-x86_64",
        "filename": "debian-6.0-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=109",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "110": {
        "osid": "110",
        "type": "xen",
        "name": "ubuntu-11.04-x86",
        "filename": "ubuntu-11.04-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=110",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "111": {
        "osid": "111",
        "type": "xen",
        "name": "ubuntu-11.04-x86_64",
        "filename": "ubuntu-11.04-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=111",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "112": {
        "osid": "112",
        "type": "xen",
        "name": "ubuntu-11.10-x86",
        "filename": "ubuntu-11.10-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=112",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "113": {
        "osid": "113",
        "type": "xen",
        "name": "ubuntu-11.10-x86_64",
        "filename": "ubuntu-11.10-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=113",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "114": {
        "osid": "114",
        "type": "xen",
        "name": "ubuntu-12.04-x86",
        "filename": "ubuntu-12.04-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=114",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "115": {
        "osid": "115",
        "type": "xen",
        "name": "ubuntu-12.04-x86_64",
        "filename": "ubuntu-12.04-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=115",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "116": {
        "osid": "116",
        "type": "openvz",
        "name": "centos-6-x86",
        "filename": "centos-6-x86.tar.gz",
        "size": "216487999",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=116",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "117": {
        "osid": "117",
        "type": "openvz",
        "name": "centos-6-x86_64",
        "filename": "centos-6-x86_64.tar.gz",
        "size": "229692743",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=117",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "118": {
        "osid": "118",
        "type": "xen",
        "name": "centos-6.3-x86",
        "filename": "centos-6.3-x86.tar.gz",
        "size": "192712971",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=118",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "119": {
        "osid": "119",
        "type": "xen",
        "name": "centos-6.3-x86_64",
        "filename": "centos-6.3-x86_64.tar.gz",
        "size": "197477040",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=119",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "120": {
        "osid": "120",
        "type": "xen",
        "name": "centos-6.3-x86",
        "filename": "centos-6.3-x86.img",
        "size": "1109590016",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=120",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "121": {
        "osid": "121",
        "type": "xen",
        "name": "centos-6.3-x86_64",
        "filename": "centos-6.3-x86_64.img",
        "size": "1109590016",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=121",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "122": {
        "osid": "122",
        "type": "kvm",
        "name": "centos-6.3-x86",
        "filename": "centos-6.3-x86.img",
        "size": "1109590016",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=122",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "123": {
        "osid": "123",
        "type": "kvm",
        "name": "centos-6.3-x86_64",
        "filename": "centos-6.3-x86_64.img",
        "size": "1109590016",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=123",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "128": {
        "osid": "128",
        "type": "xen",
        "name": "suse-12.2-x86",
        "filename": "suse-12.2-x86.tar.gz",
        "size": "239776586",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=128",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "129": {
        "osid": "129",
        "type": "xen",
        "name": "suse-12.2-x86_64",
        "filename": "suse-12.2-x86_64.tar.gz",
        "size": "247074876",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=129",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "130": {
        "osid": "130",
        "type": "xen",
        "name": "fedora-17-x86",
        "filename": "fedora-17-x86.tar.gz",
        "size": "193695918",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=130",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "131": {
        "osid": "131",
        "type": "xen",
        "name": "fedora-17-x86_64",
        "filename": "fedora-17-x86_64.tar.gz",
        "size": "195628131",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=131",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "134": {
        "osid": "134",
        "type": "xen",
        "name": "fedora-17-x86",
        "filename": "fedora-17-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=134",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "135": {
        "osid": "135",
        "type": "xen",
        "name": "fedora-17-x86_64",
        "filename": "fedora-17-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=135",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "139": {
        "osid": "139",
        "type": "kvm",
        "name": "fedora-17-x86",
        "filename": "fedora-17-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=139",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "141": {
        "osid": "141",
        "type": "kvm",
        "name": "fedora-17-x86_64",
        "filename": "fedora-17-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=141",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "142": {
        "osid": "142",
        "type": "xen",
        "name": "fedora-16-x86",
        "filename": "fedora-16-x86.tar.gz",
        "size": "191133660",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=142",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "143": {
        "osid": "143",
        "type": "xen",
        "name": "ubuntu-10.04-x86",
        "filename": "ubuntu-10.04-x86.tar.gz",
        "size": "154096160",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=143",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "144": {
        "osid": "144",
        "type": "xen",
        "name": "ubuntu-10.04-x86_64",
        "filename": "ubuntu-10.04-x86_64.tar.gz",
        "size": "157094447",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=144",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "145": {
        "osid": "145",
        "type": "xen",
        "name": "ubuntu-12.10-x86",
        "filename": "ubuntu-12.10-x86.tar.gz",
        "size": "178006424",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=145",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "146": {
        "osid": "146",
        "type": "xen",
        "name": "ubuntu-12.10-x86_64",
        "filename": "ubuntu-12.10-x86_64.tar.gz",
        "size": "180375206",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=146",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "147": {
        "osid": "147",
        "type": "xen",
        "name": "ubuntu-12.10-x86",
        "filename": "ubuntu-12.10-x86.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=147",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "148": {
        "osid": "148",
        "type": "xen",
        "name": "ubuntu-12.10-x86_64",
        "filename": "ubuntu-12.10-x86_64.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=148",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "149": {
        "osid": "149",
        "type": "xen",
        "name": "suse-12.2-x86",
        "filename": "suse-12.2-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=149",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "150": {
        "osid": "150",
        "type": "xen",
        "name": "suse-12.2-x86_64",
        "filename": "suse-12.2-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=150",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "151": {
        "osid": "151",
        "type": "kvm",
        "name": "ubuntu-12.10-x86",
        "filename": "ubuntu-12.10-x86.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=151",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "152": {
        "osid": "152",
        "type": "kvm",
        "name": "ubuntu-12.10-x86_64",
        "filename": "ubuntu-12.10-x86_64.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=152",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "153": {
        "osid": "153",
        "type": "kvm",
        "name": "suse-12.2-x86",
        "filename": "suse-12.2-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=153",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "154": {
        "osid": "154",
        "type": "kvm",
        "name": "suse-12.2-x86_64",
        "filename": "suse-12.2-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=154",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "155": {
        "osid": "155",
        "type": "openvz",
        "name": "fedora-15-x86",
        "filename": "fedora-15-x86.tar.gz",
        "size": "211483688",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=155",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "156": {
        "osid": "156",
        "type": "openvz",
        "name": "fedora-15-x86_64",
        "filename": "fedora-15-x86_64.tar.gz",
        "size": "211954861",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=156",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "157": {
        "osid": "157",
        "type": "openvz",
        "name": "fedora-16-x86",
        "filename": "fedora-16-x86.tar.gz",
        "size": "213451906",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=157",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "158": {
        "osid": "158",
        "type": "openvz",
        "name": "fedora-16-x86_64",
        "filename": "fedora-16-x86_64.tar.gz",
        "size": "213590670",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=158",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "159": {
        "osid": "159",
        "type": "openvz",
        "name": "fedora-17-x86",
        "filename": "fedora-17-x86.tar.gz",
        "size": "223368048",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=159",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "160": {
        "osid": "160",
        "type": "openvz",
        "name": "fedora-17-x86_64",
        "filename": "fedora-17-x86_64.tar.gz",
        "size": "223288253",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=160",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "161": {
        "osid": "161",
        "type": "openvz",
        "name": "suse-12.1-x86",
        "filename": "suse-12.1-x86.tar.gz",
        "size": "235516234",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=161",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "162": {
        "osid": "162",
        "type": "openvz",
        "name": "suse-12.1-x86_64",
        "filename": "suse-12.1-x86_64.tar.gz",
        "size": "243693013",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=162",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "163": {
        "osid": "163",
        "type": "openvz",
        "name": "suse-12.2-x86",
        "filename": "suse-12.2-x86.tar.gz",
        "size": "194741846",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=163",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "164": {
        "osid": "164",
        "type": "openvz",
        "name": "suse-12.2-x86_64",
        "filename": "suse-12.2-x86_64.tar.gz",
        "size": "198767032",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=164",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "165": {
        "osid": "165",
        "type": "openvz",
        "name": "ubuntu-12.04-x86",
        "filename": "ubuntu-12.04-x86.tar.gz",
        "size": "129169432",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=165",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "166": {
        "osid": "166",
        "type": "openvz",
        "name": "ubuntu-12.04-x86_64",
        "filename": "ubuntu-12.04-x86_64.tar.gz",
        "size": "131011759",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=166",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "167": {
        "osid": "167",
        "type": "xen",
        "name": "scientific-6.3-x86",
        "filename": "scientific-6.3-x86.tar.gz",
        "size": "197800106",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=167",
        "distro": "scientific",
        "Nvirt": "xen"
    },
    "168": {
        "osid": "168",
        "type": "xen",
        "name": "scientific-6.3-x86_64",
        "filename": "scientific-6.3-x86_64.tar.gz",
        "size": "195522246",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=168",
        "distro": "scientific",
        "Nvirt": "xen"
    },
    "169": {
        "osid": "169",
        "type": "xen",
        "name": "scientific-6.3-x86_64",
        "filename": "scientific-6.3-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=169",
        "distro": "scientific",
        "Nvirt": "xenhvm"
    },
    "170": {
        "osid": "170",
        "type": "xen",
        "name": "scientific-6.3-x86",
        "filename": "scientific-6.3-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=170",
        "distro": "scientific",
        "Nvirt": "xenhvm"
    },
    "171": {
        "osid": "171",
        "type": "kvm",
        "name": "scientific-6.3-x86",
        "filename": "scientific-6.3-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=171",
        "distro": "scientific",
        "Nvirt": "kvm"
    },
    "172": {
        "osid": "172",
        "type": "kvm",
        "name": "scientific-6.3-x86_64",
        "filename": "scientific-6.3-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=172",
        "distro": "scientific",
        "Nvirt": "kvm"
    },
    "173": {
        "osid": "173",
        "type": "openvz",
        "name": "scientific-6-x86",
        "filename": "scientific-6-x86.tar.gz",
        "size": "210603567",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=173",
        "distro": "scientific",
        "Nvirt": "openvz"
    },
    "174": {
        "osid": "174",
        "type": "openvz",
        "name": "scientific-6-x86_64",
        "filename": "scientific-6-x86_64.tar.gz",
        "size": "223872635",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=174",
        "distro": "scientific",
        "Nvirt": "openvz"
    },
    "175": {
        "osid": "175",
        "type": "xen",
        "name": "centos-5.8-x86",
        "filename": "centos-5.8-x86.tar.gz",
        "size": "217149172",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=175",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "176": {
        "osid": "176",
        "type": "xen",
        "name": "centos-5.8-x86_64",
        "filename": "centos-5.8-x86_64.tar.gz",
        "size": "293812517",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=176",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "177": {
        "osid": "177",
        "type": "xen",
        "name": "centos-5.9-x86",
        "filename": "centos-5.9-x86.tar.gz",
        "size": "234304249",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=177",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "178": {
        "osid": "178",
        "type": "xen",
        "name": "centos-5.9-x86_64",
        "filename": "centos-5.9-x86_64.tar.gz",
        "size": "275374437",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=178",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "179": {
        "osid": "179",
        "type": "xen",
        "name": "centos-5.9-x86",
        "filename": "centos-5.9-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=179",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "180": {
        "osid": "180",
        "type": "xen",
        "name": "centos-5.9-x86_64",
        "filename": "centos-5.9-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=180",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "181": {
        "osid": "181",
        "type": "kvm",
        "name": "centos-5.9-x86_64",
        "filename": "centos-5.9-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=181",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "182": {
        "osid": "182",
        "type": "kvm",
        "name": "centos-5.9-x86",
        "filename": "centos-5.9-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=182",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "183": {
        "osid": "183",
        "type": "openvz",
        "name": "ubuntu-12.10-x86",
        "filename": "ubuntu-12.10-x86.tar.gz",
        "size": "141965597",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=183",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "184": {
        "osid": "184",
        "type": "openvz",
        "name": "ubuntu-12.10-x86_64",
        "filename": "ubuntu-12.10-x86_64.tar.gz",
        "size": "226993149",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=184",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "185": {
        "osid": "185",
        "type": "xen",
        "name": "centos-6.4-x86",
        "filename": "centos-6.4-x86.tar.gz",
        "size": "203620377",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=185",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "186": {
        "osid": "186",
        "type": "xen",
        "name": "centos-6.4-x86_64",
        "filename": "centos-6.4-x86_64.tar.gz",
        "size": "208469985",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=186",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "187": {
        "osid": "187",
        "type": "kvm",
        "name": "centos-6.4-x86_64",
        "filename": "centos-6.4-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=187",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "188": {
        "osid": "188",
        "type": "kvm",
        "name": "centos-6.4-x86",
        "filename": "centos-6.4-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=188",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "189": {
        "osid": "189",
        "type": "xen",
        "name": "centos-6.4-x86_64",
        "filename": "centos-6.4-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=189",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "190": {
        "osid": "190",
        "type": "xen",
        "name": "centos-6.4-x86",
        "filename": "centos-6.4-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=190",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "191": {
        "osid": "191",
        "type": "xen",
        "name": "fedora-18-x86",
        "filename": "fedora-18-x86.tar.gz",
        "size": "248259211",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=191",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "192": {
        "osid": "192",
        "type": "xen",
        "name": "fedora-18-x86_64",
        "filename": "fedora-18-x86_64.tar.gz",
        "size": "249700901",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=192",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "193": {
        "osid": "193",
        "type": "xen",
        "name": "fedora-18-x86_64",
        "filename": "fedora-18-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=193",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "194": {
        "osid": "194",
        "type": "xen",
        "name": "fedora-18-x86",
        "filename": "fedora-18-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=194",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "195": {
        "osid": "195",
        "type": "kvm",
        "name": "fedora-18-x86_64",
        "filename": "fedora-18-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=195",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "196": {
        "osid": "196",
        "type": "kvm",
        "name": "fedora-18-x86",
        "filename": "fedora-18-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=196",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "197": {
        "osid": "197",
        "type": "xen",
        "name": "scientific-6.4-x86",
        "filename": "scientific-6.4-x86.tar.gz",
        "size": "197468158",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=197",
        "distro": "scientific",
        "Nvirt": "xen"
    },
    "198": {
        "osid": "198",
        "type": "xen",
        "name": "scientific-6.4-x86_64",
        "filename": "scientific-6.4-x86_64.tar.gz",
        "size": "202304601",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=198",
        "distro": "scientific",
        "Nvirt": "xen"
    },
    "199": {
        "osid": "199",
        "type": "xen",
        "name": "scientific-6.4-x86",
        "filename": "scientific-6.4-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=199",
        "distro": "scientific",
        "Nvirt": "xenhvm"
    },
    "200": {
        "osid": "200",
        "type": "xen",
        "name": "scientific-6.4-x86_64",
        "filename": "scientific-6.4-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=200",
        "distro": "scientific",
        "Nvirt": "xenhvm"
    },
    "201": {
        "osid": "201",
        "type": "kvm",
        "name": "scientific-6.4-x86",
        "filename": "scientific-6.4-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=201",
        "distro": "scientific",
        "Nvirt": "kvm"
    },
    "202": {
        "osid": "202",
        "type": "kvm",
        "name": "scientific-6.4-x86_64",
        "filename": "scientific-6.4-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=202",
        "distro": "scientific",
        "Nvirt": "kvm"
    },
    "203": {
        "osid": "203",
        "type": "xen",
        "name": "debian-7.0-x86",
        "filename": "debian-7.0-x86.tar.gz",
        "size": "269856075",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=203",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "204": {
        "osid": "204",
        "type": "xen",
        "name": "debian-7.0-x86_64",
        "filename": "debian-7.0-x86_64.tar.gz",
        "size": "253379596",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=204",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "205": {
        "osid": "205",
        "type": "xen",
        "name": "ubuntu-13.04-x86",
        "filename": "ubuntu-13.04-x86.tar.gz",
        "size": "193146848",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=205",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "206": {
        "osid": "206",
        "type": "xen",
        "name": "ubuntu-13.04-x86_64",
        "filename": "ubuntu-13.04-x86_64.tar.gz",
        "size": "195911584",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=206",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "207": {
        "osid": "207",
        "type": "xen",
        "name": "debian-7.0-x86",
        "filename": "debian-7.0-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=207",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "208": {
        "osid": "208",
        "type": "xen",
        "name": "debian-7.0-x86_64",
        "filename": "debian-7.0-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=208",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "209": {
        "osid": "209",
        "type": "kvm",
        "name": "debian-7.0-x86",
        "filename": "debian-7.0-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=209",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "210": {
        "osid": "210",
        "type": "kvm",
        "name": "debian-7.0-x86_64",
        "filename": "debian-7.0-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=210",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "211": {
        "osid": "211",
        "type": "xen",
        "name": "ubuntu-13.04-x86",
        "filename": "ubuntu-13.04-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=211",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "212": {
        "osid": "212",
        "type": "kvm",
        "name": "ubuntu-13.04-x86",
        "filename": "ubuntu-13.04-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=212",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "213": {
        "osid": "213",
        "type": "xen",
        "name": "ubuntu-13.04-x86_64",
        "filename": "ubuntu-13.04-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=213",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "214": {
        "osid": "214",
        "type": "kvm",
        "name": "ubuntu-13.04-x86_64",
        "filename": "ubuntu-13.04-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=214",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "215": {
        "osid": "215",
        "type": "openvz",
        "name": "fedora-18-x86",
        "filename": "fedora-18-x86.tar.gz",
        "size": "193045510",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=215",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "216": {
        "osid": "216",
        "type": "openvz",
        "name": "fedora-18-x86_64",
        "filename": "fedora-18-x86_64.tar.gz",
        "size": "192182895",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=216",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "217": {
        "osid": "217",
        "type": "openvz",
        "name": "suse-12.3-x86",
        "filename": "suse-12.3-x86.tar.gz",
        "size": "199198029",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=217",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "218": {
        "osid": "218",
        "type": "openvz",
        "name": "suse-12.3-x86_64",
        "filename": "suse-12.3-x86_64.tar.gz",
        "size": "199126548",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=218",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "219": {
        "osid": "219",
        "type": "xen",
        "name": "suse-12.3-x86",
        "filename": "suse-12.3-x86.tar.gz",
        "size": "322591497",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=219",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "220": {
        "osid": "220",
        "type": "xen",
        "name": "suse-12.3-x86_64",
        "filename": "suse-12.3-x86_64.tar.gz",
        "size": "330005430",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=220",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "221": {
        "osid": "221",
        "type": "xen",
        "name": "suse-12.3-x86",
        "filename": "suse-12.3-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=221",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "222": {
        "osid": "222",
        "type": "xen",
        "name": "suse-12.3-x86_64",
        "filename": "suse-12.3-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=222",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "223": {
        "osid": "223",
        "type": "kvm",
        "name": "suse-12.3-x86",
        "filename": "suse-12.3-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=223",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "224": {
        "osid": "224",
        "type": "kvm",
        "name": "suse-12.3-x86_64",
        "filename": "suse-12.3-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=224",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "225": {
        "osid": "225",
        "type": "xen",
        "name": "debian-7.1-x86",
        "filename": "debian-7.1-x86.tar.gz",
        "size": "252656773",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=225",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "226": {
        "osid": "226",
        "type": "xen",
        "name": "debian-7.1-x86_64",
        "filename": "debian-7.1-x86_64.tar.gz",
        "size": "253437303",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=226",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "227": {
        "osid": "227",
        "type": "xen",
        "name": "debian-7.1-x86_64",
        "filename": "debian-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=227",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "228": {
        "osid": "228",
        "type": "xen",
        "name": "debian-7.1-x86",
        "filename": "debian-7.1-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=228",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "229": {
        "osid": "229",
        "type": "kvm",
        "name": "debian-7.1-x86",
        "filename": "debian-7.1-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=229",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "230": {
        "osid": "230",
        "type": "kvm",
        "name": "debian-7.1-x86_64",
        "filename": "debian-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=230",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "231": {
        "osid": "231",
        "type": "xen",
        "name": "fedora-19-x86_64",
        "filename": "fedora-19-x86_64.tar.gz",
        "size": "281627582",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=231",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "232": {
        "osid": "232",
        "type": "xen",
        "name": "fedora-19-x86",
        "filename": "fedora-19-x86.tar.gz",
        "size": "278539550",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=232",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "233": {
        "osid": "233",
        "type": "xen",
        "name": "fedora-19-x86_64",
        "filename": "fedora-19-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=233",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "234": {
        "osid": "234",
        "type": "xen",
        "name": "fedora-19-x86",
        "filename": "fedora-19-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=234",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "235": {
        "osid": "235",
        "type": "kvm",
        "name": "fedora-19-x86",
        "filename": "fedora-19-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=235",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "236": {
        "osid": "236",
        "type": "kvm",
        "name": "fedora-19-x86_64",
        "filename": "fedora-19-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=236",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "237": {
        "osid": "237",
        "type": "openvz",
        "name": "ubuntu-13.04-x86_64",
        "filename": "ubuntu-13.04-x86_64.tar.gz",
        "size": "242658319",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=237",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "238": {
        "osid": "238",
        "type": "openvz",
        "name": "ubuntu-13.04-x86",
        "filename": "ubuntu-13.04-x86.tar.gz",
        "size": "144020011",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=238",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "239": {
        "osid": "239",
        "type": "openvz",
        "name": "debian-7.0-x86_64",
        "filename": "debian-7.0-x86_64.tar.gz",
        "size": "235072166",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=239",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "240": {
        "osid": "240",
        "type": "openvz",
        "name": "debian-7.0-x86",
        "filename": "debian-7.0-x86.tar.gz",
        "size": "235336911",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=240",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "241": {
        "osid": "241",
        "type": "xen",
        "name": "debian-7.2-x86",
        "filename": "debian-7.2-x86.tar.gz",
        "size": "253069918",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=241",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "242": {
        "osid": "242",
        "type": "xen",
        "name": "debian-7.2-x86_64",
        "filename": "debian-7.2-x86_64.tar.gz",
        "size": "291219205",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=242",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "243": {
        "osid": "243",
        "type": "xen",
        "name": "suse-13.1-x86",
        "filename": "suse-13.1-x86.tar.gz",
        "size": "403734818",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=243",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "244": {
        "osid": "244",
        "type": "xen",
        "name": "suse-13.1-x86_64",
        "filename": "suse-13.1-x86_64.tar.gz",
        "size": "412154058",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=244",
        "distro": "suse",
        "Nvirt": "xen"
    },
    "245": {
        "osid": "245",
        "type": "xen",
        "name": "ubuntu-13.10-x86",
        "filename": "ubuntu-13.10-x86.tar.gz",
        "size": "204405211",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=245",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "246": {
        "osid": "246",
        "type": "xen",
        "name": "ubuntu-13.10-x86_64",
        "filename": "ubuntu-13.10-x86_64.tar.gz",
        "size": "207837620",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=246",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "247": {
        "osid": "247",
        "type": "xen",
        "name": "centos-5.10-x86",
        "filename": "centos-5.10-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=247",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "248": {
        "osid": "248",
        "type": "kvm",
        "name": "centos-5.10-x86",
        "filename": "centos-5.10-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=248",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "249": {
        "osid": "249",
        "type": "xen",
        "name": "centos-5.10-x86_64",
        "filename": "centos-5.10-x86_64.img",
        "size": "1284571136",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=249",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "250": {
        "osid": "250",
        "type": "kvm",
        "name": "centos-5.10-x86_64",
        "filename": "centos-5.10-x86_64.img",
        "size": "1284571136",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=250",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "251": {
        "osid": "251",
        "type": "xen",
        "name": "debian-7.2-x86",
        "filename": "debian-7.2-x86.img",
        "size": "1154547712",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=251",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "252": {
        "osid": "252",
        "type": "kvm",
        "name": "debian-7.2-x86",
        "filename": "debian-7.2-x86.img",
        "size": "1154547712",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=252",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "253": {
        "osid": "253",
        "type": "xen",
        "name": "debian-7.2-x86_64",
        "filename": "debian-7.2-x86_64.img",
        "size": "1154547712",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=253",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "254": {
        "osid": "254",
        "type": "kvm",
        "name": "debian-7.2-x86_64",
        "filename": "debian-7.2-x86_64.img",
        "size": "1154547712",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=254",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "255": {
        "osid": "255",
        "type": "xen",
        "name": "ubuntu-13.10-x86",
        "filename": "ubuntu-13.10-x86.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=255",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "256": {
        "osid": "256",
        "type": "kvm",
        "name": "ubuntu-13.10-x86",
        "filename": "ubuntu-13.10-x86.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=256",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "257": {
        "osid": "257",
        "type": "xen",
        "name": "ubuntu-13.10-x86_64",
        "filename": "ubuntu-13.10-x86_64.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=257",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "258": {
        "osid": "258",
        "type": "kvm",
        "name": "ubuntu-13.10-x86_64",
        "filename": "ubuntu-13.10-x86_64.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=258",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "259": {
        "osid": "259",
        "type": "openvz",
        "name": "ubuntu-13.10-x86",
        "filename": "ubuntu-13.10-x86.tar.gz",
        "size": "147775299",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=259",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "260": {
        "osid": "260",
        "type": "openvz",
        "name": "ubuntu-13.10-x86_64",
        "filename": "ubuntu-13.10-x86_64.tar.gz",
        "size": "150158236",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=260",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "261": {
        "osid": "261",
        "type": "xen",
        "name": "centos-5.10-x86",
        "filename": "centos-5.10-x86.tar.gz",
        "size": "182898452",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=261",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "262": {
        "osid": "262",
        "type": "xen",
        "name": "centos-5.10-x86_64",
        "filename": "centos-5.10-x86_64.tar.gz",
        "size": "294290727",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=262",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "263": {
        "osid": "263",
        "type": "kvm",
        "name": "suse-13.1-x86",
        "filename": "suse-13.1-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=263",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "264": {
        "osid": "264",
        "type": "xen",
        "name": "suse-13.1-x86",
        "filename": "suse-13.1-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=264",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "265": {
        "osid": "265",
        "type": "kvm",
        "name": "suse-13.1-x86_64",
        "filename": "suse-13.1-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=265",
        "distro": "suse",
        "Nvirt": "kvm"
    },
    "266": {
        "osid": "266",
        "type": "xen",
        "name": "suse-13.1-x86_64",
        "filename": "suse-13.1-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=266",
        "distro": "suse",
        "Nvirt": "xenhvm"
    },
    "267": {
        "osid": "267",
        "type": "xen",
        "name": "centos-6.5-x86",
        "filename": "centos-6.5-x86.tar.gz",
        "size": "210813738",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=267",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "268": {
        "osid": "268",
        "type": "xen",
        "name": "centos-6.5-x86_64",
        "filename": "centos-6.5-x86_64.tar.gz",
        "size": "215894653",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=268",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "269": {
        "osid": "269",
        "type": "xen",
        "name": "centos-6.5-x86",
        "filename": "centos-6.5-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=269",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "270": {
        "osid": "270",
        "type": "kvm",
        "name": "centos-6.5-x86",
        "filename": "centos-6.5-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=270",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "271": {
        "osid": "271",
        "type": "xen",
        "name": "centos-6.5-x86_64",
        "filename": "centos-6.5-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=271",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "272": {
        "osid": "272",
        "type": "kvm",
        "name": "centos-6.5-x86_64",
        "filename": "centos-6.5-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=272",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "273": {
        "osid": "273",
        "type": "xen",
        "name": "fedora-20-x86",
        "filename": "fedora-20-x86.tar.gz",
        "size": "347649211",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=273",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "274": {
        "osid": "274",
        "type": "xen",
        "name": "fedora-20-x86_64",
        "filename": "fedora-20-x86_64.tar.gz",
        "size": "347144347",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=274",
        "distro": "fedora",
        "Nvirt": "xen"
    },
    "275": {
        "osid": "275",
        "type": "xen",
        "name": "fedora-20-x86",
        "filename": "fedora-20-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=275",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "276": {
        "osid": "276",
        "type": "xen",
        "name": "fedora-20-x86_64",
        "filename": "fedora-20-x86_64.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=276",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "277": {
        "osid": "277",
        "type": "kvm",
        "name": "fedora-20-x86",
        "filename": "fedora-20-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=277",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "278": {
        "osid": "278",
        "type": "kvm",
        "name": "fedora-20-x86_64",
        "filename": "fedora-20-x86_64.img",
        "size": "1259405312",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=278",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "279": {
        "osid": "279",
        "type": "xen",
        "name": "debian-7.3-x86",
        "filename": "debian-7.3-x86.tar.gz",
        "size": "253548929",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=279",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "280": {
        "osid": "280",
        "type": "xen",
        "name": "debian-7.3-x86_64",
        "filename": "debian-7.3-x86_64.tar.gz",
        "size": "254268851",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=280",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "281": {
        "osid": "281",
        "type": "kvm",
        "name": "debian-7.3-x86",
        "filename": "debian-7.3-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=281",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "282": {
        "osid": "282",
        "type": "kvm",
        "name": "debian-7.3-x86_64",
        "filename": "debian-7.3-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=282",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "283": {
        "osid": "283",
        "type": "xen",
        "name": "debian-7.3-x86",
        "filename": "debian-7.3-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=283",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "284": {
        "osid": "284",
        "type": "xen",
        "name": "debian-7.3-x86_64",
        "filename": "debian-7.3-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=284",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "285": {
        "osid": "285",
        "type": "xcp",
        "name": "centos-6.5-x86",
        "filename": "centos-6.5-x86.img.gz",
        "size": "216543933",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=285",
        "distro": "centos",
        "Nvirt": "xcp"
    },
    "286": {
        "osid": "286",
        "type": "xcp",
        "name": "centos-6.5-x86",
        "filename": "centos-6.5-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=286",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "287": {
        "osid": "287",
        "type": "xcp",
        "name": "centos-6.5-x86_64",
        "filename": "centos-6.5-x86_64.img.gz",
        "size": "221609951",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=287",
        "distro": "centos",
        "Nvirt": "xcp"
    },
    "288": {
        "osid": "288",
        "type": "xcp",
        "name": "centos-6.5-x86_64",
        "filename": "centos-6.5-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=288",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "289": {
        "osid": "289",
        "type": "xen",
        "name": "debian-7.4-x86_64",
        "filename": "debian-7.4-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=289",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "290": {
        "osid": "290",
        "type": "kvm",
        "name": "debian-7.4-x86_64",
        "filename": "debian-7.4-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=290",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "291": {
        "osid": "291",
        "type": "xen",
        "name": "debian-7.4-x86",
        "filename": "debian-7.4-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=291",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "292": {
        "osid": "292",
        "type": "kvm",
        "name": "debian-7.4-x86",
        "filename": "debian-7.4-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=292",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "293": {
        "osid": "293",
        "type": "xcp",
        "name": "centos-6.2-x86",
        "filename": "centos-6.2-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=293",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "294": {
        "osid": "294",
        "type": "xcp",
        "name": "centos-6.2-x86_64",
        "filename": "centos-6.2-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=294",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "295": {
        "osid": "295",
        "type": "xcp",
        "name": "centos-6.2-x86_64",
        "filename": "centos-6.2-x86_64.img.gz",
        "size": "197364316",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=295",
        "distro": "centos",
        "Nvirt": "xcp"
    },
    "296": {
        "osid": "296",
        "type": "xcp",
        "name": "centos-6.2-x86",
        "filename": "centos-6.2-x86.img.gz",
        "size": "192750609",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=296",
        "distro": "centos",
        "Nvirt": "xcp"
    },
    "297": {
        "osid": "297",
        "type": "xcp",
        "name": "debian-7.4-x86_64",
        "filename": "debian-7.4-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=297",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "298": {
        "osid": "298",
        "type": "xcp",
        "name": "debian-7.4-x86",
        "filename": "debian-7.4-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=298",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "299": {
        "osid": "299",
        "type": "xen",
        "name": "debian-7.4-x86_64",
        "filename": "debian-7.4-x86_64.tar.gz",
        "size": "227353489",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=299",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "300": {
        "osid": "300",
        "type": "xen",
        "name": "debian-7.4-x86",
        "filename": "debian-7.4-x86.tar.gz",
        "size": "226198594",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=300",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "301": {
        "osid": "301",
        "type": "xcp",
        "name": "debian-7.4-x86",
        "filename": "debian-7.4-x86.img.gz",
        "size": "387837003",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=301",
        "distro": "debian",
        "Nvirt": "xcp"
    },
    "302": {
        "osid": "302",
        "type": "xcp",
        "name": "debian-7.4-x86_64",
        "filename": "debian-7.4-x86_64.img.gz",
        "size": "374700720",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=302",
        "distro": "debian",
        "Nvirt": "xcp"
    },
    "303": {
        "osid": "303",
        "type": "openvz",
        "name": "fedora-19-x86",
        "filename": "fedora-19-x86.tar.gz",
        "size": "198758935",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=303",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "304": {
        "osid": "304",
        "type": "openvz",
        "name": "fedora-19-x86_64",
        "filename": "fedora-19-x86_64.tar.gz",
        "size": "199084505",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=304",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "305": {
        "osid": "305",
        "type": "openvz",
        "name": "fedora-20-x86",
        "filename": "fedora-20-x86.tar.gz",
        "size": "190221633",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=305",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "306": {
        "osid": "306",
        "type": "openvz",
        "name": "fedora-20-x86_64",
        "filename": "fedora-20-x86_64.tar.gz",
        "size": "190634282",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=306",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "307": {
        "osid": "307",
        "type": "openvz",
        "name": "suse-13.1-x86",
        "filename": "suse-13.1-x86.tar.gz",
        "size": "240303283",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=307",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "308": {
        "osid": "308",
        "type": "openvz",
        "name": "suse-13.1-x86_64",
        "filename": "suse-13.1-x86_64.tar.gz",
        "size": "243021062",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=308",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "309": {
        "osid": "309",
        "type": "xen",
        "name": "ubuntu-14.04-x86",
        "filename": "ubuntu-14.04-x86.tar.gz",
        "size": "212707817",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=309",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "310": {
        "osid": "310",
        "type": "xen",
        "name": "ubuntu-14.04-x86_64",
        "filename": "ubuntu-14.04-x86_64.tar.gz",
        "size": "216418221",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=310",
        "distro": "ubuntu",
        "Nvirt": "xen"
    },
    "311": {
        "osid": "311",
        "type": "xen",
        "name": "ubuntu-14.04-x86",
        "filename": "ubuntu-14.04-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=311",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "312": {
        "osid": "312",
        "type": "xen",
        "name": "ubuntu-14.04-x86_64",
        "filename": "ubuntu-14.04-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=312",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "313": {
        "osid": "313",
        "type": "kvm",
        "name": "ubuntu-14.04-x86",
        "filename": "ubuntu-14.04-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=313",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "314": {
        "osid": "314",
        "type": "kvm",
        "name": "ubuntu-14.04-x86_64",
        "filename": "ubuntu-14.04-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=314",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "315": {
        "osid": "315",
        "type": "xcp",
        "name": "ubuntu-14.04-x86",
        "filename": "ubuntu-14.04-x86.img.gz",
        "size": "215958918",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=315",
        "distro": "ubuntu",
        "Nvirt": "xcp"
    },
    "316": {
        "osid": "316",
        "type": "xcp",
        "name": "ubuntu-14.04-x86_64",
        "filename": "ubuntu-14.04-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=316",
        "distro": "ubuntu",
        "Nvirt": "xcphvm"
    },
    "317": {
        "osid": "317",
        "type": "xcp",
        "name": "ubuntu-14.04-x86_64",
        "filename": "ubuntu-14.04-x86_64.img.gz",
        "size": "218780251",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=317",
        "distro": "ubuntu",
        "Nvirt": "xcp"
    },
    "318": {
        "osid": "318",
        "type": "xcp",
        "name": "ubuntu-14.04-x86",
        "filename": "ubuntu-14.04-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=318",
        "distro": "ubuntu",
        "Nvirt": "xcphvm"
    },
    "319": {
        "osid": "319",
        "type": "openvz",
        "name": "ubuntu-14.04-x86_64",
        "filename": "ubuntu-14.04-x86_64.tar.gz",
        "size": "154056446",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=319",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "320": {
        "osid": "320",
        "type": "openvz",
        "name": "ubuntu-14.04-x86",
        "filename": "ubuntu-14.04-x86.tar.gz",
        "size": "151764469",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=320",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "321": {
        "osid": "321",
        "type": "kvm",
        "name": "debian-7.6-x86_64",
        "filename": "debian-7.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=321",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "322": {
        "osid": "322",
        "type": "kvm",
        "name": "debian-7.6-x86",
        "filename": "debian-7.6-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=322",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "323": {
        "osid": "323",
        "type": "xen",
        "name": "debian-7.6-x86_64",
        "filename": "debian-7.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=323",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "324": {
        "osid": "324",
        "type": "xen",
        "name": "debian-7.6-x86",
        "filename": "debian-7.6-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=324",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "325": {
        "osid": "325",
        "type": "xen",
        "name": "debian-7.6-x86_64",
        "filename": "debian-7.6-x86_64.tar.gz",
        "size": "252768875",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=325",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "326": {
        "osid": "326",
        "type": "xen",
        "name": "debian-7.6-x86",
        "filename": "debian-7.6-x86.tar.gz",
        "size": "251623081",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=326",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "327": {
        "osid": "327",
        "type": "xcp",
        "name": "debian-7.6-x86_64",
        "filename": "debian-7.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=327",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "328": {
        "osid": "328",
        "type": "xcp",
        "name": "debian-7.6-x86",
        "filename": "debian-7.6-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=328",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "333": {
        "osid": "333",
        "type": "xen",
        "name": "centos-7.0-x86_64",
        "filename": "centos-7.0-x86_64.tar.gz",
        "size": "305187008",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=333",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "330": {
        "osid": "330",
        "type": "openvz",
        "name": "centos-7-x86_64",
        "filename": "centos-7-x86_64.tar.gz",
        "size": "221756916",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=330",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "331": {
        "osid": "331",
        "type": "xcp",
        "name": "debian-7.6-x86",
        "filename": "debian-7.6-x86.img.gz",
        "size": "253843921",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=331",
        "distro": "debian",
        "Nvirt": "xcp"
    },
    "332": {
        "osid": "332",
        "type": "xcp",
        "name": "debian-7.6-x86_64",
        "filename": "debian-7.6-x86_64.img.gz",
        "size": "253972194",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=332",
        "distro": "debian",
        "Nvirt": "xcp"
    },
    "334": {
        "osid": "334",
        "type": "kvm",
        "name": "centos-7.0-x86_64",
        "filename": "centos-7.0-x86_64.img",
        "size": "1291845632",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=334",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "335": {
        "osid": "335",
        "type": "xen",
        "name": "centos-7.0-x86_64",
        "filename": "centos-7.0-x86_64.img",
        "size": "1291845632",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=335",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "336": {
        "osid": "336",
        "type": "xcp",
        "name": "centos-7.0-x86_64",
        "filename": "centos-7.0-x86_64.img",
        "size": "1291845632",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=336",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "337": {
        "osid": "337",
        "type": "openvz",
        "name": "debian-7.6-x86",
        "filename": "debian-7.6-x86.tar.gz",
        "size": "235235971",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=337",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "338": {
        "osid": "338",
        "type": "openvz",
        "name": "debian-7.6-x86_64",
        "filename": "debian-7.6-x86_64.tar.gz",
        "size": "234968186",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=338",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "339": {
        "osid": "339",
        "type": "xen",
        "name": "centos-6.6-x86",
        "filename": "centos-6.6-x86.tar.gz",
        "size": "215258846",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=339",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "340": {
        "osid": "340",
        "type": "xen",
        "name": "centos-6.6-x86_64",
        "filename": "centos-6.6-x86_64.tar.gz",
        "size": "220516974",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=340",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "341": {
        "osid": "341",
        "type": "xen",
        "name": "scientific-6.6-x86_64",
        "filename": "scientific-6.6-x86_64.tar.gz",
        "size": "213805996",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=341",
        "distro": "scientific",
        "Nvirt": "xen"
    },
    "342": {
        "osid": "342",
        "type": "xen",
        "name": "centos-5.11-x86",
        "filename": "centos-5.11-x86.tar.gz",
        "size": "230080961",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=342",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "343": {
        "osid": "343",
        "type": "xen",
        "name": "centos-5.11-x86_64",
        "filename": "centos-5.11-x86_64.tar.gz",
        "size": "244131726",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=343",
        "distro": "centos",
        "Nvirt": "xen"
    },
    "344": {
        "osid": "344",
        "type": "kvm",
        "name": "centos-6.6-x86",
        "filename": "centos-6.6-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=344",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "345": {
        "osid": "345",
        "type": "xen",
        "name": "centos-6.6-x86",
        "filename": "centos-6.6-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=345",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "346": {
        "osid": "346",
        "type": "xcp",
        "name": "centos-6.6-x86",
        "filename": "centos-6.6-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=346",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "347": {
        "osid": "347",
        "type": "kvm",
        "name": "centos-6.6-x86_64",
        "filename": "centos-6.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=347",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "348": {
        "osid": "348",
        "type": "xen",
        "name": "centos-6.6-x86_64",
        "filename": "centos-6.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=348",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "349": {
        "osid": "349",
        "type": "xcp",
        "name": "centos-6.6-x86_64",
        "filename": "centos-6.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=349",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "350": {
        "osid": "350",
        "type": "xen",
        "name": "scientific-6.6-x86_64",
        "filename": "scientific-6.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=350",
        "distro": "scientific",
        "Nvirt": "xenhvm"
    },
    "351": {
        "osid": "351",
        "type": "kvm",
        "name": "scientific-6.6-x86_64",
        "filename": "scientific-6.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=351",
        "distro": "scientific",
        "Nvirt": "kvm"
    },
    "352": {
        "osid": "352",
        "type": "xcp",
        "name": "scientific-6.6-x86_64",
        "filename": "scientific-6.6-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=352",
        "distro": "scientific",
        "Nvirt": "xcphvm"
    },
    "353": {
        "osid": "353",
        "type": "xen",
        "name": "centos-5.11-x86",
        "filename": "centos-5.11-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=353",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "354": {
        "osid": "354",
        "type": "kvm",
        "name": "centos-5.11-x86",
        "filename": "centos-5.11-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=354",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "355": {
        "osid": "355",
        "type": "xcp",
        "name": "centos-5.11-x86",
        "filename": "centos-5.11-x86.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=355",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "356": {
        "osid": "356",
        "type": "xen",
        "name": "centos-5.11-x86_64",
        "filename": "centos-5.11-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=356",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "357": {
        "osid": "357",
        "type": "kvm",
        "name": "centos-5.11-x86_64",
        "filename": "centos-5.11-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=357",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "358": {
        "osid": "358",
        "type": "xcp",
        "name": "centos-5.11-x86_64",
        "filename": "centos-5.11-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=358",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "359": {
        "osid": "359",
        "type": "xcp",
        "name": "centos-6.6-x86",
        "filename": "centos-6.6-x86.img.gz",
        "size": "220896084",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=359",
        "distro": "centos",
        "Nvirt": "xcp"
    },
    "360": {
        "osid": "360",
        "type": "xcp",
        "name": "centos-6.6-x86_64",
        "filename": "centos-6.6-x86_64.img.gz",
        "size": "226036114",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=360",
        "distro": "centos",
        "Nvirt": "xcp"
    },
    "361": {
        "osid": "361",
        "type": "openvz",
        "name": "centos-6-x86-minimal",
        "filename": "centos-6-x86-minimal.tar.gz",
        "size": "108992571",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=361",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "362": {
        "osid": "362",
        "type": "openvz",
        "name": "centos-6-x86_64-minimal",
        "filename": "centos-6-x86_64-minimal.tar.gz",
        "size": "108795070",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=362",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "363": {
        "osid": "363",
        "type": "openvz",
        "name": "centos-7-x86_64-minimal",
        "filename": "centos-7-x86_64-minimal.tar.gz",
        "size": "145762586",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=363",
        "distro": "centos",
        "Nvirt": "openvz"
    },
    "364": {
        "osid": "364",
        "type": "openvz",
        "name": "debian-6.0-x86-minimal",
        "filename": "debian-6.0-x86-minimal.tar.gz",
        "size": "81101320",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=364",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "365": {
        "osid": "365",
        "type": "openvz",
        "name": "debian-6.0-x86_64-minimal",
        "filename": "debian-6.0-x86_64-minimal.tar.gz",
        "size": "82462199",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=365",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "366": {
        "osid": "366",
        "type": "openvz",
        "name": "debian-7.0-x86-minimal",
        "filename": "debian-7.0-x86-minimal.tar.gz",
        "size": "88420700",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=366",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "367": {
        "osid": "367",
        "type": "openvz",
        "name": "debian-7.0-x86_64-minimal",
        "filename": "debian-7.0-x86_64-minimal.tar.gz",
        "size": "88201869",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=367",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "368": {
        "osid": "368",
        "type": "openvz",
        "name": "suse-13.1-x86-minimal",
        "filename": "suse-13.1-x86-minimal.tar.gz",
        "size": "60611937",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=368",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "369": {
        "osid": "369",
        "type": "openvz",
        "name": "suse-13.1-x86_64-minimal",
        "filename": "suse-13.1-x86_64-minimal.tar.gz",
        "size": "61542510",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=369",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "370": {
        "osid": "370",
        "type": "openvz",
        "name": "ubuntu-12.04-x86-minimal",
        "filename": "ubuntu-12.04-x86-minimal.tar.gz",
        "size": "59451023",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=370",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "371": {
        "osid": "371",
        "type": "openvz",
        "name": "ubuntu-12.04-x86_64-minimal",
        "filename": "ubuntu-12.04-x86_64-minimal.tar.gz",
        "size": "60549637",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=371",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "372": {
        "osid": "372",
        "type": "openvz",
        "name": "ubuntu-14.04-x86-minimal",
        "filename": "ubuntu-14.04-x86-minimal.tar.gz",
        "size": "76231035",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=372",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "373": {
        "osid": "373",
        "type": "openvz",
        "name": "ubuntu-14.04-x86_64-minimal",
        "filename": "ubuntu-14.04-x86_64-minimal.tar.gz",
        "size": "78584649",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=373",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "374": {
        "osid": "374",
        "type": "xcp",
        "name": "ubuntu-12.04-x86",
        "filename": "ubuntu-12.04-x86.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=374",
        "distro": "ubuntu",
        "Nvirt": "xcphvm"
    },
    "375": {
        "osid": "375",
        "type": "xcp",
        "name": "ubuntu-12.04-x86_64",
        "filename": "ubuntu-12.04-x86_64.img",
        "size": "1175519232",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=375",
        "distro": "ubuntu",
        "Nvirt": "xcphvm"
    },
    "376": {
        "osid": "376",
        "type": "xcp",
        "name": "suse-12.3-x86",
        "filename": "suse-12.3-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=376",
        "distro": "suse",
        "Nvirt": "xcphvm"
    },
    "377": {
        "osid": "377",
        "type": "xcp",
        "name": "suse-12.3-x86_64",
        "filename": "suse-12.3-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=377",
        "distro": "suse",
        "Nvirt": "xcphvm"
    },
    "378": {
        "osid": "378",
        "type": "xcp",
        "name": "suse-13.1-x86",
        "filename": "suse-13.1-x86.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=378",
        "distro": "suse",
        "Nvirt": "xcphvm"
    },
    "379": {
        "osid": "379",
        "type": "xcp",
        "name": "suse-13.1-x86_64",
        "filename": "suse-13.1-x86_64.img",
        "size": "2147483648",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=379",
        "distro": "suse",
        "Nvirt": "xcphvm"
    },
    "380": {
        "osid": "380",
        "type": "xen",
        "name": "centos-7.1-x86_64",
        "filename": "centos-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=380",
        "distro": "centos",
        "Nvirt": "xenhvm"
    },
    "381": {
        "osid": "381",
        "type": "kvm",
        "name": "centos-7.1-x86_64",
        "filename": "centos-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=381",
        "distro": "centos",
        "Nvirt": "kvm"
    },
    "382": {
        "osid": "382",
        "type": "xcp",
        "name": "centos-7.1-x86_64",
        "filename": "centos-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=382",
        "distro": "centos",
        "Nvirt": "xcphvm"
    },
    "383": {
        "osid": "383",
        "type": "xen",
        "name": "scientific-7.0-x86_64",
        "filename": "scientific-7.0-x86_64.img",
        "size": "1154547712",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=383",
        "distro": "scientific",
        "Nvirt": "xenhvm"
    },
    "384": {
        "osid": "384",
        "type": "kvm",
        "name": "scientific-7.0-x86_64",
        "filename": "scientific-7.0-x86_64.img",
        "size": "1154547712",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=384",
        "distro": "scientific",
        "Nvirt": "kvm"
    },
    "385": {
        "osid": "385",
        "type": "xcp",
        "name": "scientific-7.0-x86_64",
        "filename": "scientific-7.0-x86_64.img",
        "size": "1154547712",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=385",
        "distro": "scientific",
        "Nvirt": "xcphvm"
    },
    "386": {
        "osid": "386",
        "type": "xen",
        "name": "scientific-7.1-x86_64",
        "filename": "scientific-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=386",
        "distro": "scientific",
        "Nvirt": "xenhvm"
    },
    "387": {
        "osid": "387",
        "type": "kvm",
        "name": "scientific-7.1-x86_64",
        "filename": "scientific-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=387",
        "distro": "scientific",
        "Nvirt": "kvm"
    },
    "388": {
        "osid": "388",
        "type": "xcp",
        "name": "scientific-7.1-x86_64",
        "filename": "scientific-7.1-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=388",
        "distro": "scientific",
        "Nvirt": "xcphvm"
    },
    "389": {
        "osid": "389",
        "type": "xen",
        "name": "fedora-21-x86_64",
        "filename": "fedora-21-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=389",
        "distro": "fedora",
        "Nvirt": "xenhvm"
    },
    "390": {
        "osid": "390",
        "type": "kvm",
        "name": "fedora-21-x86_64",
        "filename": "fedora-21-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=390",
        "distro": "fedora",
        "Nvirt": "kvm"
    },
    "391": {
        "osid": "391",
        "type": "xcp",
        "name": "fedora-21-x86_64",
        "filename": "fedora-21-x86_64.img",
        "size": "1074855936",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=391",
        "distro": "fedora",
        "Nvirt": "xcphvm"
    },
    "392": {
        "osid": "392",
        "type": "xen",
        "name": "debian-7.8-x86_64",
        "filename": "debian-7.8-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=392",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "393": {
        "osid": "393",
        "type": "kvm",
        "name": "debian-7.8-x86_64",
        "filename": "debian-7.8-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=393",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "394": {
        "osid": "394",
        "type": "xcp",
        "name": "debian-7.8-x86_64",
        "filename": "debian-7.8-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=394",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "395": {
        "osid": "395",
        "type": "xen",
        "name": "debian-7.8-x86",
        "filename": "debian-7.8-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=395",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "396": {
        "osid": "396",
        "type": "kvm",
        "name": "debian-7.8-x86",
        "filename": "debian-7.8-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=396",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "397": {
        "osid": "397",
        "type": "xcp",
        "name": "debian-7.8-x86",
        "filename": "debian-7.8-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=397",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "398": {
        "osid": "398",
        "type": "xen",
        "name": "debian-8.0-x86_64",
        "filename": "debian-8.0-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=398",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "399": {
        "osid": "399",
        "type": "kvm",
        "name": "debian-8.0-x86_64",
        "filename": "debian-8.0-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=399",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "400": {
        "osid": "400",
        "type": "xcp",
        "name": "debian-8.0-x86_64",
        "filename": "debian-8.0-x86_64.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=400",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "401": {
        "osid": "401",
        "type": "xen",
        "name": "debian-8.0-x86",
        "filename": "debian-8.0-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=401",
        "distro": "debian",
        "Nvirt": "xenhvm"
    },
    "402": {
        "osid": "402",
        "type": "kvm",
        "name": "debian-8.0-x86",
        "filename": "debian-8.0-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=402",
        "distro": "debian",
        "Nvirt": "kvm"
    },
    "403": {
        "osid": "403",
        "type": "xcp",
        "name": "debian-8.0-x86",
        "filename": "debian-8.0-x86.img",
        "size": "1073741824",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=403",
        "distro": "debian",
        "Nvirt": "xcphvm"
    },
    "404": {
        "osid": "404",
        "type": "xen",
        "name": "ubuntu-15.04-x86_64",
        "filename": "ubuntu-15.04-x86_64.img",
        "size": "1476395008",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=404",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "405": {
        "osid": "405",
        "type": "kvm",
        "name": "ubuntu-15.04-x86_64",
        "filename": "ubuntu-15.04-x86_64.img",
        "size": "1476395008",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=405",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "406": {
        "osid": "406",
        "type": "xcp",
        "name": "ubuntu-15.04-x86_64",
        "filename": "ubuntu-15.04-x86_64.img",
        "size": "1476395008",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=406",
        "distro": "ubuntu",
        "Nvirt": "xcphvm"
    },
    "407": {
        "osid": "407",
        "type": "xen",
        "name": "ubuntu-15.04-x86",
        "filename": "ubuntu-15.04-x86.img",
        "size": "1342177280",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=407",
        "distro": "ubuntu",
        "Nvirt": "xenhvm"
    },
    "408": {
        "osid": "408",
        "type": "kvm",
        "name": "ubuntu-15.04-x86",
        "filename": "ubuntu-15.04-x86.img",
        "size": "1342177280",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=408",
        "distro": "ubuntu",
        "Nvirt": "kvm"
    },
    "409": {
        "osid": "409",
        "type": "xcp",
        "name": "ubuntu-15.04-x86",
        "filename": "ubuntu-15.04-x86.img",
        "size": "1342177280",
        "pygrub": "0",
        "drive": "",
        "hvm": "1",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=409",
        "distro": "ubuntu",
        "Nvirt": "xcphvm"
    },
    "410": {
        "osid": "410",
        "type": "xen",
        "name": "debian-8.0-x86",
        "filename": "debian-8.0-x86.tar.gz",
        "size": "319886722",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=410",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "411": {
        "osid": "411",
        "type": "xen",
        "name": "debian-8.0-x86_64",
        "filename": "debian-8.0-x86_64.tar.gz",
        "size": "315391818",
        "pygrub": "1",
        "drive": "xvda",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=411",
        "distro": "debian",
        "Nvirt": "xen"
    },
    "412": {
        "osid": "412",
        "type": "xcp",
        "name": "centos-7.1-x86_64",
        "filename": "centos-7.1-x86_64.img.gz",
        "size": "291395596",
        "pygrub": "1",
        "drive": "",
        "hvm": "0",
        "perf_ops": "1",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=412",
        "distro": "centos",
        "Nvirt": "xcp"
    },
    "413": {
        "osid": "413",
        "type": "openvz",
        "name": "debian-8.0-x86_64-minimal",
        "filename": "debian-8.0-x86_64-minimal.tar.gz",
        "size": "116329870",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=413",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "414": {
        "osid": "414",
        "type": "openvz",
        "name": "debian-8.0-x86_64",
        "filename": "debian-8.0-x86_64.tar.gz",
        "size": "211504521",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=414",
        "distro": "debian",
        "Nvirt": "openvz"
    },
    "415": {
        "osid": "415",
        "type": "openvz",
        "name": "fedora-21-x86_64",
        "filename": "fedora-21-x86_64.tar.gz",
        "size": "211693056",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=415",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "416": {
        "osid": "416",
        "type": "openvz",
        "name": "fedora-22-x86_64",
        "filename": "fedora-22-x86_64.tar.gz",
        "size": "228433798",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=416",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "417": {
        "osid": "417",
        "type": "openvz",
        "name": "fedora-23-x86_64",
        "filename": "fedora-23-x86_64.tar.gz",
        "size": "243133619",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=417",
        "distro": "fedora",
        "Nvirt": "openvz"
    },
    "418": {
        "osid": "418",
        "type": "openvz",
        "name": "suse-13.2-x86_64",
        "filename": "suse-13.2-x86_64.tar.gz",
        "size": "256334083",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=418",
        "distro": "suse",
        "Nvirt": "openvz"
    },
    "419": {
        "osid": "419",
        "type": "openvz",
        "name": "ubuntu-15.04-x86_64-minimal",
        "filename": "ubuntu-15.04-x86_64-minimal.tar.gz",
        "size": "90462370",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=419",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "420": {
        "osid": "420",
        "type": "openvz",
        "name": "ubuntu-15.04-x86_64",
        "filename": "ubuntu-15.04-x86_64.tar.gz",
        "size": "177043909",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=420",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "421": {
        "osid": "421",
        "type": "openvz",
        "name": "ubuntu-15.10-x86_64",
        "filename": "ubuntu-15.10-x86_64.tar.gz",
        "size": "181605094",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=421",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "422": {
        "osid": "422",
        "type": "openvz",
        "name": "ubuntu-15.10-x86_64-minimal",
        "filename": "ubuntu-15.10-x86_64-minimal.tar.gz",
        "size": "91644516",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=422",
        "distro": "ubuntu",
        "Nvirt": "openvz"
    },
    "423": {
        "osid": "423",
        "type": "lxc",
        "name": "centos-6-x86_64",
        "filename": "centos-6-x86_64.tar.gz",
        "size": "136257473",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=423",
        "distro": "centos",
        "Nvirt": "lxc"
    },
    "424": {
        "osid": "424",
        "type": "lxc",
        "name": "centos-6-x86",
        "filename": "centos-6-x86.tar.gz",
        "size": "149464062",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=424",
        "distro": "centos",
        "Nvirt": "lxc"
    },
    "425": {
        "osid": "425",
        "type": "lxc",
        "name": "centos-7-x86_64",
        "filename": "centos-7-x86_64.tar.gz",
        "size": "157722893",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=425",
        "distro": "centos",
        "Nvirt": "lxc"
    },
    "426": {
        "osid": "426",
        "type": "lxc",
        "name": "debian-7.0-x86",
        "filename": "debian-7.0-x86.tar.gz",
        "size": "192114536",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=426",
        "distro": "debian",
        "Nvirt": "lxc"
    },
    "427": {
        "osid": "427",
        "type": "lxc",
        "name": "debian-7.0-x86_64",
        "filename": "debian-7.0-x86_64.tar.gz",
        "size": "175112552",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=427",
        "distro": "debian",
        "Nvirt": "lxc"
    },
    "428": {
        "osid": "428",
        "type": "lxc",
        "name": "debian-8.5-x86",
        "filename": "debian-8.5-x86.tar.gz",
        "size": "223576750",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=428",
        "distro": "debian",
        "Nvirt": "lxc"
    },
    "429": {
        "osid": "429",
        "type": "lxc",
        "name": "debian-8.5-x86_64",
        "filename": "debian-8.5-x86_64.tar.gz",
        "size": "201761335",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=429",
        "distro": "debian",
        "Nvirt": "lxc"
    },
    "430": {
        "osid": "430",
        "type": "lxc",
        "name": "fedora-22-x86",
        "filename": "fedora-22-x86.tar.gz",
        "size": "319502817",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=430",
        "distro": "fedora",
        "Nvirt": "lxc"
    },
    "431": {
        "osid": "431",
        "type": "lxc",
        "name": "fedora-22-x86_64",
        "filename": "fedora-22-x86_64.tar.gz",
        "size": "333778371",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=431",
        "distro": "fedora",
        "Nvirt": "lxc"
    },
    "432": {
        "osid": "432",
        "type": "lxc",
        "name": "fedora-23-x86",
        "filename": "fedora-23-x86.tar.gz",
        "size": "340373290",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=432",
        "distro": "fedora",
        "Nvirt": "lxc"
    },
    "433": {
        "osid": "433",
        "type": "lxc",
        "name": "fedora-23-x86_64",
        "filename": "fedora-23-x86_64.tar.gz",
        "size": "355547785",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=433",
        "distro": "fedora",
        "Nvirt": "lxc"
    },
    "434": {
        "osid": "434",
        "type": "lxc",
        "name": "ubuntu-12.04-x86",
        "filename": "ubuntu-12.04-x86.tar.gz",
        "size": "106008608",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=434",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "435": {
        "osid": "435",
        "type": "lxc",
        "name": "ubuntu-12.04-x86_64",
        "filename": "ubuntu-12.04-x86_64.tar.gz",
        "size": "129867453",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=435",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "436": {
        "osid": "436",
        "type": "lxc",
        "name": "ubuntu-14.04-x86",
        "filename": "ubuntu-14.04-x86.tar.gz",
        "size": "133147719",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=436",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "437": {
        "osid": "437",
        "type": "lxc",
        "name": "ubuntu-14.04-x86_64",
        "filename": "ubuntu-14.04-x86_64.tar.gz",
        "size": "136220969",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=437",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "438": {
        "osid": "438",
        "type": "lxc",
        "name": "ubuntu-15.10-x86",
        "filename": "ubuntu-15.10-x86.tar.gz",
        "size": "144654606",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=438",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "439": {
        "osid": "439",
        "type": "lxc",
        "name": "ubuntu-15.10-x86_64",
        "filename": "ubuntu-15.10-x86_64.tar.gz",
        "size": "144731981",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=439",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "440": {
        "osid": "440",
        "type": "lxc",
        "name": "ubuntu-16.04-x86",
        "filename": "ubuntu-16.04-x86.tar.gz",
        "size": "136123767",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=440",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "441": {
        "osid": "441",
        "type": "lxc",
        "name": "ubuntu-16.04-x86_64",
        "filename": "ubuntu-16.04-x86_64.tar.gz",
        "size": "134851413",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=441",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "442": {
        "osid": "442",
        "type": "lxc",
        "name": "ubuntu-16.10-x86",
        "filename": "ubuntu-16.10-x86.tar.gz",
        "size": "136323339",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=442",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    },
    "443": {
        "osid": "443",
        "type": "lxc",
        "name": "ubuntu-16.10-x86_64",
        "filename": "ubuntu-16.10-x86_64.tar.gz",
        "size": "135117723",
        "pygrub": "0",
        "drive": "",
        "hvm": "0",
        "perf_ops": "0",
        "active": "1",
        "url": "http:\/\/files.virtualizor.com\/ostemplates.php?osid=443",
        "distro": "ubuntu",
        "Nvirt": "lxc"
    }
}

HTTP Request

https://hostname:4085/index.php?act=os

Parameters

Name Type Value Description Required
act GET os The action specified to perform operation and retrieve data Yes

Create Template

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['vpsid'] = 3394;
    $post['tmpname'] = 'test_template';
    $post['extra'] = '';
    $post['fstype'] = '';
    $post['perf_ops'] = 0;
    $post['noresizefs'] = 0;

    $output = $admin->createtemplate($post);

    print_r(json_encode($output));

?>

Result: The above code produces output in the following format


HTTP Request

https://hostname:4085/index.php?act=createtemplate

Parameters

Name Type Value Description Required
act GET createtemplate The action specified to perform operation and return success after the template has been created successfully Yes
vpsid Post Int VPS ID whose template needs to be created Yes
tmpname POST tmpname Name to be given to the template Yes
extra POST extra Extra things to specified before creating a template No
fstype POST fstype File system type of the template No
perf_ops POST perf_ops Extra operation that need to be performed while creating a template No
noresizefs POST 1/0 If set, the filesystem of the template would be resized No
createtemp POST 1/0 Flag set to create the template Yes

List ISO

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $output = $admin->iso();

    print_r(json_encode($output));
?>

Result: The above code produces the following output:

{
    "title": "ISO",
    "isos": {
        "debian-8.0.0-amd64-netinst.iso": {
            "iso": "debian-8.0.0-amd64-netinst.iso",
            "mg": [17],
            "name": "debian-8.0.0-amd64-netinst.iso",
            "filename": "debian-8.0.0-amd64-netinst.iso",
            "size": "257949696",
            "distro": "debian"
        },
        "ubuntu-14.10-server-amd64.iso": {
            "iso": "ubuntu-14.10-server-amd64.iso",
            "mg": "",
            "name": "ubuntu-14.10-server-amd64.iso",
            "filename": "ubuntu-14.10-server-amd64.iso",
            "size": "610271232",
            "distro": "ubuntu"
        },
        "ubuntu-14.10-server-i386.iso": {
            "iso": "ubuntu-14.10-server-i386.iso",
            "mg": "",
            "name": "ubuntu-14.10-server-i386.iso",
            "filename": "ubuntu-14.10-server-i386.iso",
            "size": "603979776",
            "distro": "ubuntu"
        },
        "debian-8.1.0-amd64-netinst.iso": {
            "iso": "debian-8.1.0-amd64-netinst.iso",
            "mg": "",
            "name": "debian-8.1.0-amd64-netinst.iso",
            "filename": "debian-8.1.0-amd64-netinst.iso",
            "size": "258998272",
            "distro": "debian"
        },
        "ubuntu-15.10-server-i386.iso": {
            "iso": "ubuntu-15.10-server-i386.iso",
            "mg": "",
            "name": "ubuntu-15.10-server-i386.iso",
            "filename": "ubuntu-15.10-server-i386.iso",
            "size": "658505728",
            "distro": "ubuntu"
        },
        "ubuntu-16.04-desktop-amd64.iso": {
            "iso": "ubuntu-16.04-desktop-amd64.iso",
            "mg": "",
            "name": "ubuntu-16.04-desktop-amd64.iso",
            "filename": "ubuntu-16.04-desktop-amd64.iso",
            "size": "false",
            "distro": "ubuntu"
        },
        "CentOS-6.8-x86_64-minimal.iso": {
            "iso": "CentOS-6.8-x86_64-minimal.iso",
            "mg": "null",
            "name": "CentOS-6.8-x86_64-minimal.iso",
            "filename": "CentOS-6.8-x86_64-minimal.iso",
            "size": 468713472,
            "distro": "centos"
        },
        "CentOS-7-x86_64-Minimal-1511.iso": {
            "iso": "CentOS-7-x86_64-Minimal-1511.iso",
            "mg": "null",
            "name": "CentOS-7-x86_64-Minimal-1511.iso",
            "filename": "CentOS-7-x86_64-Minimal-1511.iso",
            "size": "632291328",
            "distro": "centos"
        },
        "FreeBSD-11.0-RELEASE-amd64-disc1.iso": {
            "iso": "FreeBSD-11.0-RELEASE-amd64-disc1.iso",
            "mg": "null",
            "name": "FreeBSD-11.0-RELEASE-amd64-disc1.iso",
            "filename": "FreeBSD-11.0-RELEASE-amd64-disc1.iso",
            "size": "688340992",
            "distro": "others"
        }
    },
    "mgs": {
        "16": {
            "mgid": "16",
            "mg_name": "just another kvm mg",
            "mg_desc": "aise hi tp re",
            "mg_type": "kvm"
        },
        "21": {
            "mgid": "21",
            "mg_name": "Jevin",
            "mg_desc": "DND",
            "mg_type": "kvm"
        }
    },
    "timenow": "1478754902",
    "time_taken": "0.139"
}

HTTP Request

https://hostname:4085/index.php?act=iso

Parameters

Name Type Value Description Required
act GET iso The action specified to perform operation and retrieve data Yes
page_no POST Int Specify page number till which list os ISO will be displayed No
count POST Int The number of ISOs that will be displayed No

ADD ISO

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['url'] = 'http://ftp.riken.jp/Linux/fedora/releases/24/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-24-1.2.iso';
    $post['filename'] = 'template_name';
    $post['mgs'] = 'mediagroup_name';

    $output = $admin->addiso($post);
    print_r($output);
?>

Result:The above code produces the following ouput

{
    "title" : "Add ISO",
    "done" : "1"
    "time_taken": "0.125"
}

HTTP Request

https://hostname:4085/index.php?act=addiso

Parameters

Name Type Value Description Required
act GET addiso The action specified to perform operation and retrieve data Yes
url POST url URL of the OS ISO Yes
filename POST filename Name of the ISO to be saved as( Optional) No
mgs POST mgs Name of the Media Group( Optional) No

Mediagroups

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->mediagroups();
    print_r(json_encode($output));
?>

Result: The above code will produce output in the given format

{
    "title": "Media Groups",
    "mediagroups": {
        "1": {
            "mgid": "1",
            "mg_name": "windows",
            "mg_desc": "dsafsd",
            "mg_type": "kvm",
            "mg_media": {
                "100066": "centos-"
            }
        },
        "14": {
            "mgid": "14",
            "mg_name": "openvz1",
            "mg_desc": "asdasdadasd",
            "mg_type": "openvz"
        },
        "15": {
            "mgid": "15",
            "mg_name": "openvz2",
            "mg_desc": "asdadad",
            "mg_type": "openvz"
        },
        "16": {
            "mgid": "16",
            "mg_name": "just another kvm mg",
            "mg_desc": "aise hi tp re",
            "mg_type": "kvm",
            "mg_media": {
                "334": "centos-7.0-x86_64"
            }
        },
        "17": {
            "mgid": "17",
            "mg_name": "only ISO",
            "mg_desc": "Only ISO",
            "mg_type": "kvm"
        },
        "18": {
            "mgid": "18",
            "mg_name": "LXC-group",
            "mg_desc": "test dfvcdfcv",
            "mg_type": "lxc"
        },
        "19": {
            "mgid": "19",
            "mg_name": "LXC-groupsxd",
            "mg_desc": "sxsx",
            "mg_type": "lxc"
        }
    },
    "timenow": "1471321500",
    "time_taken": "0.125"
}

HTTP Request

https://hostname:4085/index.php?act=mediagroups

Parameters

Name Type Value Description Required
act GET mediagroups The action specified to perform operation and retrieve data Yes

Add Media Groups

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post = array();
    $post['mg_name'] = 'testing for api';
    $post['mg_desc'] = 'Testing for the api';
    $post['mg_type'] = 'kvm';
    $post['addmg'] = 1;

    $output = $admin->addmg($post);
    print_r(json_encode($output));

?>

Result: The above produces the following output

{
    "title": "Add Media Group",
    "done": "true",
    "timenow": "1471322610",
    "time_taken": "0.097"
}

HTTP Request

https://hostname:4085/index.php?act=addmg

Parameters

Name Type Value Description Required
act GET addmg The action specified to perform operation Yes
mg_name POST mg_name Name given to the media group Yes
mg_desc POST mg_desc The description of the media group No
mg_type POST mg_type Type of media group Yes
addmg POST 1 If set then media group will be added successfully Yes

Accepted Value for mg_type

mg_type
kvm
openvz
xen
xenhvm
xcp
xcphvm
lxc

Search Media

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['mgid'] = 1;
    $post['mg_name'] = '';
    $page = 1;
    $reslen = 20;

    $output = $admin->mediagroups($page,$reslen,$post);
    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Media Groups",
    "mediagroups": {
        "1": {
            "mgid": "1",
            "mg_name": "test-api",
            "mg_desc": "Example for api",
            "mg_type": "xcp"
        }
    },
    "timenow": "1481534975",
    "time_taken": "0.129"
}

HTTP Request

https://hostname:4085/index.php?act=mediagroups&mgid=MGID&mg_name=MG_NAME&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Parameters
act GET mediagroups List the mediagroups Yes
mgid GET Int List Mediagroups according to media id No
mg_name GET mg_name List mediagroups according to media group name No
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Edit Media Group

<?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['mgid'] = 22;
    $post['editmg'] = 1;
    $post['mg_name'] = 'test-api-mg';
    $post['mg_desc'] = 'The edit is working';

    $output = $admin->editmg($post);    

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Edit Media Group",
    "done": "true",
    "timenow": "1480308633",
    "time_taken": "0.106"
}

HTTP Request

https://hostname:4085/index.php?act=editmg

Parameters

Name Type Value Description Parameters
act GET editmg The action will return mediagroup after editing Yes
editmg Yes 1/0 If set then the mediagroup will be edited successfully Yes
mg_desc Yes mg_desc The description of the media group Yes
mg_name Yes mg_name The name given to the mediagroup Yes

Delete Media Group

<?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['delete'] = 22;

    $output = $admin->delete_mg($post);     //Will return the media group id as a result

    print_r(json_encode($output));
?>

Result : The above code will produce the following output

{
    "title": "Media Groups",
    "done": ["22"],
    "mediagroups": "null",
    "timenow": "1480310188",
    "time_taken": "0.108"
}

HTTP Request

https://hostname:4085/index.php?act=mediagroups&delete=MGID

Parameters

Name Type Value Description Required
act GET mediagroups The action will return the list of mediagroups after a specified media group is deleted Yes
delete POST Int The media group that needs to be deleted. Yes

List Distro

<?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);

    $output = $admin->list_distros();

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "List Distros",
    "oses": "null",
    "oslist": "null",
    "ostemplates": "null",
    "mgs": "null",
    "distros": {
        "centos": {
            "distro": "centos",
            "name": "CentOS",
            "logo": "",
            "screenshot": "",
            "desc": "CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.\n<br \/>\n<br \/>\nCentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. CentOS mainly changes packages to remove upstream vendor branding and artwork.  \n<br \/>\n<br \/>\nCentOS is developed by a small but growing team of core developers. CentOS is free.",
            "permanent": 1
        },
        "fedora": {
            "distro": "fedora",
            "name": "Fedora",
            "logo": "",
            "screenshot": "",
            "desc": "Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. \n<br \/>\n<br \/>\nIt is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.\n<br \/>\n<br \/>\nThe Fedora Project is out front for you, leading the advancement of free, open software and content.",
            "permanent": 1
        },
        "suse": {
            "distro": "suse",
            "name": "openSUSE",
            "logo": "",
            "screenshot": "",
            "desc": "openSUSE is a free and Linux-based operating system for your PC, Laptop or Server. \nThe openSUSE project is a worldwide effort that promotes the use of Linux everywhere. \n<br \/>\n<br \/>\nopenSUSE creates one of the world's best Linux distributions, working together in an open, transparent and friendly manner as part of the worldwide Free and Open Source Software community.\n<br \/>\n<br \/>\nThe project is controlled by its community and relies on the contributions of individuals, working as testers, writers, translators, usability experts, artists and ambassadors or developers.",
            "permanent": 1
        },
        "debian": {
            "distro": "debian",
            "name": "Debian",
            "desc": "Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. \r\n<br \/>\r\n<br \/>\r\nDebian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU\/Linux.\r\n<br \/>\r\n<br \/>\r\nDebian GNU\/Linux provides more than a pure OS: it comes with over 25000 packages, precompiled software bundled up in a nice format for easy installation on your machine.",
            "logo": "",
            "screenshot": "",
            "permanent": 1
        },
        "ubuntu": {
            "distro": "ubuntu",
            "name": "Ubuntu",
            "logo": "",
            "screenshot": "",
            "desc": "Ubuntu is part of the Debian family of Linux operating systems, which has the largest pool of developer talent, with every package built by experts. \n<br \/>\n<br \/>Canonical's rigorous release management, quality assurance, stress testing and product design enhances the quality of Ubuntu Server.\n<br \/>\n<br \/>\nSuper-fast and great-looking, Ubuntu is a secure, intuitive operating system that powers desktops, servers, netbooks and laptops. Ubuntu is, and always will be, absolutely free.",
            "permanent": 1
        },
        "scientific": {
            "distro": "scientific",
            "name": "Scientific",
            "logo": "",
            "screenshot": "",
            "desc": "Scientific Linux is an Enterprise Linux rebuild sponsored by Fermi National Accelerator Laboratory. \n<br \/>\n<br \/>Scientific Linux has been installed all over the world. At one time or another Scientific Linux has had an install base in experiments on all seven continents. It has even been loaded onto systems at the International Space Station."
        },
        "newditrosss": {
            "distro": "newditrosss",
            "name": "newditrosss",
            "desc": "",
            "logo": "http:\/\/serversub.net\/img\/Windows_logo_-_2012_derivative.svg.png",
            "screenshot": ""
        },
        "test": {
            "distro": "test",
            "name": "Test Distro",
            "desc": "shi &lt;b&gt; abdccsd &lt;\/b&gt;asasasjlj\r\naskdaskd;lasd\r\nadasjdkaljsd",
            "logo": "http:\/\/www.littleendian.com\/wp-content\/uploads\/windows_logo_2012_small.png",
            "screenshot": "http:\/\/i444.photobucket.com\/albums\/qq169\/temari253\/Naruto-1.jpg"
        },
        "test_distro": {
            "distro": "test_distro",
            "name": "test",
            "desc": "This is a test distro",
            "logo": "",
            "screenshot": ""
        },
        "windows": {
            "distro": "windows",
            "name": "Windows",
            "desc": "Test",
            "logo": "http:\/\/serversub.net\/img\/Windows_logo_-_2012_derivative.svg.png",
            "screenshot": ""
        }
    },
    "timenow": "1473749151",
    "time_taken": "0.077"
}

HTTP Request

https://hostname:4085/index.php?act=list_distros

Parameters

Name Type Value Description Required
act GET list_distros The action specified to perform operation and retrieve data Yes

Add Distro

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
        $post = array();
    $post['distro'] = 'test_distro';
    $post['distro_name'] = 'test';
    $post['distro_desc'] = 'This is a test distro';
    $post['add_distro'] = 1;
    $output = $admin->add_distro($post);
    print_r(json_encode($output));

?>

Result:The above code produces the following output

{
    "title": "Virtualizor",
    "done": 1,
    "distros": {
        "centos": {
            "distro": "centos",
            "name": "CentOS",
            "logo": "",
            "screenshot": "",
            "desc": "CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.\n<br \/>\n<br \/>\nCentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. CentOS mainly changes packages to remove upstream vendor branding and artwork.  \n<br \/>\n<br \/>\nCentOS is developed by a small but growing team of core developers. CentOS is free.",
            "permanent": 1
        },
        "fedora": {
            "distro": "fedora",
            "name": "Fedora",
            "logo": "",
            "screenshot": "",
            "desc": "Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. \n<br \/>\n<br \/>\nIt is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.\n<br \/>\n<br \/>\nThe Fedora Project is out front for you, leading the advancement of free, open software and content.",
            "permanent": 1
        },
        "suse": {
            "distro": "suse",
            "name": "openSUSE",
            "logo": "",
            "screenshot": "",
            "desc": "openSUSE is a free and Linux-based operating system for your PC, Laptop or Server. \nThe openSUSE project is a worldwide effort that promotes the use of Linux everywhere. \n<br \/>\n<br \/>\nopenSUSE creates one of the world's best Linux distributions, working together in an open, transparent and friendly manner as part of the worldwide Free and Open Source Software community.\n<br \/>\n<br \/>\nThe project is controlled by its community and relies on the contributions of individuals, working as testers, writers, translators, usability experts, artists and ambassadors or developers.",
            "permanent": 1
        },
        "debian": {
            "distro": "debian",
            "name": "Debian",
            "desc": "Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. \r\n<br \/>\r\n<br \/>\r\nDebian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU\/Linux.\r\n<br \/>\r\n<br \/>\r\nDebian GNU\/Linux provides more than a pure OS: it comes with over 25000 packages, precompiled software bundled up in a nice format for easy installation on your machine.",
            "logo": "",
            "screenshot": "",
            "permanent": 1
        },
        "ubuntu": {
            "distro": "ubuntu",
            "name": "Ubuntu",
            "logo": "",
            "screenshot": "",
            "desc": "Ubuntu is part of the Debian family of Linux operating systems, which has the largest pool of developer talent, with every package built by experts. \n<br \/>\n<br \/>Canonical's rigorous release management, quality assurance, stress testing and product design enhances the quality of Ubuntu Server.\n<br \/>\n<br \/>\nSuper-fast and great-looking, Ubuntu is a secure, intuitive operating system that powers desktops, servers, netbooks and laptops. Ubuntu is, and always will be, absolutely free.",
            "permanent": 1
        },
        "scientific": {
            "distro": "scientific",
            "name": "Scientific",
            "logo": "",
            "screenshot": "",
            "desc": "Scientific Linux is an Enterprise Linux rebuild sponsored by Fermi National Accelerator Laboratory. \n<br \/>\n<br \/>Scientific Linux has been installed all over the world. At one time or another Scientific Linux has had an install base in experiments on all seven continents. It has even been loaded onto systems at the International Space Station."
        },
        "newditrosss": {
            "distro": "newditrosss",
            "name": "newditrosss",
            "desc": "",
            "logo": "http:\/\/serversub.net\/img\/Windows_logo_-_2012_derivative.svg.png",
            "screenshot": ""
        },
        "test": {
            "distro": "test",
            "name": "Test Distro",
            "desc": "shi &lt;b&gt; abdccsd &lt;\/b&gt;asasasjlj\r\naskdaskd;lasd\r\nadasjdkaljsd",
            "logo": "http:\/\/www.littleendian.com\/wp-content\/uploads\/windows_logo_2012_small.png",
            "screenshot": "http:\/\/i444.photobucket.com\/albums\/qq169\/temari253\/Naruto-1.jpg"
        },
        "windows": {
            "distro": "windows",
            "name": "Windows",
            "desc": "Test",
            "logo": "http:\/\/serversub.net\/img\/Windows_logo_-_2012_derivative.svg.png",
            "screenshot": ""
        },
        "test_distro": {
            "distro": "test_distro",
            "name": "test",
            "desc": "This is a test distro",
            "logo": "",
            "screenshot": ""
        }
    },
    "timenow": "1471328893",
    "time_taken": "0.099"
}

HTTP Request

https://hostname:4085/index.php?act=add_distro

Parameters

Name Type Value Description Required
act GET add_distro The action specified to perform operation and retrieve data Yes
distro POST distro Name of the distro Yes
distro_name POST distro_name Actual name of the distro Yes
distro_desc POST distro_desc Description of the distro Yes
add_distro POST 1 IF set then the distro will be added Yes

Edit Distro

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['edit'] = 'test_distro';
    $post['distro_name'] = 'Test-api-distro';
    $post['distro_desc'] = 'This is a test distro for api';
    $post['add_distro'] = 1;

    $output = $admin->edit_distro($post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "KVMTestServer",
    "done": 1,
    "distros": {
        "centos": {
            "distro": "centos",
            "name": "CentOS",
            "logo": "",
            "screenshot": "",
            "desc": "CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.\n<br \/>\n<br \/>\nCentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. CentOS mainly changes packages to remove upstream vendor branding and artwork.  \n<br \/>\n<br \/>\nCentOS is developed by a small but growing team of core developers. CentOS is free.",
            "permanent": 1
        },
        "fedora": {
            "distro": "fedora",
            "name": "Fedora",
            "logo": "",
            "screenshot": "",
            "desc": "Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. \n<br \/>\n<br \/>\nIt is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.\n<br \/>\n<br \/>\nThe Fedora Project is out front for you, leading the advancement of free, open software and content.",
            "permanent": 1
        },
        "suse": {
            "distro": "suse",
            "name": "openSUSE",
            "logo": "",
            "screenshot": "",
            "desc": "openSUSE is a free and Linux-based operating system for your PC, Laptop or Server. \nThe openSUSE project is a worldwide effort that promotes the use of Linux everywhere. \n<br \/>\n<br \/>\nopenSUSE creates one of the world's best Linux distributions, working together in an open, transparent and friendly manner as part of the worldwide Free and Open Source Software community.\n<br \/>\n<br \/>\nThe project is controlled by its community and relies on the contributions of individuals, working as testers, writers, translators, usability experts, artists and ambassadors or developers.",
            "permanent": 1
        },
        "debian": {
            "distro": "debian",
            "name": "Debian",
            "desc": "Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. \r\n<br \/>\r\n<br \/>\r\nDebian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU\/Linux.\r\n<br \/>\r\n<br \/>\r\nDebian GNU\/Linux provides more than a pure OS: it comes with over 25000 packages, precompiled software bundled up in a nice format for easy installation on your machine.",
            "logo": "",
            "screenshot": "",
            "permanent": 1
        },
        "ubuntu": {
            "distro": "ubuntu",
            "name": "Ubuntu",
            "logo": "",
            "screenshot": "",
            "desc": "Ubuntu is part of the Debian family of Linux operating systems, which has the largest pool of developer talent, with every package built by experts. \n<br \/>\n<br \/>Canonical's rigorous release management, quality assurance, stress testing and product design enhances the quality of Ubuntu Server.\n<br \/>\n<br \/>\nSuper-fast and great-looking, Ubuntu is a secure, intuitive operating system that powers desktops, servers, netbooks and laptops. Ubuntu is, and always will be, absolutely free.",
            "permanent": 1
        },
        "scientific": {
            "distro": "scientific",
            "name": "Scientific",
            "logo": "",
            "screenshot": "",
            "desc": "Scientific Linux is an Enterprise Linux rebuild sponsored by Fermi National Accelerator Laboratory. \n<br \/>\n<br \/>Scientific Linux has been installed all over the world. At one time or another Scientific Linux has had an install base in experiments on all seven continents. It has even been loaded onto systems at the International Space Station."
        },
        "newditrosss": {
            "distro": "newditrosss",
            "name": "newditrosss",
            "desc": "",
            "logo": "https:\/\/serversub.net\/img\/Windows_logo_-_2012_derivative.svg.png",
            "screenshot": ""
        },
        "test": {
            "distro": "test",
            "name": "Test Distro",
            "desc": "shi &lt;b&gt; abdccsd &lt;\/b&gt;asasasjlj\r\naskdaskd;lasd\r\nadasjdkaljsd",
            "logo": "http:\/\/www.littleendian.com\/wp-content\/uploads\/windows_logo_2012_small.png",
            "screenshot": "http:\/\/i444.photobucket.com\/albums\/qq169\/temari253\/Naruto-1.jpg"
        },
        "test_distro": {
            "distro": "test_distro",
            "name": "Test-api-distro",
            "desc": "This is a test distro for api",
            "logo": "",
            "screenshot": ""
        },
        "windows": {
            "distro": "windows",
            "name": "Windows",
            "desc": "Test",
            "logo": "http:\/\/serversub.net\/img\/Windows_logo_-_2012_derivative.svg.png",
            "screenshot": ""
        }
    },
    "timenow": "1480313372",
    "time_taken": "0.107"
}

HTTP Request

https://hostname:4085/index.php?act=add_distro&edit=DISTRO

Parameters

Name Type Value Description Required
act GET add_distro The action will return the distro after performing specific action Yes
edit POST edit The distro that needs to be edited. assign the value which is given under “Distro” Yes
distro_name POST distro_name The distro name that needs to be edited Yes
distro_desc POST distro_desc The distro description that needs to be edited Yes
add_distro POST 1/0 If set then the distro will be edited Yes

Delete Distro

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['delete'] = 'test_distro';

    $output = $admin->list_distros($post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "List Distros",
    "done": "1",
    "oses": "null",
    "oslist": "null",
    "ostemplates": "null",
    "mgs": "null",
    "timenow": "1480314845",
    "time_taken": "0.108"
}

HTTP Request

https://hostname:4085/index.php?act=list_distros&delete=DISTRO

Parameters

Name Type Value Description Required
act GET list_distros The action will return list of distros after deleting Yes
delete POST distro The distro that needs to be deleted Yes

Tasks

Show Tasks

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $output = $admin->tasks();
    print_r(json_encode($output));

?>

Result: The above code produces output in the following format

{
    "title": "Tasks List",
    "tasks": {
        "9409": {
            "actid": "9409",
            "slaveactid": "0",
            "uid": "0",
            "vpsid": "3394",
            "serid": 0,
            "action": "createtemplate",
            "data": "a:9:{s:12:\"progress_msg\";s:30:\"Beginning template creation...\";s:3:\"vps\";a:71:{s:5:\"vpsid\";s:4:\"3394\";s:8:\"vps_name\";s:5:\"v2007\";s:4:\"uuid\";s:16:\"rlzwnmnf00weof7r\";s:5:\"serid\";i:0;s:4:\"time\";s:10:\"1470744026\";s:8:\"edittime\";s:1:\"0\";s:4:\"virt\";s:3:\"kvm\";s:3:\"uid\";s:3:\"354\";s:4:\"plid\";s:1:\"0\";s:8:\"hostname\";s:12:\"www.test.com\";s:4:\"osid\";s:3:\"270\";s:7:\"os_name\";s:14:\"centos-6.5-x86\";s:3:\"iso\";s:0:\"\";s:7:\"sec_iso\";s:0:\"\";s:4:\"boot\";s:3:\"cda\";s:5:\"space\";s:1:\"5\";s:6:\"inodes\";s:1:\"0\";s:3:\"ram\";s:4:\"1024\";s:5:\"burst\";s:1:\"0\";s:4:\"swap\";s:4:\"1024\";s:3:\"cpu\";s:4:\"1024\";s:5:\"cores\";s:1:\"4\";s:6:\"cpupin\";s:2:\"-1\";s:11:\"cpu_percent\";s:4:\"0.00\";s:9:\"bandwidth\";s:1:\"0\";s:13:\"network_speed\";s:1:\"0\";s:12:\"upload_speed\";s:2:\"-1\";s:2:\"io\";s:1:\"0\";s:3:\"ubc\";s:0:\"\";s:4:\"acpi\";s:1:\"1\";s:4:\"apic\";s:1:\"1\";s:3:\"pae\";s:1:\"1\";s:6:\"shadow\";s:1:\"0\";s:3:\"vnc\";s:1:\"1\";s:7:\"vncport\";s:4:\"6262\";s:10:\"vnc_passwd\";s:0:\"\";s:3:\"hvm\";s:1:\"0\";s:9:\"suspended\";s:1:\"0\";s:14:\"suspend_reason\";N;s:12:\"nw_suspended\";N;s:6:\"rescue\";s:1:\"0\";s:12:\"band_suspend\";s:1:\"0\";s:6:\"tuntap\";s:1:\"0\";s:3:\"ppp\";s:1:\"0\";s:5:\"ploop\";s:1:\"0\";s:14:\"dns_nameserver\";s:6:\"a:0:{}\";s:17:\"osreinstall_limit\";s:1:\"0\";s:11:\"preferences\";N;s:8:\"nic_type\";s:7:\"default\";s:8:\"vif_type\";s:0:\"\";s:6:\"virtio\";s:1:\"0\";s:9:\"pv_on_hvm\";s:1:\"0\";}}\";s:6:\"webuzo\";s:1:\"0\";s:16:\"disable_ebtables\";s:1:\"0\";s:13:\"admin_managed\";s:1:\"0\";s:3:\"rdp\";s:1:\"0\";s:9:\"os_distro\";s:6:\"centos\";}s:4:\"name\";s:13:\"test_template\";s:5:\"extra\";s:0:\"\";s:6:\"pygrub\";b:0;s:5:\"drive\";s:0:\"\";s:10:\"noresizefs\";b:0;s:8:\"perf_ops\";b:0;s:6:\"fstype\";s:4:\"ext3\";}",
            "time": "1471310375",
            "status_txt": "Syncing with database...",
            "status": "1",
            "progress": "100",
            "started": "<b>Today<\/b> at 2:19 am",
            "updated": "<b>Today<\/b> at 2:22 am",
            "ended": "<b>Today<\/b> at 2:22 am",
            "proc_id": "0",
            "ip": "your_server_ip",
            "internal": "0",
            "email": "root",
            "server_name": "localhost"
        },
        "9408": {
            "actid": "9408",
            "slaveactid": "0",
            "uid": "0",
            "vpsid": "3398",
            "serid": 0,
            "action": "restart_vps",
            "data": "b:0;",
            "time": "1471076550",
            "status_txt": "Completed",
            "status": "1",
            "progress": "100",
            "started": "August 13, 2016, 9:22 am",
            "updated": "August 13, 2016, 9:22 am",
            "ended": "August 13, 2016, 9:22 am",
            "proc_id": "0",
            "ip": "120.62.37.166",
            "internal": "0",
            "email": "root",
            "server_name": "localhost"
        },
        "9407": {
            "actid": "9407",
            "slaveactid": "319",
            "uid": "0",
            "vpsid": "3398",
            "serid": "1",
            "action": "change_dnsnameserver",
            "data": "b:0;",
            "time": "1471096286",
            "status_txt": "Completed",
            "status": "1",
            "progress": "100",
            "started": "August 13, 2016, 2:51 pm",
            "updated": "August 13, 2016, 2:51 pm",
            "ended": "August 13, 2016, 2:51 pm",
            "proc_id": "0",
            "ip": "your_server_ip",
            "internal": "0",
            "email": "root",
            "server_name": "KVM Slave: ip_addr"
        },
        "9406": {
            "actid": "9406",
            "slaveactid": "0",
            "uid": "0",
            "vpsid": "3398",
            "serid": 0,
            "action": "editvps_callback",
            "data": "a:2:{s:3:\"act\";a:1:{i:0;s:8:\"changeip\";}s:4:\"data\";a:1:{s:4:\"ipv4\";s:13:\"192.168.1.230\";}}",
            "time": "1471076532",
            "status_txt": "ERROR: VPS does not exist in WHMCS Database",
            "status": "-1",
            "progress": "0",
            "started": "August 13, 2016, 9:26 am",
            "updated": "August 13, 2016, 9:26 am",
            "ended": "August 13, 2016, 9:26 am",
            "proc_id": "0",
            "ip": "120.62.37.166",
            "internal": "0",
            "email": "root",
            "server_name": "localhost"
        },
        "9405": {
            "actid": "9405",
            "slaveactid": "0",
            "uid": "0",
            "vpsid": "3406",
            "serid": 0,
            "action": "restart_vps",
            "data": "b:0;",
            "time": "1471076287",
            "status_txt": "Completed",
            "status": "1",
            "progress": "100",
            "started": "August 13, 2016, 9:18 am",
            "updated": "August 13, 2016, 9:18 am",
            "ended": "August 13, 2016, 9:18 am",
            "proc_id": "0",
            "ip": "120.62.37.166",
            "internal": "0",
            "email": "root",
            "server_name": "localhost"
        },
        "9404": {
            "actid": "9404",
            "slaveactid": "0",
            "uid": "0",
            "vpsid": "3406",
            "serid": 0,
            "action": "editvps_callback",
            "data": "a:2:{s:3:\"act\";a:1:{i:0;s:8:\"changeip\";}s:4:\"data\";a:1:{s:4:\"ipv4\";s:13:\"192.168.10.38\";}}",
            "time": "1471076150",
            "status_txt": "ERROR: VPS does not exist in WHMCS Database",
            "status": "-1",
            "progress": "0",
            "started": "August 13, 2016, 9:18 am",
            "updated": "August 13, 2016, 9:18 am",
            "ended": "August 13, 2016, 9:18 am",
            "proc_id": "0",
            "ip": "120.62.37.166",
            "internal": "0",
            "email": "root",
            "server_name": "localhost"
        }
    },
    "timenow": "1471331695",
    "time_taken": "0.138"
}

HTTP Request

https://hostname:4085/index.php?act=tasks

Parameters

Name Type Value Description Required
act GET tasks The action specified to perform operation and retrieve data Yes

Show Logs

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['show_logs'] = 4023;
    $output = $admin->tasks($post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Tasks List",
    "tasks": "null",
    "logs_data": {
        "logs": {
            "Rebuild": "Starting Task : 4023\nSetting Active server 0\n\nSyncing up with Slave\nPerforming Reinstall of VPS : 3741\nRTNETLINK answers: Invalid argument\nsetlocale: No such file or directory\n  New size (160 extents) matches existing size (160 extents)\n  Run `lvresize --help' for more information.\nWarning: The partition table looks like it was made\n  for C\/H\/S=*\/106\/39 (instead of 652\/255\/63).\nFor this listing I'll assume that geometry.\nChecking that no-one is using this disk right now ...\nBLKRRPART: Invalid argument\nOK\nWarning: The partition table looks like it was made\n  for C\/H\/S=*\/106\/39 (instead of 652\/255\/63).\nFor this listing I'll assume that geometry.\n\t\tstart: (c,h,s) expected (0,52,21) found (0,32,33)\n\t\tend: (c,h,s) expected (506,84,24) found (130,105,39)\nWarning: partition 1 does not end at a cylinder boundary\nBLKRRPART: Invalid argument\nIf you created or changed a DOS partition, \/dev\/foo7, say, then use dd(1)\nto zero the first 512 bytes:  dd if=\/dev\/zero of=\/dev\/foo7 bs=512 count=1\n(See fdisk(8).)\nmkswap: \/dev\/mapper\/vg-vsv2165--0rk0--sws29t1z8ajriqdi2: warning: don't erase bootbits sectors\n        on whole disk. Use -f to force.\ndevice-mapper: remove ioctl on vg-vsv2165--0rk0--sws29t1z8ajriqdi2 failed: Device or resource busy\ne2fsck 1.42.6 (21-Sep-2012)\nresize2fs 1.42.6 (21-Sep-2012)\ndevice-mapper: remove ioctl on vg-vsv2165--0rk0--sws29t1z8ajriqdi1 failed: Device or resource busy\nsetlocale: No such file or directory\nReinstall Done\nSetting Root \/ Admin Password\nsetlocale: No such file or directory\nBuilding DHCP\nStarting VPS\nsetlocale: No such file or directory\nsetlocale: No such file or directory\nIllegal target name 'vmv2165'.\nChain 'vmv2165' doesn't exist.\nsetlocale: No such file or directory\nerror: failed to get domain 'v2165'\nerror: Domain not found: no domain with matching name 'v2165'\nRTNETLINK answers: No such file or directory\nRTNETLINK answers: Invalid argument\nFetching VPS Status\nsetlocale: No such file or directory\nRebuild Completed !\nEmailed User !\nEmailed Admin !\nErrors:\n"
        }
    },
    "timenow": "1480152507",
    "time_taken": "0.123"
}

HTTP Request

https://hostname:4085/index.php?act=tasks

Parameters

Name Type Value Description Required
act GET tasks The action will return the tasks that had been performed Yes
show_logs POST Int Returns the logs of a specific task by passing task id as a POST parameter Yes

Search Tasks

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['actid'] = 4018;  //You can use any variable to search.
    $post['action'] = 0;    //The current output is based on "actid"
    $post['status'] = '';
    $post['vpsid'] = '';
    $post['username'] = '';
    $post['order'] = '';

    $output = $admin->tasks($post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Tasks List",
    "tasks": {
        "4018": {
            "actid": "4018",
            "slaveactid": "0",
            "uid": "0",
            "vpsid": "3749",
            "serid": "1",
            "action": "addvs",
            "data": "a:10:{s:12:\"progress_msg\";s:25:\"Performing final steps...\";s:5:\"newvs\";a:64:{s:4:\"uuid\";s:16:\"cdakekhbdh4irnny\";s:4:\"plid\";i:0;s:8:\"hostname\";s:10:\"WindowsVps\";s:5:\"space\";i:20;s:3:\"ram\";i:1024;s:9:\"bandwidth\";i:0;s:13:\"network_speed\";i:0;s:12:\"upload_speed\";i:-1;s:5:\"cores\";i:4;s:6:\"cpupin\";i:-1;s:3:\"uid\";i:202;s:2:\"io\";i:0;s:5:\"burst\";i:0;s:11:\"cpu_percent\";i:0;s:4:\"swap\";i:0;s:4:\"acpi\";i:1;s:4:\"apic\";i:1;s:3:\"pae\";i:1;s:3:\"vnc\";i:1;s:7:\"vncport\";i:0;s:6:\"shadow\";i:0;s:4:\"virt\";s:3:\"kvm\";s:3:\"hvm\";i:0;s:3:\"iso\";s:0:\"\";s:4:\"boot\";s:3:\"cda\";s:12:\"band_suspend\";i:0;s:6:\"tuntap\";i:0;s:3:\"ppp\";i:0;s:10:\"mac_status\";i:0;s:17:\"osreinstall_limit\";i:0;s:2:\"mg\";a:0:{}s:6:\"webuzo\";i:0;s:9:\"kvm_cache\";s:1:\"0\";s:7:\"io_mode\";s:1:\"0\";s:10:\"vnc_keymap\";s:5:\"en-us\";s:6:\"virtio\";i:0;s:8:\"cpu_mode\";s:7:\"default\";s:13:\"admin_managed\";i:0;s:3:\"rdp\";i:0;s:17:\"disable_nw_config\";i:0;s:16:\"topology_sockets\";i:0;s:14:\"topology_cores\";i:0;s:16:\"topology_threads\";i:0;s:4:\"bpid\";i:0;s:3:\"mac\";s:0:\"\";s:4:\"osid\";i:100104;s:3:\"cpu\";i:1024;s:7:\"sec_iso\";s:0:\"\";s:14:\"total_iops_sec\";i:0;s:14:\"read_bytes_sec\";i:0;s:15:\"write_bytes_sec\";i:0;s:7:\"kvm_vga\";i:0;s:12:\"acceleration\";i:0;s:16:\"disable_ebtables\";i:0;s:8:\"nic_type\";s:5:\"e1000\";s:8:\"vps_name\";s:5:\"v2168\";s:3:\"ubc\";s:0:\"\";s:5:\"vpsid\";s:4:\"3749\";s:5:\"disks\";a:1:{i:0;a:11:{s:7:\"primary\";i:1;s:4:\"path\";s:38:\"\/vms\/v2168-0ojv-cdakekhbdh4irnny.qcow2\";s:7:\"st_uuid\";s:16:\"wxs181guwijoj7mw\";s:4:\"type\";s:4:\"file\";s:4:\"size\";s:2:\"20\";s:9:\"size_unit\";s:0:\"\";s:5:\"vpsid\";s:4:\"3749\";s:6:\"rescue\";i:0;s:11:\"target_name\";s:0:\"\";s:6:\"format\";s:5:\"qcow2\";s:9:\"disk_uuid\";s:3:\"ojv\";}}s:3:\"ips\";a:1:{i:0;s:13:\"192.168.10.45\";}s:4:\"ipv6\";a:0:{}s:11:\"ipv6_subnet\";a:0:{}s:7:\"ips_int\";a:0:{}s:11:\"vnc_details\";s:19:\"107.189.41.210:5955\";}s:3:\"dns\";a:0:{}s:5:\"serid\";s:1:\"1\";s:10:\"user_email\";s:21:\"ameya@softaculous.com\";s:9:\"user_pass\";N;s:7:\"noemail\";s:0:\"\";s:13:\"add_to_backup\";s:0:\"\";s:13:\"control_panel\";s:1:\"0\";s:6:\"recipe\";i:0;}",
            "time": "1480077787",
            "status_txt": "Performing final steps...",
            "status": "1",
            "progress": "100",
            "started": "November 25, 2016, 12:43 pm",
            "updated": "November 25, 2016, 12:53 pm",
            "ended": "November 25, 2016, 12:53 pm",
            "proc_id": "0",
            "ip": "120.62.23.40",
            "internal": "0",
            "email": "root",
            "server_name": "kvm_107.189.41.210"
        }
    },
    "logs_data": "null",
    "timenow": "1480156268",
    "time_taken": "0.132"
}

HTTP Request

https://hostname:4085/index.php?act=tasks&actid=ACTID&vpsid=VPSID /&username=USERNAME&action=0&status=STATUS&order=ORDER&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET tasks The action will return the tasks Yes
actid GET Int The tasks will returned on the basis of action id No
vpsid GET Int The tasks will returned on the basis of vpsid No
username GET Int The tasks will returned on the basis of username No
action GET Int The tasks will returned on the basis of action No
status GET Int The tasks will returned on the basis of status No
order GET Int The tasks will returned on the basis of order (ASC/DESC) No
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No
Action Parameters
Creating VPS
Rebuilding VPS
Backing up VPS
Restoring VPS
Migrating VPS
Multiple Migrate
Cloning VPS
Multiple Clone
Deleting VPS
Creating Template
FS Tab Handle
Edit XCP VPS
Resizing VPS
Enabling Multivirt
Downloading OS
Changing DNS Nameserver
Changing VPS Password
Install Control Panel
Changing VPS Hostname
Install Recipe
Unsuspend Bandwidth
Suspend Callback
Unsuspend Callback
Edit VPS Callback
Terminate VPS Callback
Lets Encrypt Install Certificate
Lets Encrypt Renew Certificate
cron_crt

Recipes

List Recipes

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);


    $post=array();
    //$post['delete'] = 19;         //Pass this only when you want to delete the recipe
    $page = 1;
    $reslen = 10;
    $output = $admin->list_recipes($page,$reslen,$post);
?>

Result: The above code produces the following output

{
    "title": "Recipes",
    "recipe": {
        "9": {
            "rid": "9",
            "name": "test27",
            "code": "#!\/bin\/sh\n\ntouch \/newtest",
            "desc": "Just testing yar",
            "logo": "",
            "status": "0"
        },
        "13": {
            "rid": "13",
            "name": "test",
            "code": "#!\/bin\/sh\necho \"Europe\/Budapest\" > \/etc\/localtime",
            "desc": "",
            "logo": "",
            "status": "1"
        },
        "16": {
            "rid": "16",
            "name": "test279",
            "code": "#!\/bin\/sh\necho \"recepi\" > \/test.txt",
            "desc": "Just testing yar\r\n<a>softaculous.com<\/a>",
            "logo": "https:\/\/hostname:4085\/sessbpxbng7dzqjuykqr\/themes\/default\/images\/loginlogo.gif",
            "status": "1"
        },
        "17": {
            "rid": "17",
            "name": "Recipe01",
            "code": "#!\/bin\/sh\necho `date` >> \/root\/abhi1.txt\n",
            "desc": "",
            "logo": "",
            "status": "1"
        },
        "18": {
            "rid": "18",
            "name": "WinRecipe1",
            "code": "#!\/bin\/sh\necho date c:\\\\abhi1.txt",
            "desc": "",
            "logo": "",
            "status": "1"
        }
    },
    "timenow": "1471329885",
    "time_taken": "0.103"
}

HTTP Request

https://hostname:4085/index.php?act=recipes

Parameters

Name Type Value Description Required
act GET recipes The action specified to perform operation and retrieve data Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Search Recipe

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);


    $post['rid'] = '';
    $post['rname'] = 'test_recipe1';
    $page = 1;
    $reslen = 10;

    $output = $admin->list_recipes($page,$reslen,$post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Recipes",
    "recipe": {
        "23": {
            "rid": "23",
            "name": "test_recipe1",
            "code": "#!\/bin\/sh\nThis is your test recipe",
            "desc": "This is the description for test recipe",
            "logo": "",
            "status": "1"
        }
    },
    "timenow": "1482218424",
    "time_taken": "0.076"
}

HTTP Request

https://hostname:4085/index.php?act=recipes&rid=RID&rname=RNAME&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET recipes The action will return the vps Yes
rid GET Int The recipes are searched on the basis of the recipe id No
rname GET rname The recipes are searched on the basis of the recipe name No
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Add Recipes

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post = array();
    $post['recipe_name'] = 'test recipe';
    $post['recipe_script'] = 'This is your test recipe';
    $post['desc'] = 'This is the description for test recipe';
    $post['recipe_logo'] = '';
    $output = $admin->add_recipes($post);
    print_r(json_encode($output));

?>

Result: The above code produces the following output

{
    "title": "Add Recipe",
    "done": "1",
    "done_msg": "The Recipe has been added",
    "timenow": "1480319006",
    "time_taken": "0.107"
}

HTTP Request

https://hostname:4085/index.php/act=addrecipe

Parameters

Name Type Value Description Required
act GET addrecipe The action specified to perform operation and retrieve data Yes
recipe_name recipe_name POST Name of the recipe Yes
recipe_script recipe_script POST Recipe script to be executed Yes
desc POST desc Descriptipon given to the recipe No
recipe_logo POST recipe_logo The logo for the recipe No
addrecipe POST 1 If set, the recipe will be added Yes

Edit Recipe

<?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['name'] = 'test_recipe1';
    $post['rid'] = 23;
    $post['code'] = 'This is your test recipe';

    $post['desc'] = 'This is the description for test recipe';

    $output = $admin->editrecipe($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following result

{
    "title": "Edit Recipe",
    "done": "1",
    "done_msg": "Recipe has been updated",
    "timenow": "1477373647",
    "time_taken": "0.077"
}

HTTP Request

https://hostname:4085/index.php?act=editrecipe&rid=RID

Parameters

Name Type Value Description Required
act GET editrecipe The action will return the list of recipes after it has been edited Yes
rid POST Int The recipe that will be edited. This is passed to the URL No
editrecipe POST 1/0 If set then the recipe will be edited Yes
name POST name the name of the recipe Yes
code POST code The code that will be executed by the recipe at the time of call Yes
desc POST desc The description given to the recipe Yes
logo POST logo The logo given to the recipe No

Delete Recipe

<?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['delete'] = 19;

    $output = $admin->list_recipes($post);

    print_r(json_encode($output));
?>

Result:The above code will produce the following output

{
    "title": "Recipes",
    "done": ["19"],
    "recipe": {
        "9": {
            "rid": "9",
            "name": "test287",
            "code": "#!\/bin\/sh\n\ntouch \/newtest",
            "desc": "Just testing yar",
            "logo": "",
            "status": "1"
        },
        "13": {
            "rid": "13",
            "name": "test",
            "code": "#!\/bin\/sh\necho \"Europe\/Budapest\" > \/etc\/localtime",
            "desc": "",
            "logo": "",
            "status": "1"
        },
        "16": {
            "rid": "16",
            "name": "test279",
            "code": "#!\/bin\/sh\necho \"recepi\" > \/test.txt",
            "desc": "Just testing yar\r\n softaculous.com",
            "logo": "https:\/\/hostname:4085\/sessbpxbng7dzqjuykqr\/themes\/default\/images\/loginlogo.gif",
            "status": "1"
        },
        "17": {
            "rid": "17",
            "name": "Recipe01",
            "code": "#!\/bin\/sh\necho `date` >> \/root\/abhi1.txt\n",
            "desc": "",
            "logo": "",
            "status": "1"
        },
        "18": {
            "rid": "18",
            "name": "WinRecipe1",
            "code": "#!\/bin\/sh\necho date c:\\\\abhi1.txt",
            "desc": "",
            "logo": "",
            "status": "1"
        },
        "19": {
            "rid": "19",
            "name": "test_recipe1",
            "code": "#!\/bin\/sh\nThis is your test recipe",
            "desc": "This is the description for test recipe",
            "logo": "",
            "status": "1"
        }
    },
    "timenow": "1477375332",
    "time_taken": "0.076"
}

HTTP Request

https://hostname:4085/index.php?act=recipes

Parameters

Name Type Value Description Required
act GET recipes The action will return a list of recipes after the deleting the specified recipe Yes
delete POST Int The recipe that needs to be deleted Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Activate Recipe

<?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['activate'] = 2;
    $output = $admin->list_recipes($post);
    print_r(json_encode($output));
?>

Result:The above code will produce the following output

{
    "title": "Recipes",
    "done": [
        2
    ],
    "recipe": {
        "1": {
            "rid": "1",
            "name": "2.8.7 recipe",
            "code": "#!/bin/sh\necho \"REcipe was executed\" >> /tmp/287.test",
            "desc": "Just a test",
            "logo": "",
            "status": "1"
        },
        "2": {
            "rid": "2",
            "name": "SDK recipe",
            "code": "#!/bin/sh\nThis",
            "desc": "This is the description for test recipe",
            "logo": "",
            "status": "0"
        }
    },
    "timenow": 1481612024,
    "time_taken": "0.242"
}

HTTP Request

https://hostname:4085/index.php?act=recipes

Parameters

Name Type Value Description Required
act GET recipes The action will return a list of recipes after the activating the specified recipe Yes
activate POST Int The id of the recipe that needs to be activated Yes

Deactivate Recipe

<?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['deactivate'] = 2;
    $output = $admin->list_recipes($post);
    print_r(json_encode($output));
?>

Result:The above code will produce the following output

{
    "title": "Recipes",
    "done": [
        2
    ],
    "recipe": {
        "1": {
            "rid": "1",
            "name": "2.8.7 recipe",
            "code": "#!/bin/sh\necho \"REcipe was executed\" >> /tmp/287.test",
            "desc": "Just a test",
            "logo": "",
            "status": "1"
        },
        "2": {
            "rid": "2",
            "name": "SDK recipe",
            "code": "#!/bin/sh\nThis",
            "desc": "This is the description for test recipe",
            "logo": "",
            "status": "1"
        }
    },
    "timenow": 1481612222,
    "time_taken": "0.240"
}

HTTP Request

https://hostname:4085/index.php?act=recipes

Parameters

Name Type Value Description Required
act GET recipes The action will return a list of recipes after the deactivating the specified recipe Yes
deactivate POST Int The id of the recipe that needs to be deactivated Yes

Configuration

Master Settings

<?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);
    $output = $admin->config();
    print_r(json_encode($output));
?>

Result: The above code will produce the following result

{
    "title": "Configuration",
    "globals": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3081",
        "gzip": "1",
        "cpu_nm": "1",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "1",
        "update": "1",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "7",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "eth0",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "100",
        "change_ssh_port": "2044",
        "max_ssh_login": "20",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "200",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "1",
        "enable_enduser_vnc": "1",
        "show_server": "1",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "1",
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "1",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "0",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "0",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "1",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "sg_test",
        "default_sg_reseller_name": "sg_region",
        "default_sg_desc": "This is just desc",
        "custom_mac": "90:12:14",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "0",
        "vcores": "0",
        "hf_loaded": "1",
        "charset": "UTF-8",
        "showntimetaken": "1",
        "version": "2.8.8",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "proxoos": "\/var\/virtualizor\/proxo",
        "proxkos": "\/var\/virtualizor\/proxk",
        "proxlos": "\/var\/virtualizor\/proxl",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "Active",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "1",
        "apicall": "ycrhrbth",
        "apidata": [],
        "ind": "index.php?"
    },
    "info": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3081",
        "gzip": "1",
        "cpu_nm": "1",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "1",
        "update": 1,
        "email_update": "1",
        "email_update_client": 0,
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": 0,
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "7",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "eth0",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": 1,
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "100",
        "change_ssh_port": "2044",
        "max_ssh_login": "20",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "200",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "1",
        "enable_enduser_vnc": "1",
        "show_server": "1",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "1",
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "1",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "0",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "0",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "1",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "sg_test",
        "default_sg_reseller_name": "sg_region",
        "default_sg_desc": "This is just desc",
        "custom_mac": "90:12:14",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "0",
        "vcores": "0",
        "vg_in_use": "1"
    },
    "langs": {
        "polish": "polish",
        "english": "english",
        "german": "german",
        "chinese": "chinese",
        "portuguese": "portuguese",
        "dutch": "dutch",
        "french": "french"
    },
    "skins": {
        "default": "default"
    },
    "timenow": "1478475631",
    "time_taken": "0.095"
}

HTTP Request

https://hostname:4085/index.php?act=config

Paramters

Name Type Value Description Required
act GET config The action will return data regarding the master configuration of the virtualizor server Yes

Edit Master Configuration

<?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['editsettings'] = 1;
    $post['sn'] = 'Virtualizor';
    $post['disable_login_logo'] = 0;
    $post['sess_len'] = 3600;
    $post['theme_folder'] = 'default';
    $post['language'] = 'german';
    $post['admin_logs'] = 2;
    $post['vps_logs'] = 2;
    $post['login_logs'] = 2;
    $post['system_logs'] = 2;
    $post['status_logs'] = 7;
    $post['bandwidth_logs'] = 0;
    $post['enable_rdns'] = 1;
    $post['auto_add_zone'] = 1;
    $post['disable_apicredential'] = 0;
    $post['enable_console'] = 1;
    $post['disable_master_vpsname'] = 0;
    $post['disable_newtheme'] = 0;
    $post['enable_idsort'] = 0;
    $post['disable_recipes'] = 0;
    $post['disable_rescue'] = 0;
    $post['disable_change_hostname'] = 0;
    $post['disable_change_password'] = 0;
    $post['disable_vps_config'] = 0;
    $post['disable_os_reinstall'] = 0;
    $post['disable_ssh'] = 0;
    $post['disable_suspend_email'] = 0;
    $post['disable_self_shutdown'] = 0;
    $post['disable_server_location'] = 0;
    $post['del_tasks'] = 0;
    $post['enable_nic'] = 1;
    $post['enable_cb'] = 1;
    $post['cloud_allow_virtio'] = 1;
    $post['2fa_email_otp'] = 0;
    $post['cb_use_https'] = 0;
    $post['cb_url'] = 'billing.nuftp.com/whmcs/modules/servers/virtualizor/callback.php';
    $post['cb_suspend'] = 1;
    $post['cb_unsuspend'] = 1;
    $post['cb_hostname'] = 1;
    $post['cb_terminate'] = 1;
    $post['cb_changeips'] = 1;
    $post['soft_email'] = 'test@test.com';
    $post['timezone'] = 0;
    $post['email_update'] = 1;
    $post['login_attempts'] = 5;
    $post['login_ban_time'] = 15;


    $output = $admin->config($post);
    print_r(json_encode($output));

Result: The above code will produce the following output

{
    "title": "Konfiguration",
    "done": "1",
    "globals": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3081",
        "gzip": "0",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "german",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "0",
        "update": "0",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "2",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "0",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": 1,
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "0",
        "change_ssh_port": "2044",
        "max_ssh_login": "20",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "200",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "0",
        "enable_enduser_vnc": "0",
        "show_server": "0",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "0",
        "novnc_master_only": "0",
        "novnc_server_name": "0",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "0",
        "band_calc_creation": "0",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "1",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "0",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "1",
        "showsearch": "0",
        "site_domain": "",
        "use_new_theme": "0",
        "turnoff_virtdf": "0",
        "disable_newtheme": "1",
        "disable_recipes": "1",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "1",
        "disable_rescue": "1",
        "disable_change_hostname": "1",
        "disable_change_password": "1",
        "disable_vps_config": "1",
        "disable_os_reinstall": "1",
        "disable_ssh": "1",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "1",
        "disable_server_location": "1",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "",
        "default_sg_reseller_name": "",
        "default_sg_desc": "",
        "custom_mac": "",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "1",
        "hf_loaded": "1",
        "charset": "UTF-8",
        "showntimetaken": 1,
        "version": "2.8.8",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "proxoos": "\/var\/virtualizor\/proxo",
        "proxkos": "\/var\/virtualizor\/proxk",
        "proxlos": "\/var\/virtualizor\/proxl",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "vcores": "0",
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "<font color=\"green\">Active<\/font>",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "1",
        "apicall": "xzffszwu",
        "apidata": [],
        "ind": "index.php?"
    },
    "info": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3081",
        "gzip": "0",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "german",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "0",
        "update": "0",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "2",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "0",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "0",
        "change_ssh_port": "2044",
        "max_ssh_login": "20",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "200",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "0",
        "enable_enduser_vnc": "0",
        "show_server": "0",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "0",
        "novnc_master_only": "0",
        "novnc_server_name": "0",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "0",
        "band_calc_creation": "0",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "1",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "0",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "1",
        "showsearch": "0",
        "site_domain": "",
        "use_new_theme": "0",
        "turnoff_virtdf": "0",
        "disable_newtheme": "1",
        "disable_recipes": "1",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "1",
        "disable_rescue": "1",
        "disable_change_hostname": "1",
        "disable_change_password": "1",
        "disable_vps_config": "1",
        "disable_os_reinstall": "1",
        "disable_ssh": "1",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "1",
        "disable_server_location": "1",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "",
        "default_sg_reseller_name": "",
        "default_sg_desc": "",
        "custom_mac": "",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "1",
        "vg_in_use": "1"
    },
    "langs": {
        "polish": "polish",
        "english": "english",
        "german": "german",
        "chinese": "chinese",
        "portuguese": "portuguese",
        "dutch": "dutch",
        "french": "french"

    },
    "skins": {
        "default": "default"
    },
    "error": "null",
    "timenow": "1478485935",
    "time_taken": "0.105"
}

HTTP Request

https://hostname:4085/index.php?act=config

Parameters

Name Type Value Description Required
act GET config The action will display all the Configuration related to master server Yes
editsettings POST 1/0 If set then the settings will be edited and saved Yes
sn POST sn The name given to the site Yes
logo_url POST logo_url Url of the custom logo will be specified here Yes
disable_login_logo POST 1/0 This will disable the login logo Yes
gzip POST 1/0 This enables output compression Yes
support POST support Link for the support site is specified here Yes
copyright POST copyright The copyright will be displayed in the footer Yes
sess_len POST Int This specifies the session timeout Yes
theme_folder POST theme_folder This specifies the theme directory Yes
language POST language This specifies the language of Panel Yes
band_suspend POST 1/0 This enables the bandwidth suspension option Yes
band_calc_creation POST 1/0 If enabled this option will calculate bandwidth on a monthly basis
novnc POST 1/0 This option enables NoVNC Yes
novnc_master_only POST 1/0 This option enables novnc from master only server Yes
disable_java_vnc POST 1/0 This option disables java vnc Yes
del_novps_user POST 1/0 The user which does not have a vps will be deleted Yes
disable_icons_monitor POST 1/0 This will disable monitor icon from Enduser Panel Yes
disable_icons_cp POST 1/0 This will disable control panel icon from the EndUser Panel Yes
enable_enduser_vnc POST 1/0 This will enable enduser VNC Yes
show_server POST 1/0 This shows the location of the server on the enduser panel
login_attempts POST Int This will specify the Login Attempts Yes
login_ban_time POST Int This will specify the login ban time Yes
queue_creation POST Int This will set the limit to number of vps that will be created at a time No
email_update_client POST If set then the email regarding the virtualizor upgrades will be sent No
admin_logs POST Int This specifies the duration for the admin logs, after which logs older than the specified value will be deleted Yes
vps_logs POST Int This specifies the duration for the vps logs, after which logs older than the specified value will be deleted Yes
login_logs POST Int This specifies the duration for the login logs, after which logs older than the specified value will be deleted Yes
system_logs POST Int This specifies the duration for the system logs, after which logs older than the specified value will be deleted Yes
status_logs POST Int This specifies the duration for the status logs, after which logs older than the specified value will be deleted Yes
bandwidth_logs POST Int This specifies the duration for the bandwidth logs, after which logs older than the specified value will be deleted Yes
enable_rdns POST 1/0 This will enable RDNS on the End User Panel Yes
auto_add_zone POST 1/0 This will enable creation of RDNS records will be auto created Yes
disable_apicredential POST 1/0 If set then the user will not be able to create API credentials Yes
enable_console POST 1/0 This will enable Serial console Yes
disable_master_vpsname 1/0 By default the Master decides the VPS name and uses the highest VPS name available in the Cluster. If this is checked, the VPS name will be decided by each individual slave server Yes
disable_newtheme POST 1/0 If set then the new themes wont be added.
enable_idsort POST 1/0 If checked newly created VPS will be shown first Yes
site_domain POST site_domain
showsearch POST 1/0 If enabled then the search box will be displayed only on specific pages No
turnoff_virtdf POST 1/0 If set then virtdf process will be disabled Yes
disable_recipes POST 1/0 If set then the recipes will be disabled Yes
disable_rescue POST 1/0 IF set then rescue mode will be disabled Yes
disable_change_hostname POST 1/0 If set then the change hostname function will be disabled Yes
disable_change_password POST 1/0 If set then the change password function will be disabled Yes
disable_vps_config POST 1/0 If set then the vps config function will be disabled Yes
disable_os_reinstall POST 1/0 If set then the OS Reinstall function will be disabled Yes
disable_ssh POST 1/0 If set then the SSH function will be disabled Yes
disable_suspend_email POST 1/0 If set then the email suspension function will be disabled Yes
disable_self_shutdown POST 1/0 If set then the self shutdown function will be disabled Yes
disable_server_location POST 1/0 If set then the server location function will be disabled Yes
del_tasks POST Int This will specify the task duration Yes
enable_nic POST 1/0 If set then this will enable NIC Yes
enable_cb POST 1/0 If set then callback function will be enabled Yes
cloud_allow_virtio POST 1/0 If set then virtio for cloud user will be enabled Yes
2fa_email_otp POST 1/0 If set then OTP will be sent via email Yes
cb_url POST cb_url This will specify the url for callback function Yes
cb_suspend POST 1/0 This will enable the suspend function via callback function Yes
cb_unsuspend POST 1/0 This will enable the unsuspension function via callback Yes
cb_hostname POST 1/0 This will enable the hostname change function via callback Yes
cb_terminate POST 1/0 This will enable the terminate function via callback Yes
cb_changeips POST 1/0 This will enable changeips function via callback Yes
curl_timeout POST 1/0 This will set timeout value for curl call Yes
default_sg_name POST default_sg_name This will set the default server group name No
default_sg_reseller_name POST default_sg_reseller_name This will set default server group reseller name No
default_sg_desc POST default_sg_desc This will specify the description of the server group No
custom_mac POST custom_mac This will specify custom MAC Yes
pv_on_hvm POST pv_on_hvm Global setting to enable PV-on-HVM for all the new VMs Yes
cpu_nm POST 1/0 If enabled then the CPU model name will be displayed No
soft_email POST soft_email This specifies the soft_email Yes
timezone POST Int This will set the timezone for the panel Yes
update POST This will auto update depending upon the version that will be available No
email_update POST email_update This will send the update version via email Yes
novnc_server_name POST 1/0 If enabled, then the server name (instead of its IP) will be used as the host to access the noVNC service. Please ensure the name of the server in the master is correct No
interface POST 1/0 Used to set the NIC No
node_bandwidth POST 1/0 Int The total bandwidth of the Node in GB. If set to Zero, the bandwidth calculation will assume unlimited bandwidth
alert_load_limit POST Int If the 15 minute load of the hardware node exceeds the limit set here, an email will be sent to the Administrator No
alert_disk_limit POST Int If the Disk Usage of the Node exceeds the set limit (in %), an email will be sent to the Administrator No
del_slave_ostemplate POST 1/0 If checked then OS template from all Slave servers will be deleted. This is useful to save space on the slaves. But it will require much more bandwidth as the template will be redownloaded every time a VPS is created No
openvz_suspend_load POST Int If set, uptime of each VM for the past 5 minute will be checked and if it is higher than the set value, VMs will be suspended No
enable_tuntap_cp POST 1/0 IF set Tun/Tap icon will be enabled on EndUser Panel Yes
enable_ppp_cp POST 1/0 If set, then PPP icon will be enabled Yes
vswap POST 1/0 If set then VSwap will be enabled.It is for OpenVZ only No
ploop POST 1/0 Ploop will be enabled for all newly created VPS No
disable_backup_cp POST 1/0 If set, the backup icon will be disabled from the End USer panel
addvs_cpu_prio POST Int The amount of CPU time the VPS creation process will get. Values from 19 (least favourable) to -20 (most favourable) No
addvs_io_prio POST Int I/O priority for the VPS creation process. Values from 0 (most favourable) to 7 (least favourable) No
addvs_io_class POST addvs_io_class I/O class for the VPS creation process No

Slave Configuration

<?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);
    $output = $admin->config_slave();
    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Configuration",
    "done": "1",
    "globals": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3042",
        "gzip": "1",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "0",
        "update": "0",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "2",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "0",
        "change_ssh_port": "9898",
        "max_ssh_login": "40",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "250",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "0",
        "enable_enduser_vnc": "1",
        "show_server": "1",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "1",
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "1",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "0",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "1",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "1",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": '0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "sg_test",
        "default_sg_reseller_name": "sg_region",
        "default_sg_desc": "This is just desc",
        "custom_mac": "90:12:14",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "0",
        "vcores": "0",
        "hf_loaded": "1",
        "charset": "UTF-8",
        "showntimetaken": "1",
        "version": "2.8.8",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "proxoos": "\/var\/virtualizor\/proxo",
        "proxkos": "\/var\/virtualizor\/proxk",
        "proxlos": "\/var\/virtualizor\/proxl",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "<font color=\"green\">Active<\/font>",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "0",
        "apicall": "uyeodhnc",
        "apidata": [],
        "ind": "index.php?"
    },
    "info": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3042",
        "gzip": "1",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "0",
        "update": "0",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "2",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "0",
        "change_ssh_port": "9898",
        "max_ssh_login": "40",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "250",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "0",
        "enable_enduser_vnc": "1",
        "show_server": "1",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "1",
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "1",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "0",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "1",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "1",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "sg_test",
        "default_sg_reseller_name": "sg_region",
        "default_sg_desc": "This is just desc",
        "custom_mac": "90:12:14",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "0",
        "vcores": "0",
        "hf_loaded": "0",
        "charset": "UTF-8",
        "showntimetaken": "1",
        "version": "2.8.8",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "proxoos": "\/var\/virtualizor\/proxo",
        "proxkos": "\/var\/virtualizor\/proxk",
        "proxlos": "\/var\/virtualizor\/proxl",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "<font color=\"green\">Active<\/font>",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "0",
        "apicall": "uyeodhnc",
        "apidata": [],
        "vg_in_use": "1"
    },
    "langs": {
        "polish": "polish",
        "english": "english",
        "german": "german",
        "chinese": "chinese",
        "portuguese": "portuguese",
        "dutch": "dutch",
        "french": "french"
    },
    "skins": {
        "default": "default"
    },
    "error": "null",
    "timenow": "1478672316",
    "time_taken": "0.262"
}

HTTP Request

https://hostname:4085/index.php?act=config_slave

Parameters

Name Type Value Description Required
act GET config_slave The action will display all the details related to slave configuration Yes

Edit Slave Configuration

<?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['soft_email'] = 'test@test.com';
    $post['editsettings'] = 1;
    $post['timezone'] = 0;
    $post['email_update'] = 1;
    $post['novnc_server_name'] = 1;
    $post['cron_time'] = '18 16 * * 3';
    $post['emps_cron_time'] = '18 16 * * 3';
    $post['cookie_name'] = 'SIMCookies3042';
    $post['vpslimit'] = 250;
    $post['change_ssh_port'] = 9898;
    $post['max_ssh_login'] = 40;

    $output = $admin->config_slave($post);
    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Configuration",
    "done": "1",
    "globals": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3042",
        "gzip": "1",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "0",
        "update": "0",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "2",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "0",
        "change_ssh_port": "9898",
        "max_ssh_login": "40",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "250",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "0",
        "enable_enduser_vnc": "1",
        "show_server": "1",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "1",
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "1",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "0",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "1",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "1",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "sg_test",
        "default_sg_reseller_name": "sg_region",
        "default_sg_desc": "This is just desc",
        "custom_mac": "90:12:14",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "0",
        "vcores": "0",
        "hf_loaded": 1,
        "charset": "UTF-8",
        "showntimetaken": "1",
        "version": "2.8.8",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "proxoos": "\/var\/virtualizor\/proxo",
        "proxkos": "\/var\/virtualizor\/proxk",
        "proxlos": "\/var\/virtualizor\/proxl",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "<font color=\"green\">Active<\/font>",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "0",
        "apicall": "6ulzrvih",
        "apidata": [],
        "ind": "index.php?"
    },
    "info": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3042",
        "gzip": "1",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "0",
        "update": "0",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "2",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "0",
        "change_ssh_port": "9898",
        "max_ssh_login": "40",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "250",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "0",
        "enable_enduser_vnc": "1",
        "show_server": "1",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "1",
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "1",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "0",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "1",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "1",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "sg_test",
        "default_sg_reseller_name": "sg_region",
        "default_sg_desc": "This is just desc",
        "custom_mac": "90:12:14",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "0",
        "vcores": "0",
        "hf_loaded": "0",
        "charset": "UTF-8",
        "showntimetaken": "1",
        "version": "2.8.8",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "proxoos": "\/var\/virtualizor\/proxo",
        "proxkos": "\/var\/virtualizor\/proxk",
        "proxlos": "\/var\/virtualizor\/proxl",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "<font color=\"green\">Active<\/font>",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "0",
        "apicall": "6ulzrvih",
        "apidata": [],
        "vg_in_use": "1"
    },
    "langs": {
        "polish": "polish",
        "english": "english",
        "german": "german",
        "chinese": "chinese",
        "portuguese": "portuguese",
        "dutch": "dutch",
        "french": "french"
    },
    "skins": {
        "default": "default"
    },
    "error": "null",
    "timenow": "1478657670",
    "time_taken": "0.236"
}

HTTP Request

https://hostname:4085/index.php?act=config_slave

Parameters

Name Type Value Description Required
act GET config_slave The action will edit Slave Settings and return the updated ones Yes
cpu_nm POST 1/0 If enabled then the CPU model name will be displayed No
soft_email POST soft_email This specifies the soft_email Yes
timezone POST Int This will set the timezone for the panel Yes
update POST This will auto update depending upon the version that will be available No
email_update POST email_update This will send the update version via email Yes
novnc_server_name POST 1/0 If enabled, then the server name (instead of its IP) will be used as the host to access the noVNC service. Please ensure the name of the server in the master is correct No
interface POST 1/0 Used to set the NIC No
node_bandwidth POST 1/0 Int The total bandwidth of the Node in GB. If set to Zero, the bandwidth calculation will assume unlimited bandwidth
alert_load_limit POST Int If the 15 minute load of the hardware node exceeds the limit set here, an email will be sent to the Administrator No
alert_disk_limit POST Int If the Disk Usage of the Node exceeds the set limit (in %), an email will be sent to the Administrator No
del_slave_ostemplate POST 1/0 If checked then OS template from all Slave servers will be deleted. This is useful to save space on the slaves. But it will require much more bandwidth as the template will be redownloaded every time a VPS is created No
openvz_suspend_load POST Int If set, uptime of each VM for the past 5 minute will be checked and if it is higher than the set value, VMs will be suspended No
enable_tuntap_cp POST 1/0 IF set Tun/Tap icon will be enabled on EndUser Panel Yes
enable_ppp_cp POST 1/0 If set, then PPP icon will be enabled Yes
vswap POST 1/0 If set then VSwap will be enabled.It is for OpenVZ only No
ploop POST 1/0 Ploop will be enabled for all newly created VPS No
disable_backup_cp POST 1/0 If set, the backup icon will be disabled from the End USer panel
addvs_cpu_prio POST Int The amount of CPU time the VPS creation process will get. Values from 19 (least favourable) to -20 (most favourable) No
addvs_io_prio POST Int I/O priority for the VPS creation process. Values from 0 (most favourable) to 7 (least favourable) No
addvs_io_class POST addvs_io_class I/O class for the VPS creation process No

Email Settings

<?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['editemailconfigsettings'] = 1;
    $post['mail'] = 0;
    $post['mail_server'] = 'mail_server';
    $post['mail_port'] = 25;
    $post['mail_user'] = 'test@test.com';
    $post['mail_pass'] = 'test';
    $post['mail_smtp_secure'] = 0;
    $post['mail_debug'] = 1;
    $post['mail_connect_timeout'] = 6;

    $output = $admin->emailconfig($post);
    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Email Settings",
    "done": "1",
    "info": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3042",
        "gzip": "1",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "0",
        "update": "0",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "0",
        "mail_server": "mail_server",
        "mail_port": "25",
        "mail_user": "test@test.com",
        "mail_pass": "test",
        "mail_smtp_secure": "0",
        "mail_debug": "1",
        "mail_connect_timeout": "6",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "2",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "0",
        "change_ssh_port": "2044",
        "max_ssh_login": "40",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "250",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "0",
        "enable_enduser_vnc": "1",
        "show_server": "1",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": 1,
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * *3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "1",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "0",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "1",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "1",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "default_sg_name": "sg_test",
        "default_sg_reseller_name": "sg_region",
        "default_sg_desc": "This is just desc",
        "custom_mac": "90:12:14",
        "cloud_allow_virtio": "1",
        "le_primary_domain": "",
        "le_contact_email": "youremail@tes1t.com",
        "le_key_size": "3072",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_force": "1",
        "2fa_email_otp": "0",
        "vcores": "0",
        "hf_loaded": "0",
        "charset": "UTF-8",
        "showntimetaken": "1",
        "version": "2.8.8",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "proxoos": "\/var\/virtualizor\/proxo",
        "proxkos": "\/var\/virtualizor\/proxk",
        "proxlos": "\/var\/virtualizor\/proxl",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "Active",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "0",
        "apicall": "1wdenvat",
        "apidata": []
    },
    "timenow": "1478673449",
    "time_taken": "0.083"
}

HTTP Request

https://hostname:4085/index.php?act=emailconfig

Parameters

Name Type Value Description Required
act GET emailconfig The action will set the email configuration required to send mail to users Yes
editemailconfigsettings POST 1/0 If set then the email configuration will be saved Yes
mail POST 1/0 Select which type of mailing should be used to send mails Yes
mail_server POST mail_server The mail server that will be used to send mails Yes
mail_port POST Int The default port that will be used to send mails Yes
mail_user POST mail_user The users id from which the mail will be sent Yes
mail_pass POST pass Password of the user email Yes
mail_smtp_secure POST 0/½ If enabled then secure connection will be used to send mails Yes
mail_debug POST 1/0 If set then the debug logs will be saved to check in case sending mail fails at /var/virtualizor/log Yes
mail_connect_timeout POST Int The value for connection timeout should be greater than 5 Yes

Server Info

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->serverinfo();
    print_r(json_encode($output));
?>

Result: The above code produces output in the following format

{
    "title": "Server Information",
    "info": {
        "path": "\/usr\/local\/virtualizor",
        "key": "api_key",
        "pass": "api_pass",
        "kernel": "kvm openvz",
        "num_vs": "16",
        "version": "version_virtualizor",
        "patch": "0"
    }
}

HTTP Request

https://hostname:4085/index.php?act=serverinfo

Parameters

Name Type Value Description Required
act GET serverinfo The action specified to perform operation and retrieve data Yes

License Info

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $output = $admin->license();

    print_r(json_encode($output));
?>  

Result:The above code produces following output

{
    "title": "License Information",
    "info": {
        "path": "\/usr\/local\/virtualizor",
        "slave": "0",
        "masterkey": "",
        "masterip": "",
        "key": "your_api_key",
        "pass": "your_api_pass",
        "kernel": "kvm openvz",
        "lv": "",
        "thin_lv": "",
        "disk_path": "",
        "dbhost": "localhost",
        "db": "virtualizor",
        "dbuser": "root",
        "dbpass": "o9hfxdkayj",
        "sn": "Virtualizor",
        "cookie_name": "SIMCookies3081",
        "gzip": "1",
        "cpu_nm": "0",
        "overcommit": "0",
        "language": "english",
        "soft_email": "test@test.com",
        "theme_folder": "default",
        "timezone": "1",
        "update": "1",
        "email_update": "1",
        "email_update_client": "0",
        "cron_time": "18 16 * * 3",
        "emps_cron_time": "18 16 * * 3",
        "logo_url": "",
        "mail": "1",
        "mail_server": "",
        "mail_port": "",
        "mail_user": "",
        "mail_pass": "",
        "off": "0",
        "off_subject": "",
        "off_message": "",
        "admin_logs": "2",
        "vps_logs": "2",
        "login_logs": "2",
        "system_logs": "7",
        "status_logs": "7",
        "bandwidth_logs": "0",
        "sess_len": "3600",
        "copyright": "",
        "interface": "eth0",
        "xen_pvbridge": "",
        "xen_hvmbridge": "",
        "xen_dom0mem": "1024",
        "use_xl": "",
        "ipadd": "",
        "netmask": "",
        "gateway": "",
        "ip6add": "",
        "gateway6": "",
        "int_bridge": "",
        "int_ipadd": "",
        "int_netmask": "",
        "login_attempts": "5",
        "login_ban_time": "15",
        "alert_load_limit": "0",
        "alert_disk_limit": "0",
        "vswap": "1",
        "noc_username": "",
        "noc_password": "",
        "disable_webuzo": "",
        "disabled_scripts": "",
        "disable_icons_monitor": "0",
        "disable_icons_cp": "0",
        "disable_email": "0",
        "node_bandwidth": "100",
        "change_ssh_port": "2044",
        "max_ssh_login": "20",
        "vnc_ip": "",
        "ping_ip": "",
        "distro": "",
        "dhcp_interface": "",
        "support": "softaculous.com",
        "addvs_io_class": "",
        "addvs_io_prio": "",
        "addvs_cpu_prio": "",
        "vpslimit": "200",
        "ploop": "0",
        "enable_tuntap_cp": "0",
        "enable_ppp_cp": "1",
        "enable_enduser_vnc": "1",
        "show_server": "0",
        "band_suspend": "0",
        "is_master_only": "0",
        "xcp_lv_prefix": "",
        "novnc": "1",
        "novnc_master_only": "1",
        "novnc_server_name": "1",
        "queue_creation": "0",
        "disable_dd_flags": "0",
        "dbbackup_email": "test@test.com",
        "dbbackup_cron": "18 16 * * 3",
        "is_cloud": "",
        "bridge": "viifbr0",
        "pv_on_hvm": "1",
        "band_calc_creation": "0",
        "no_ebtables_on_plans": "",
        "master_name": "",
        "inodes_gb": "",
        "openvz_suspend_load": "0",
        "disable_login_logo": "1",
        "enable_rdns": "1",
        "disable_backup_cp": "0",
        "auto_add_zone": "1",
        "enable_console": "1",
        "curl_timeout": "4",
        "del_novps_user": "1",
        "del_slave_ostemplate": "0",
        "disable_master_vpsname": "0",
        "showsearch": "1",
        "site_domain": "hostname",
        "use_new_theme": "0",
        "turnoff_virtdf": "0",
        "disable_newtheme": "0",
        "disable_recipes": "0",
        "enable_virtio": "0",
        "disable_suspend_email": "1",
        "enable_idsort": "1",
        "del_tasks": "0",
        "disable_apicredential": "0",
        "disable_rescue": "0",
        "disable_change_hostname": "0",
        "disable_change_password": "0",
        "disable_vps_config": "0",
        "disable_os_reinstall": "0",
        "disable_ssh": "0",
        "disable_java_vnc": "0",
        "disable_self_shutdown": "0",
        "disable_server_location": "0",
        "enable_nic": "1",
        "cb_hash": "ub9jwiv26bjnzf3nqpviiwljqfe7ebqv",
        "enable_cb": "1",
        "cb_use_https": "0",
        "cb_url": "billing.nuftp.com\/whmcs\/modules\/servers\/virtualizor\/callback.php",
        "cb_suspend": "1",
        "cb_unsuspend": "1",
        "cb_hostname": "1",
        "cb_terminate": "1",
        "cb_changeips": "1",
        "le_primary_domain": "hostname",
        "le_domain_san": "",
        "le_contact_email": "test@test.com",
        "le_key_size": "4096",
        "le_renew_days": "80",
        "le_staging": "1",
        "le_enable_logging": "1",
        "le_enable_force": "0",
        "le_enable_debug": "0",
        "hf_loaded": "0",
        "charset": "UTF-8",
        "showntimetaken": "1",
        "version": "2.8.6",
        "patch": "0",
        "license": "license_no",
        "port": "4082",
        "vpsid": "0",
        "index": "index.php?",
        "server": "0",
        "queries": "0",
        "docs": "http:\/\/www.virtualizor.com\/wiki\/",
        "apiurl": "http:\/\/api.virtualizor.com\/",
        "openvzos": "\/vz\/template\/cache",
        "xenos": "\/var\/virtualizor\/xen",
        "kvmos": "\/var\/virtualizor\/kvm",
        "xcpos": "\/var\/virtualizor\/xcp",
        "lxcos": "\/var\/virtualizor\/lxc",
        "isos": "\/var\/virtualizor\/iso",
        "virtualboxos": "\/var\/virtualizor\/virtualbox",
        "var": "\/var\/virtualizor",
        "lxc_path": "\/var\/lib\/lxc\/",
        "virts": {
            "openvz": "openvz",
            "xen": "xen",
            "xenhvm": "xenhvm",
            "kvm": "kvm",
            "xcp": "xcp",
            "xcphvm": "xcphvm",
            "lxc": "lxc"
        },
        "mainfiles": "\/usr\/local\/virtualizor\/main",
        "adminfiles": "\/usr\/local\/virtualizor\/admin",
        "themes": "\/usr\/local\/virtualizor\/enduser\/themes",
        "runtime_theme": "api",
        "_disabled_scripts": [],
        "notupdated_task": "3600",
        "com": {
            "vgdisplay": "\/sbin\/vgdisplay",
            "lvdisplay": "\/sbin\/lvdisplay",
            "lvscan": "\/sbin\/lvscan",
            "lvcreate": "\/sbin\/lvcreate",
            "lvremove": "\/sbin\/lvremove",
            "resizefs": "\/sbin\/resize2fs",
            "php": "\/usr\/local\/emps\/bin\/php"
        },
        "HTTP_HOST": "your_server_ip",
        "lictype": "0",
        "lictype_txt": "Free",
        "active": "1",
        "active_txt": "<font color=\"green\">Active<\/font>",
        "licnumvs": "0",
        "primary_ip": "your_server_ip",
        "licexpires": "20161228",
        "licexpires_txt": "28\/12\/2016 GMT",
        "fast_mirrors": ["https:\/\/s1.softaculous.com\/a\/virtualizor", "https:\/\/s2.softaculous.com\/a\/virtualizor", "https:\/\/s4.softaculous.com\/a\/virtualizor", "https:\/\/s7.softaculous.com\/a\/virtualizor"],
        "pgtimezone": "1",
        "apicall": "m7habq1o",
        "apidata": [],
        "SERVER_ADDR": "your_server_ip"
    },
    "timenow": "1471334894",
    "time_taken": "0.124"
}

HTTP Request

https://hostname:4085/index.php?act=license

Parameters

Name Type Value Description Required
act GET license The action specified to perform operation and retrieve data Yes

Change Hostname

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['changehost'] = 1;
    $post['newhost'] = 'test.hostname';

    $output = $admin->hostname($post);

    print_r(json_encode($output));

?>

Result: The above code produces the following output

{
    "title": "Hostname",
    "timenow": "1471391040",
    "time_taken": "0.105"
}

HTTP Request

https://hostname:4085/index.php?act=hostname

Parameters

Name Type Value Description Required
act GET hostname The action specified to perform operation and retrieve data Yes
newhost POST newhost Set the new hostname Yes

Maintainence Mode

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['off'] = 1;
    $post['off_subject'] = 'Testing maintenance with API';
    $post['off_message'] = 'Just testing';
    $post['maintenance'] = 1;

    $output = $admin->maintenance($post);

    print_r(json_encode($output));
?>

Result:The above code produces following output

{
    "title": "Maintenance",
    "done": "1",
    "timenow": "1471392834",
    "time_taken": "0.156"
}

HTTP Request

https://hostname:4085/index.php?act=maintenance

Parameters

Name Type Value Description Required
act GET maintenance The action specified to perform operation and retrieve data Yes
off POST 1 If Set the virtualizor server will be switched to maintenance mode Yes
off_subject POST off_subject The Subject specified to switch to maintenance mode No
off_message POST off_message The message displayed during maintenance mode No
maintenance POST 1 If Set the mainenance mode will be enabled Yes

Kernel configuration

<?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);

    $output = $admin->kernelconf();

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "Kernel Configuration",
    "kernelconf": "## Global parameters\nVIRTUOZZO=yes\nLOCKDIR=\/vz\/lock\nDUMPDIR=\/vz\/dump\nVE0CPUUNITS=1000\n\n## Logging parameters\nLOGGING=yes\nLOGFILE=\/var\/log\/vzctl.log\nLOG_LEVEL=0\nVERBOSE=0\n\n## Disk quota parameters\nDISK_QUOTA=yes\nVZFASTBOOT=no\n\n# Disable module loading. If set, vz initscript do not load any modules.\n#MODULES_DISABLED=yes\n\n# The name of the device whose IP address will be used as source IP for CT.\n# By default automatically assigned.\n#VE_ROUTE_SRC_DEV=\"eth0\"\n\n# Controls which interfaces to send ARP requests and modify APR tables on.\nNEIGHBOUR_DEVS=all\n\n\n## Template parameters\nTEMPLATE=\/vz\/template\n\n## Defaults for containers\nVE_ROOT=\/vz\/root\/$VEID\nVE_PRIVATE=\/vz\/private\/$VEID\nCONFIGFILE=\"basic\"\nDEF_OSTEMPLATE=\"centos-5\"\n\n## Load vzwdog module\nVZWDOG=\"no\" \n\n## IPv4 iptables kernel modules\nIPTABLES=\"ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp ipt_owner ipt_REDIRECT\"\n## To be loaded by init.d\/vz script\nIPTABLES_MODULES=\"$IPTABLES\"\n\n## Enable IPv6\nIPV6=\"yes\"\n\n## IPv6 ip6tables kernel modules\nIP6TABLES=\"ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT\"\n\n## Filesystem layout for new CTs: either simfs or ploop\nVE_LAYOUT=ploop\nSKIP_SYSCTL_SETUP=yes\n",
    "timenow": "1473905520",
    "time_taken": "0.126"
}

HTTP Request

https://hostname:4085/index.php?act=kernelconf

Parameters

Name Type Value Description Required
act GET kernelconf The action specified to perform operation and retrieve data Yes

Default VPS Configuration

<?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['saveconf'] = 1;
    $post['confinfo'] = '###################################################
    ## Virtualizor OpenVZ Default Configuration File ##
    ###################################################

    ONBOOT="yes"

    # UBC parameters (in form of barrier:limit)
    KMEMSIZE="unlimited"
    LOCKEDPAGES="unlimited"
    PRIVVMPAGES="unlimited"
    SHMPAGES="unlimited"
    NUMPROC="unlimited"
    PHYSPAGES="0:262144"
    SWAPPAGES="0:262144"
    VMGUARPAGES="unlimited"
    OOMGUARPAGES="unlimited"
    NUMTCPSOCK="unlimited"
    NUMFLOCK="unlimited"
    NUMPTY="unlimited"
    NUMSIGINFO="unlimited"
    TCPSNDBUF="unlimited"
    TCPRCVBUF="unlimited"
    OTHERSOCKBUF="unlimited"
    DGRAMRCVBUF="unlimited"
    NUMOTHERSOCK="unlimited"
    DCACHESIZE="unlimited"
    NUMFILE="unlimited"
    AVNUMPROC="unlimited"
    NUMIPTENT="unlimited"

    # Disk quota parameters (in form of softlimit:hardlimit)
    DISKSPACE="10485760:10485760"
    DISKINODES="100000000:100000000"
    QUOTATIME="0"

    # CPU fair sheduler parameter
    CPUUNITS="1001"


    VE_ROOT="/vz/root/$VEID"
    VE_PRIVATE="/vz/private/$VEID"
    OSTEMPLATE="centos-5.0-x86"
    ORIGIN_SAMPLE="vps.basic"
    IP_ADDRESS=""
    HOSTNAME=""
    NAMESERVER=""
    QUOTAUGIDLIMIT="10000"
    IOPRIO="3"
    CPULIMIT="5"
    CPUS="4"
    ';

    $output = $admin->defaultvsconf($post);

    print_r(json_encode($output));
?>

Result:The above code will produce the following output

{
    "title": "Default VPS Configuration",
    "done": "1",
    "defaultvsconf": "###################################################\n## Virtualizor OpenVZ Default Configuration File ##\n###################################################\n\nONBOOT=\"yes\"\n\n# UBC parameters (in form of barrier:limit)\nKMEMSIZE=\"unlimited\"\nLOCKEDPAGES=\"unlimited\"\nPRIVVMPAGES=\"unlimited\"\nSHMPAGES=\"unlimited\"\nNUMPROC=\"unlimited\"\nPHYSPAGES=\"0:262144\"\nSWAPPAGES=\"0:262144\"\nVMGUARPAGES=\"unlimited\"\nOOMGUARPAGES=\"unlimited\"\nNUMTCPSOCK=\"unlimited\"\nNUMFLOCK=\"unlimited\"\nNUMPTY=\"unlimited\"\nNUMSIGINFO=\"unlimited\"\nTCPSNDBUF=\"unlimited\"\nTCPRCVBUF=\"unlimited\"\nOTHERSOCKBUF=\"unlimited\"\nDGRAMRCVBUF=\"unlimited\"\nNUMOTHERSOCK=\"unlimited\"\nDCACHESIZE=\"unlimited\"\nNUMFILE=\"unlimited\"\nAVNUMPROC=\"unlimited\"\nNUMIPTENT=\"unlimited\"\n\n# Disk quota parameters (in form of softlimit:hardlimit)\nDISKSPACE=\"10485760:10485760\"\nDISKINODES=\"100000000:100000000\"\nQUOTATIME=\"0\"\n\n# CPU fair sheduler parameter\nCPUUNITS=\"1001\"\n\n\nVE_ROOT=\"\/vz\/root\/$VEID\"\nVE_PRIVATE=\"\/vz\/private\/$VEID\"\nOSTEMPLATE=\"centos-5.0-x86\"\nORIGIN_SAMPLE=\"vps.basic\"\nIP_ADDRESS=\"\"\nHOSTNAME=\"\"\nNAMESERVER=\"\"\nQUOTAUGIDLIMIT=\"10000\"\nIOPRIO=\"3\"\nCPULIMIT=\"5\"\nCPUS=\"4\"\n",
    "timenow": "1473915377",
    "time_taken": "0.097"
}

HTTP Request

https://hostname:4085/index.php?act=defaultvsconf

Parameters

Name Type Value Description Required
act GET defaultvsconf The action specified to perform operation and retrieve data Yes
saveconf POST saveconf If set then the configuration will be saved No
confinfo POST confinfo It is the configuration of the vps that will be saved No

Updates

<?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['update'] = 1;

    $output = $admin->updates($post);

    print_r(json_encode($output));
?>

Result:The above code produces the following output

{
    "title": "Update Center",
    "updated": "null",
    "info": {
        "version": "2.8.7",
        "patch": "2",
        "message": "There are no new updates. Your Server is running the latest VIRTUALIZOR Version.",
        "link": "",
        "mode": "1",
        "redirect": ""
    },
    "timenow": "1473917150",
    "time_taken": "0.226"
}

HTTP Request

https://hostname:4085/index.php?act=updates

Parameters

Name Type Value Description Required
act GET updates Will get updates Yes
updates POST 1/0 If set then the update script will run Yes

Email Templates

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $output = $admin->emailtemp();

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Email Templates",
    "emailtemps": {
        "addvs": {
            "title": "mail_addvs_sub",
            "body": "mail_addvs"
        },
        "admin_addvs": {
            "title": "admin_mail_addvs_sub",
            "body": "admin_mail_addvs"
        },
        "admin_addvs_err": {
            "title": "admin_mail_addvs_err_sub",
            "body": "admin_mail_addvs_err"
        },
        "deletevs": {
            "title": "admin_mail_del_vs_sub",
            "body": "admin_mail_del_vs"
        },
        "admin_del_vs_err": {
            "title": "admin_mail_del_vs_err_sub",
            "body": "admin_mail_del_vs_err"
        },
        "admin_rebuild_vs": {
            "title": "admin_mail_rebuild_vs_sub",
            "body": "admin_mail_rebuild_vs"
        },
        "admin_rebuild_vs_err": {
            "title": "admin_mail_rebuild_vs_err_sub",
            "body": "admin_mail_rebuild_vs_err"
        },
        "createtemplate": {
            "title": "createtemplate_sub",
            "body": "createtemplate_vs"
        },
        "createtemplate_err": {
            "title": "createtemplate_err_sub",
            "body": "createtemplate_vs_err"
        },
        "reset_pass": {
            "title": "mail_sub",
            "body": "mail_body"
        },
        "suspend_vps": {
            "title": "suspend_vps_sub",
            "body": "suspend_vps_body"
        },
        "unsuspend_vps": {
            "title": "unsuspend_vps_sub",
            "body": "unsuspend_vps_body"
        },
        "suspend_vps_net": {
            "title": "suspend_vps_net_sub",
            "body": "suspend_vps_net_body"
        },
        "unsuspend_vps_net": {
            "title": "unsuspend_vps_net_sub",
            "body": "unsuspend_vps_net_body"
        }
    },
    "timenow": "1471395581",
    "time_taken": "0.097"
}

HTTP Request

https://hostname:4085/index.php?act=emailtemp

Parameters

Name Type Value Description Required
act GET emailtemp Will return all the email templates Yes

Edit Email Templates

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['temp'] = 'unsuspend_users';

    $post['savetemplate'] = 1;

    $post['tempsub'] = 'Test editing with API'; 
    $post['tempcontent'] = 'Doing test with api. Will restore later';   
    $output = $admin->editemailtemp($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Edit Email Template",
    "done": "1",
    "emailtemp": "null",
    "timenow": "1480485898",
    "time_taken": "0.104"
}

HTTP Request

https://hostname:4085/index.php?act=editemailtemp&temp=TEMP

Parameters

Name Type Value Description Required
act GET editemailtemp The action will edit the email template Yes
temp POST temp The template name that needs to be edited Yes
savetemplate POST 1/0 IF set then the new template will be set Yes
tempsub POST tempsub This will set a temporary subject to the email template Yes
tempcontent POST tempcontent This will set a temporary content to the email template Yes

Reset Email Template

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['temp'] = 'unsuspend_users';

    $post['reset'] = 'unsuspend_users';

    $output = $admin->resetemailtemp($post);
    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Edit Email Template",
    "emailtemp": "null",
    "timenow": "1480491141",
    "time_taken": "0.102"
}

HTTP Request

https://hostname:4085/index.php?act=editemailtemp&reset=

Parameters

Name Type Value Description Required
act GET editemailtemp The action will edit the template Yes
temp POST temp The name of the template that has to be edited Yes
reset POST reset If the key is passed then the template will be reset Yes

Backups

Database Regular Backups

<?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['databasebackups'] = 1;
    $post['type'] = 'EMAIL';
    $post['dbbackup_cron'] = '18 16 * *3';
    $post['email'] = 'test@test.com';

    $output = $admin->databackup($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "Database Backup",
    "done": {
        "cron_set": "1"
    },
    "timenow": "1477549025",
    "time_taken": "0.126"
}

HTTP Request

https://hostname:4085/index.php?act=databackups

Parameters

Name Type Value Description Required
act GET databackups The action will set the backup settings Yes
databasebackups POST 1/0 If the set then the database backups will be taken Yes
type POST type The type of backups to be taken. The type of backup that the user will recieve Yes
dbbackup_cron POST dbbackup_cron The cron will be set to take timely backup of database Yes
email POST email The email to which the backup will be sent No

Database Immediate Backup(Delete)

<?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['id'] = '20160529.sql';

    $output = $admin->databackup($post);

    print_r(json_encode($output));
?>

Result : The above code will produce the following output

{
    "title": "Database Backup",
    "done": {
        "delete": "true"
    },
    "timenow": "1477630600",
    "time_taken": "0.108"
}

HTTP Request

https://hostname:4085/index.php?act=databackup

Parameters

Name Type Value Description Required
act GET databackup The action will delete a specified backup file Yes
id POST id The name of the backup file. Just specify the name of the file Yes

Restore VPS Backups

<?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['restore'] = 1;
    $post['restore'] = 3641;
    $post['date'] = '20161103';

    $output = $admin->vpsbackups($post);

    print_r(json_encode($output));
?>

Result: The above code will product the following output

{
    "title": "VPS Backups",
    "backups_list": {
        "20161205": [],
        "2016\/12\/05": []
    },
    "restore_done": "true",
    "timenow": "1480938156",
    "time_taken": "0.092"
}

HTTP Request

https://hostname:4085/index.php?act=vpsbackups&restore=VPSID&date=DATE

Parameters

Name Type Value Description Required
act GET vpsbackups This action will restore the vps whose backup exists Yes
restore POST 1/0 If set then the restore process will be carried out Yes
restore POST restore The vps that needs to be restored Yes
date POST The date signifies if the backup is latest or old Yes

VPS Backup Settings

<?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['vpsbackups'] = 1;
    $post['hourly_freq'] = 00;
    $post['type'] = 'LOCAL';
    $post['freq'] = 'daily';
    $post['hrs'] = 11;
    $post['min'] = 30;
    //$post['day'] = 1;
    //$post['date'] = 1;
    $post['rotation'] = 4;
    $post['nice'] = -20;
    $post['ionice_prio'] = 1;
    $post['ionice_class'] = 1;
    $post['enabled'] = 1;
    $post['dir'] = '/testback';
    $post['vpses'][] = 3646;

    $output = $admin->vpsbackupsettings($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "VPS Backups Settings",
    "done": "1",
    "backupsettings": {
        "vbid": "253",
        "serid": "0",
        "bid": "0",
        "enabled": "1",
        "newvps": "0",
        "frequency": "daily",
        "run_time": "11:30",
        "hourly_freq": "0",
        "run_day": "1",
        "run_date": "1",
        "rotation": "4",
        "vpsids": ["3646"],
        "nice": "-20",
        "ionice_prio": "1",
        "ionice_class": "1",
        "disable_compression": "0",
        "dir": "\/testback",
        "hrs": "11",
        "min": "30"
    },
    "timenow": "1478049386",
    "time_taken": "0.094"
}

HTTP Request

https://hostname:4085/index.php?act=vpsbackupsettings

Parameters

Name Type Value Description Required
act GET vpsbackupsettings This action will set the backup settings Yes
vpsbackups POST 1/0 If set then the settings will be saved Yes
hourly_freq POST Int This will set the backup time to be taken after specific hour Yes
type POST type This specify which kind of backup will be taken (FILE/SSH/LOCAL) Yes
freq POST freq This specifies the frequency for the backup to be takem (Hourly/Daily/Weekly/Monthly) Yes
hrs POST Int This specifies the time in hrs to start the backup process when the freq option is set to Daily Yes
min POST Int This specifies the time in min to start the backup process when the freq option is set to Daily Yes
day POST Int This specifies the time in min to start the backup process when the freq option is set to Monthly Yes
date POST Int This specifies the date day to start the backup process when the freq option is set to Monthly Yes
rotation POST Int This specifies the number of copies each backup will have Yes
nice POST Int This is the process priority the cpu will give according to the value Yes
ionice_pro POST Int This is the I/O priority that will be used while taking backups. Ranges from 0-7 Yes
ionice_class POST ionice_class This specifies the I/O class using which the backup will be taken which can be either (Real Time/Best Effort/Idle) valued as (½/3) Yes
enabled POST 1/0 This signifies if the backup is enabled or not Yes
dir POST dir The will create a backup directory Yes
vpses POST vpses This lists the selected vps for backup Yes

Clear Logs

<?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['clearlog'] = 1;

    $output = $admin->vpsbackupsettings($post);

    print_r(json_encode($output));
?>

Result: The above code produces the following output

{
    "title": "VPS Backups Settings",
    "backupsettings": {
        "vbid": "257",
        "serid": "0",
        "bid": "0",
        "enabled": "1",
        "newvps": "0",
        "frequency": "daily",
        "run_time": "11:30",
        "hourly_freq": "00",
        "run_day": "1",
        "run_date": "1",
        "rotation": "4",
        "vpsids": [3682, 3641],
        "nice": "-20",
        "ionice_prio": "1",
        "ionice_class": "1",
        "disable_compression": "0",
        "dir": "\/backups",
        "hrs": "11",
        "min": "30"
    },
    "timenow": "1478151806",
    "time_taken": "0.091"
}

HTTP Request

https://hostname:4085/index.php?act=vpsbackupsettings

Parameters

Name Type Value Description Required
act GET vpsbackupsettings This action will set the backup settings Yes
clearlog POST 1/0 If set then the backup log will be deleted Yes

Immedidate Backup VPS

<?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['backupnow'] = 1;

    $output = $admin->vpsbackupsettings($post);

    print_r(json_encode($output));
?>

Result: The above code will produce the following output

{
    "title": "VPS Backups Settings",
    "backupsettings": {
        "vbid": "263",
        "serid": "0",
        "bid": "0",
        "enabled": "1",
        "newvps": "0",
        "frequency": "daily",
        "run_time": "09:12",
        "hourly_freq": "00",
        "run_day": "1",
        "run_date": "1",
        "rotation": "1",
        "vpsids": ["3712", "3744"],
        "nice": "-20",
        "ionice_prio": "0",
        "ionice_class": "1",
        "disable_compression": "0",
        "dir": "\/backups",
        "hrs": "09",
        "min": "12"
    },
    "logs": "[Sun Nov 27 09:12:22 2016] Starting Backup Process\n[Sun Nov 27 09:12:22 2016] Storage : 44 Virt :openvz\n[Sun Nov 27 09:12:22 2016] Scanning for an existing backup process\n[Sun Nov 27 09:12:22 2016] Temp Dir : \/vz\/dump\n[Sun Nov 27 09:12:22 2016] VPS Backups type is LOCAL\n[Sun Nov 27 09:12:22 2016] Creating the backup folders\n[Sun Nov 27 09:12:22 2016] Local Backup Folders :\n[Sun Nov 27 09:12:22 2016] Folders to Delete :\n[Sun Nov 27 09:12:42 2016] Backup process successfully completed in: 0.3 minutes\n[Mon Nov 28 09:12:01 2016] Starting Backup Process\n[Mon Nov 28 09:12:01 2016] Storage : 1 Virt :kvm\n[Mon Nov 28 09:12:01 2016] Scanning for an existing backup process\n[Mon Nov 28 09:12:01 2016] Cleaning up after previous process\n[Mon Nov 28 09:12:02 2016] Temp Dir :\n[Mon Nov 28 09:12:02 2016] VPS Backups type is LOCAL\n[Mon Nov 28 09:12:02 2016] Creating the backup folders\n[Mon Nov 28 09:12:02 2016] Local Backup Folders :\n[Mon Nov 28 09:12:02 2016] 20161127\n[Mon Nov 28 09:12:02 2016] Folders to Delete :\n[Mon Nov 28 09:12:02 2016] 20161127\n[Mon Nov 28 09:12:12 2016] Backup process successfully completed in: 0.2 minutes\n[Mon Nov 28 09:12:12 2016] Starting Backup Process\n[Mon Nov 28 09:12:12 2016] Storage : 44 Virt :openvz\n[Mon Nov 28 09:12:12 2016] Scanning for an existing backup process\n[Mon Nov 28 09:12:12 2016] Temp Dir : \/vz\/dump\n[Mon Nov 28 09:12:12 2016] VPS Backups type is LOCAL\n[Mon Nov 28 09:12:12 2016] Creating the backup folders\n[Mon Nov 28 09:12:12 2016] Local Backup Folders :\n[Mon Nov 28 09:12:12 2016] Folders to Delete :\n[Mon Nov 28 09:12:22 2016] Backup process successfully completed in: 0.2 minutes\n[Mon Nov 28 10:26:41 2016] Starting Backup Process\n[Mon Nov 28 10:26:41 2016] Storage : 1 Virt :kvm\n[Mon Nov 28 10:26:41 2016] Scanning for an existing backup process\n[Mon Nov 28 10:26:41 2016] Cleaning up after previous process\n[Mon Nov 28 10:26:42 2016] Temp Dir :\n[Mon Nov 28 10:26:42 2016] VPS Backups type is LOCAL\n[Mon Nov 28 10:26:42 2016] Creating the backup folders\n[Mon Nov 28 10:26:42 2016] Local Backup Folders :\n[Mon Nov 28 10:26:42 2016] Folders to Delete :\n[Mon Nov 28 10:26:42 2016] [VID:3712] Creating backup of VPS [Disk Size: 20GB]\n[Mon Nov 28 10:45:40 2016] Starting Backup Process\n[Mon Nov 28 10:45:40 2016] Storage : 1 Virt :kvm\n[Mon Nov 28 10:45:40 2016] Scanning for an existing backup process\n[Mon Nov 28 10:45:40 2016] An existing backup process is still running. Quiting\n[Mon Nov 28 10:48:39 2016] Starting Backup Process\n[Mon Nov 28 10:48:39 2016] Storage : 1 Virt :kvm\n[Mon Nov 28 10:48:39 2016] Scanning for an existing backup process\n[Mon Nov 28 10:48:39 2016] An existing backup process is still running. Quiting\n[Mon Nov 28 10:49:47 2016] [VID:3712] VPS Backup Completed in: 23.1 minutes\n[Mon Nov 28 10:49:47 2016] [VID:3744] Creating backup of VPS [Disk Size: 8GB]",
    "timenow": "1480330264",
    "time_taken": "0.139"
}

Power DNS

List DNS Server

<?php
    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  '';
    $pass = '';
    $ip = '';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post=array();
    $page = 1;
    $reslen = 20;
    $output = $admin->pdns($page,$reslen,$post);
    print_r(json_encode($output));

?>

Result:The above code produces the following output

{
    "title": "Power DNS",
    "pdns": {
        "7": {
            "id": "7",
            "name": "My dns",
            "description": "",
            "sql_ipaddress": "ip address of the server",
            "sql_port": "port no",
            "sql_username": "root",
            "sql_password": "",
            "sql_database": "powerdns",
            "use_ssl": "1",
            "encrypt_sql_pass": "0",
            "salt": ""
        },
        "10": {
            "id": "10",
            "name": "dns2",
            "description": "",
            "sql_ipaddress": "ip address of the server",
            "sql_port": "port no",
            "sql_username": "root",
            "sql_password": "",
            "sql_database": "powerdns",
            "use_ssl": "0",
            "encrypt_sql_pass": "0",
            "salt": "otantjf9"
        }
    },
    "timenow": "1471398001",
    "time_taken": "0.095"
}

HTTP Request

https://hostname:4085/index.php?act=pdns

Parameters

Name Type Value Description Required
act GET pdns Returns all the pdns servers Yes
pdns_name POST server_name This lists the dns server according to the server name Yes
pdns_ipaddress POST pdns_ipaddress This list the pdns server according to the ip address Yes

Add DNS Server

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);
    $post = array();
    $post['name'] = 'api-test';
    $post['descr'] = 'apidesc';
    $post['ipaddress'] = '127.0.5.5';
    $post['sqldb'] = 'apidb';
    $post['sqlpassword'] = 'passsword';
    $post['encrypt_sql_pass'] = 1;
    $post['sqlport'] = '3306';
    $post['sqlusername'] = 'user';
    $post['use_ssl'] = 1;

    $output = $admin->addpdns($post);

    print_r($output);

?>

Result: The above code produces the following output

{
    "title": "Add DNS Server",
    "done": "true",
    "timenow": "1471398668",
    "time_taken": "0.112"
}

HTTP Request

https://hostname:4085/index.php?act=addpdns

Parameters

Name Type Value Description Required
act GET addpdns Creates the pdns server Yes
addpdns POST 1 If Set then pdns server will be added Yes
name POST name Name given to the server Yes
descr POST descr A short description given to the server Yes
ipaddress POST ipaddress IP Address to be given for connection Yes
sqldb POST sqldb Specifying the SQL database name Yes
sqlpassword POST sqlpassword Specifying the SQL Password Yes
encrypt_sql_pass POST 1/0 This will encrypt the user password No
sqlport POST slport Port given to the server for remote connection Yes
sqlusername POST sqlusername Specifying username of the sql database in the dns server Yes
use_ssl POST 1/0 The powerdns using a secure connection No

Edit DNS Server

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();    
    $post['pdnsid'] = 15;
    $post['name'] = 'api-test-edit';
    $post['descr'] = 'edited';
    $post['ipaddress'] = '127.0.5.5';
    $post['sqldb'] = 'apidb';
    $post['sqlpassword'] = 'passsword';
    $post['encrypt_sql_pass'] = 1;
    $post['sqlport'] = '3306';
    $post['sqlusername'] = 'user';
    $post['use_ssl'] = 1;

    $output = $admin->editpdns($post);

    print_r($output);

?>

Result : The above code will produce the following output

{
    "title": "Edit PDNS Server",
    "timenow": "1480594044",
    "time_taken": "0.081"
}

HTTP Request

https://hostname:4085/index.php?act=editpdns&pdnsid=PDNSID

Parameters

Name Type Value Description Required
act GET editpdns The action will list the pdns after edit action has been done Yes
editpdns POST 1/0 If set then the pdns will be edited Yes
name POST name Name given to the server Yes
descr POST descr A short description given to the server Yes
ipaddress POST ipaddress IP Address to be given for connection Yes
sqldb POST sqldb Specifying the SQL database name Yes
sqlpassword POST sqlpassword Specifying the SQL Password Yes
encrypt_sql_pass POST 1/0 This will encrypt the user password No
sqlport POST slport Port given to the server for remote connection Yes
sqlusername POST sqlusername Specifying username of the sql database in the dns server Yes
use_ssl POST 1/0 The powerdns using a secure connection No

Delete DNS Server

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['delete'] = 15;

    $output = $admin->pdns($post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Power DNS",
    "done": {
        "15": {
            "id": "15",
            "name": "api-test",
            "description": "apidesc",
            "sql_ipaddress": "127.0.5.5",
            "sql_port": "3306",
            "sql_username": "user",
            "sql_password": "u5zSUM18eq\/XfEH38BXwErf7jLU1fhjceoPFydAU67o=",
            "sql_database": "apidb",
            "use_ssl": "1",
            "encrypt_sql_pass": "1",
            "salt": "vz8lkq9o"
        }
    },
    "pdns": "null",
    "timenow": "1480655312",
    "time_taken": "0.112"
}

HTTP Request

https://hostname:4085/index.php?act=pdns

Parameters

Name Type Value Description Required
act GET pdns The action will return a list of pdns server after deleting the specified one Yes
delete POST Int The pdns server that needs to be deleted Yes
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Search DNS Servers

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';

    $pass = 'yrsofc3tg3tre7bjpfppspxxxxxxxxxx';

    $ip = 'xxx.xxx.xxx.xxx';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post['pdns_name'] = 'PDNS';
    $post['pdns_ipaddress'] = '';

    $output = $admin->pdns($post);

    print_r(json_encode($output));

?>

Result: The above code will produce the following output

{
    "title": "Power DNS",
    "pdns": {
        "1": {
            "id": "1",
            "name": "PDNS",
            "description": "",
            "sql_ipaddress": "107.189.35.163",
            "sql_port": "3306",
            "sql_username": "root",
            "sql_password": "",
            "sql_database": "powerdns",
            "use_ssl": "0",
            "encrypt_sql_pass": "0",
            "salt": ""
        }
    },
    "timenow": "1481535899",
    "time_taken": "0.109"
}

HTTP Request

https://hostname:4085/index.php?act=pdns&pdns_name=PDNS_NAME&pdns_ipaddress=PDNS_IPADDRESS&page=PAGE&reslen=RESLEN

Parameters

Name Type Value Description Required
act GET pdns The action lists all pdns servers Yes
pdns_name GET PDNS_NAME Name of the pdns server No
pdns_ipaddress GET PDNS_IPADDRESS IP address of the pdns server No
reslen GET Int Number of records to be returned, default is 50 No
page GET Int Page number, each page show 50 records No

Domains

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'uketenhrhpunty5lhgwkcuxxxxxxxxxx';