Get Virtualizor

Control Panel

Use Control Panel API to install panel on your VPS of your server.

HTTP Request

https://hostname:4083/index.php?act=controlpanel&svs=vpsid

Parameters

NameTypeValueParameters
actGETcontrolpanelThe action which will carry out the operation and retrieve data
svsPOSTvpsidThe vps in which the control panel has to be installed. This is passed in the url
insPOST1/0IF set then the control panel will be installed inside the vps
vidPOSTGvpsidThe vps in which the control panel has to be installed. This is passed as a POST Parameter.

Panel options

( cpanel | plesk | webuzo | kloxo | webmin | vestacp )

Sample Code

PHP

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

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

    $admin = new Virtualizor_Enduser_API($ip, $key, $pass);
    $panel = "webuzo";
    $vid = 3609;

    $output = $admin->controlpanel($vid,$panel);

    print_r(json_encode($output));
?>

Curl

curl -k -X POST -d "ins=plesk" -L "https://hostname:4083/index.php?act=controlpanel&svs=3609&api=json&apikey=your_api_key&apipass=your_api_pass"

Output

{
    "uid": "372",
    "act": "controlpanel",
    "timezone": 1,
    "timenow": "October 9, 2016, 5:52 am",
    "vpsid": 3609,
    "username": "test@test.com",
    "user_type": "2",
    "preferences": {
        "fname": "test",
        "lname": "test",
        "language": "english",
        "theme": "default",
        "timezone": 1,
        "logo": ""
    },
    "url": "index.php?",
    "rdns": {
        "pdnsid": "12"
    },
    "pdns": {
        "pdnsid": "12"
    },
    "support_link": "http://softaculous.com",
    "title": "Control panels",
    "done": {
        "msg": "The Panel will be installed when you shutdown and then start the VPS"
    },
    "onboot": "The Panel will be installed when you shutdown and then start the VPS",
    "time_taken": "0.818"
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list