Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 171654

Is relying on nextid for vmid via API safe?

$
0
0
Via the API, there doesn't appear to be a way to create a container without specifying the vmid. To get the vmid, I would do GET /api2/json/cluster/nextid. My concern with this approach is that in a situation where there are multiple people requesting resources at the same time, the same vmid could be requested. I know that the first person wins, and that subsequent create requests with the same vmid will fail, but is there a way to avoid that altogether? What workarounds are available for this situation, if any?

Thanks!

Viewing all articles
Browse latest Browse all 171654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>