Rest API Delete VM

Hyien

Member
Jun 18, 2021
94
2
13
34
does the DELETE nodes/NODe/qemu/VMID function run asynchronously?
after executing that api call, i was still able to see the VMID when I execute GET nodes/NODE/qemu.
 
yes, it will start a task and return the UPID.
use that to query if the task finished
 
e.g. 'POST' for config update (/nodes/nodename/qemu/vmid/config)
but sadly there is not a predefined list of async api calls

best to check the api calls you need e.g. here: https://pve.proxmox.com/pve-docs/api-viewer/
sometimes the description says it, or the return type is 'String' (which means it returns a UPID)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!