Use Disable Rescue API to disable rescue mode for VPS on your server.
HTTP Request
https://hostname:4083/index.php?act=rescue&vpsid=svs
Parameters
Name | Type | Value | Description | Required |
---|---|---|---|---|
act | GET | rescue | The action specified to return the data | Yes |
svs | POST | Int | The vpsid whose rescue has to be activated. This will be passed to the URL | Yes |
vid | POST | Int | The vpsid whose rescue mode has to be activated.This will be passed as a POST Parameter | Yes |
disablerescue | POST | 1 | If set, the rescue mode will be de-activated inside the vps | 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 = 3384;
$output = $admin->disable_rescue($vid);
print_r(json_encode($output));
?>
Curl
curl -k -X POST -d "disablerescue=1" -L
"https://hostname:4083/index.php?act=rescue&svs=3609&
api=json&apikey=your_api_key&apipass=your_api_pass"
Output
{
"uid": "321",
"act": "rescue",
"timezone": 1,
"timenow": "September 23, 2016, 7:09 am",
"vpsid": "3008",
"username": "test@test.com",
"user_type": "2",
"preferences": {
"fname": "test",
"lname": "test",
"language": "english",
"theme": "default",
"timezone": 1,
"logo": ""
},
"url": "index.php?",
"rdns": {
"pdnsid": null
},
"support_link": "http://softaculous.com",
"disable_login_logo": 1,
"title": "Rescue Mode",
"done": {
"msg": "Rescue mode has been disabled successfully"
},
"status": null,
"rescue_enabled": false,
"output": null,
"cant_rescue": null,
"time_taken": "16.53"
}