VM Restore via the api

Daxcor

Member
Oct 31, 2021
38
2
13
57
I am trying to find in the api docs a way to restore a vm from a backup created using vzdump endpoint in the api. I see snapshot role back but I don't think that is what I am wanting. How do I go about doing the restore via the api. AI is telling me to use ``/nodes/${config.node}/vzdump/restore`` but I don't see that in the api docs. Not sure what to do.

thanks
Brad
 
Last edited:
Hi @Daxcor ,
If you are not sure of the right API call, you can always execute a similar operation from UI while monitoring "Dev Tools>Network".

The API sequence you are looking for is:
- Retrieve list of available backups from appropriate storage
- Create new VM with archive as source. Specifically POST to https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu with "archive" attribute.

Cheers


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Daxcor