Get Virtualizor

List backup

Use Backup API to get information about the backups for your VPS on your server.

The Backups on End User Panel is for OpenVZ only.

HTTP Request

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

Parameters

NameTypeValueDescriptionRequired
actGETbackupThe action specified will take backup of the vpsYes
svsPOSTvpsidThe vps whose backup will be takenYes

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);
    $vid = 3615;
    $output = $admin->list_backup($vid);

    print_r(json_encode($output));
?>

Curl

curl -k -X POST -d "cbackup=0" -L 
"https://hostname:4083/index.php?act=backup2&
svs=3615&api=json&apikey=your_api_key& 
apipass=your_api_pass"

Output

{
   "backups_list":[
      "20191018"
   ],
   "backup_limit":"-1",
   "restore_limit":"5",
   "backup_used":14,
   "restore_used":0,
   "service_period":{
      "start":"01-10-2019",
      "end":"31-10-2019"
   }
}
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list