Get CPU model name using REST API

rjzcom

New Member
Mar 13, 2020
4
0
1
51
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!