Start VPS/VDS Print

  • 0

Use Start VM API to start VPS on your server.

HTTP Request

https://serverpanel.yeral.net:4083/index.php?act=start&svs=vpsid&do=1

Parameters

Name Type Value Description Required
act GET start The action carried out to get data Yes
do GET 1 If set this will allow to carry out the operation Yes
svs POST Int The vps id which needs to be started.This will be passed to the url Yes

Sample Code

PHP

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

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

    $vid = 3332;

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

Curl

curl -k  -L "https://hostname:4083/index.php?
svs=3560&act=start&api=json
&apikey=your_api_key&apipass=your_api_pass&do=1"

Output

{
    "uid": "321",
    "act": "start",
    "timezone": 1,
    "timenow": "September 20, 2016, 6:41 am",
    "vpsid": "3008",
    "username": "test@test.com",
    "user_type": "2",
    "preferences": {
        "fname": "test",
        "lname": "test",
        "theme": "default",
        "language": "english",
        "timezone": 1
    },
    "url": "index.php?",
    "rdns": {
        "pdnsid": null
    },
    "support_link": "http://softaculous.com",
    "disable_login_logo": 1,
    "title": "Start VPS",
    "done": {
        "msg": "The VPS was started successfully"
    },
    "status": 1,
    "output": false,
    "time_taken": "2.211"
}

Was this answer helpful?
Back