L luphi Renowned Member Nov 9, 2015 82 5 73 Feb 25, 2019 #1 Hello all, is there a way to identify by the API, which VMs are templates or not? Cheers, Martin
dcsapak Proxmox Staff Member Staff member Feb 1, 2016 10,216 1,498 273 36 Vienna Feb 25, 2019 #2 in the api call /cluster/resources you can look for 'template' it should be 1 on templates, 0 otherwise e.g. with pvesh Code: pvesh get /cluster/resources -type vm --output-format json | jq '.[] | select(.template == 1)'
in the api call /cluster/resources you can look for 'template' it should be 1 on templates, 0 otherwise e.g. with pvesh Code: pvesh get /cluster/resources -type vm --output-format json | jq '.[] | select(.template == 1)'
L luphi Renowned Member Nov 9, 2015 82 5 73 Feb 25, 2019 #3 Exactly what I was searching for. Thank you Dominik