Proxmox API for restoration of a vm backup-archive

api-user

New Member
Sep 10, 2020
1
0
1
59
I am struggling to find an API to restore the already created backup archive of a VM. Please help.
 
Help me please! I can't find any solution…

How can i restore existed VM using HTTP API?
Using post request to 'nodes/{node}/qemu' with parameters 'archive' and 'vmid' i can create new VM from vma.zst file with unique ID, but can't restore herself

It's possible?

Or I must delete current VM and immediately restore VM with the same ID? (not good solution)
 
I found solution:

post "/nodes/{node-name}/qemu"

[
'vmid' => $vmid,
'force' => 1,
'storage' => 'local',
'archive' => $path
];

$path like – "local-1Tb:backup/vzdump-qemu-104-2021_07_15-01_15_42.vma.zst";
'force' is required for restore current VM