PVE2 API OpenVZ Container Restore problem

Rumen Rachkov

New Member
Jul 15, 2014
4
0
1
Hello,
when I try to restore an openvz container, through the pve2 api, using the following parameters:

array(3) {
["restore"]=>
bool(true)
["ostemplate"]=>
string(60) "gluster:backup/vzdump-openvz-104-2014_08_19-17_31_54.tar.lzo"
["vmid"]=>
string(3) "104"
}

passed to https://proxmoxserver:8006/api2/json/nodes/proxmox3/openvz I get the following error:

HTTP/1.1 500 CT 104 already exists

Isn't this the right way to perform a restore task from the pve2 api?