vserver_list_backup ()
This function triggers manual backup of VPS.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
| vserver_id | unique id of VPS* |
Returns: | HTTP code | 200 (OK) |
---|
| | Function call successful. Reply portion reply is empty. |
Return errors
Error code | HTTP response code | Description |
---|
1 | 400 (Bad request) |
Function was not performed, because all required parameters were not entered. Reply portion reply is empty.
|
3 | 403 (Forbidden) |
Function call failed, invalid sid parameter. Create new sid using /api/login function. Reply portion reply is empty.
|
5 | 403 (Forbidden) |
Function has not been performed, because it is probably an attempt to manipulate VPS that is not in your administration. Reply portion reply is empty.
|
CURL
curl "https://admin.hosting90.eu/api/vserver_list_backup?sid=%sid%&vserver_id=%vserver_id%"
PHP Library
$api->vserver_list_backup(array(
'vserver_id' => %vserver_id%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<backup_info>
<backups>
<backup>
<backup_id>virtual_399-auto-2015-11-13-01-22-54-aada31e6</backup_id>
<date>13.11.2015 01:22:54</date>
<status>complete</status>
<type>auto</type>
</backup>
<backup>
<backup_id>virtual_399-auto-2015-11-12-00-47-19-3c35556b</backup_id>
<date>12.11.2015 00:47:19</date>
<status>complete</status>
<type>auto</type>
</backup>
<backup>
<backup_id>virtual_399-auto-2015-11-11-00-59-50-37b92665</backup_id>
<date>11.11.2015 00:59:50</date>
<status>complete</status>
<type>auto</type>
</backup>
<backup>
<backup_id>virtual_399-man-2015-03-11-12-52-39-f53f78ab</backup_id>
<date>11.03.2015 12:52:39</date>
<status>complete</status>
<type>man</type>
</backup>
</backups>
<restores>
<restore>
<date>01.06.2017 09:49:33</date>
<status>complete</status>
<type>auto</type>
<request_id>b23d7ad6d78ba4472677c451eaf783e4578f1e56</request_id>
<backup_id>virtual_399-auto-2017-06-01-00-59-40-f72b61a8</backup_id>
</restore>
</restores>
</backup_info>
</reply>