pvesh get cluster/nextid got me the answer I needed - the next available instance ID (100+n+1).Hi @maarten256 , the request of the OP in this thread was not to find next available ID. But good for you on finding the correct API call for your needs.fter some sputtering I found thatpvesh get cluster/nextidgot me the answer I needed - the next available instance ID (100+n+1).
Its a good question to ask. Here is a collection of mostly more recent threads with examples of how to extract various data:But I still have no idea how to get a list of all instances that are in my cluster, from ID 100 through 100+n. Maybe this is an odd question to ask...
pvesh get cluster/resources will list all available resources like nodes , networks and VMs , so you need to filter for qemu only pvesh get cluster/resources --output-format json \
| jq -r '.[] | select(.type=="qemu") | .name'
We use essential cookies to make this site work, and optional cookies to enhance your experience.