Rescue Mode¶
Note that this API method is available only for KVM virtual machines
Supported Versions | Last Updated |
---|---|
1.20.05 & higher | 2018/02/16 |
Action | vserver-rescue |
---|---|
Method | GET, POST |
Variables | vserverid [id of virtual server] rescueenable [1,2,3] 1 = 4.x kernel 64bit, 2 = 3.x kernel 64bit, 3 = 3.x kernel 32bit rescuedisable [true or false] rdtype [json] For json output specify json or for default output leave blank. This variable is optional |
Example Output | XMLSuccess: <status>success</status> <statusmsg>Rescue mode enabled</statusmsg> <password>ZkBa5SKtY7MiQT6</password> <user>root</user> <port>22</port> <ip>127.0.0.2</ip> Error: <status>error</status> <statusmsg>ERROR MESSAGE</statusmsg> JSONSuccess: { "status": "success", "statusmsg": "Rescue mode enabled", "password": "wR4cLl7k7XIb1HQ", "user": "root", "port": "22", "ip": "127.0.0.2" } Error: {"status":"error","statusmsg":"ERROR MESSAGE"} |