Get CPU model name using REST API

rjzcom

New Member
Mar 13, 2020
4
0
1
53
I use Proxmox REST API to get info about hypervisors. I am able to iterate [nodes|storages|qemu] and get basic info about every item. Like this is path for storages: $path = "/nodes/$nodeId/storage"; But I can't find the exact CPU model name like 24 x Intel(R) Xeon(R) CPU E5-2620. Can somebody show me the path where I can find the CPU model name?
 
I don't think I ever saw this in the API and I cannot think of a use case. What is yours?

Normally, all cluster nodes should have the same CPU architecture to reduce risks and even reduce problems for live migration and that the case for every PVE cluster I ever saw with one exception.
 
I just want to display overview info about a machine. How many RAM, what CPU, how many cores etc..
 
yes it is available (otherwise the gui could not show it)

/nodes/NODENAME/status

gives a property: 'cpuinfo' which contains a property 'model' and 'cpus'
also some other information