Here is what I ended up doing:
#!/bin/bash
if [ -f vms.config ]; then
rm vms.config
fi
echo 'node,type,name,cores,memory,disk1,virtio1,scsi0,scsi1' >vms.config
for i in $(pvesh get /nodes/ --noheader --output-format json|jq -r '.[] .node')
do
for j in $(/usr/bin/pvesh get /nodes/$i/qemu...