Discussion:
[PVE-User] PROXMOX API RESTORE PROBLEM
Krystian Basara
2018-07-11 20:45:11 UTC
Permalink
Hello.
I've got problem with restoring VM.
( all other api functions work correct for me )
Example of what i'm using :
POST methods:

/nodes/NODE/qemu?vmid=102&storage=local&volume=local:backup/vzdump-kvm-102-2018_07_10-09_45_29.tar

/nodes/NODE/qemu?vmid=101&storage=local&ostemplate=local:backup/vzdump-lxc-101-2018_07_10-10_24_51.tar


End point is /nodes/NODE/qemu or lxc, right?
And vars are volume or ostemplate if restoring?

Am I doing it in wrong way?
Thanks for help.
Fabian Grünbichler
2018-07-12 08:28:50 UTC
Permalink
Post by Krystian Basara
Hello.
I've got problem with restoring VM.
( all other api functions work correct for me )
/nodes/NODE/qemu?vmid=102&storage=local&volume=local:backup/vzdump-kvm-102-2018_07_10-09_45_29.tar
/nodes/NODE/qemu?vmid=101&storage=local&ostemplate=local:backup/vzdump-lxc-101-2018_07_10-10_24_51.tar
End point is /nodes/NODE/qemu or lxc, right?
And vars are volume or ostemplate if restoring?
"archive" is the parameter for the backup archive, volume is for VM
disks, ostemplate is for creating a container from a template. check the
API docs (shipped as part of pve-docs and linked at the bottom of the
documentation).

Loading...