Rest API Delete VM

Hyien

Member
Jun 18, 2021
95
3
13
35
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)