]> git.proxmox.com Git - qemu-server.git/commit
api: allow listing custom and default CPU models
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 4 May 2020 10:58:39 +0000 (12:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 14:48:08 +0000 (16:48 +0200)
commita73cc99391d2dfaa34d35fc82e81fec715a24c33
tree40e0027693030bb6eb7706c3f2d951f2928c5348
parent6e72f90bbbb43439ced0d988377b5c7e346fbed0
api: allow listing custom and default CPU models

More API calls will follow for this path, for now add the 'index' call to
list all custom and default CPU models.

Any user can list the default CPU models, as these are public anyway, but
custom models are restricted to users with Sys.Audit on /nodes.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/API2/Qemu/CPU.pm [new file with mode: 0644]
PVE/API2/Qemu/Makefile
PVE/QemuServer/CPUConfig.pm