API Zugriff für Spice

frantek

Renowned Member
May 30, 2009
170
7
83
Hallo,

ich versuche wie hier: https://forum.proxmox.com/threads/spice-timeout-cut-paste.144123/ beschrieben Spice-Session per API zu starten. Das gelingt mir aber nicht, da ich mutmasslich mit den Berechtigungen etwas falsch mache. Ich bin im Moment noch immer auf PVE 7.4-17.

Code:
https://${HOST}:${PORT}/api2/json/nodes/${NODE}/qemu

liefert mir eine leere Liste und versuche ich direkt auf

Code:
https://${HOST}:${PORT}/api2/spiceconfig/nodes/${NODENAME}/${VMTYPE}/${VMID}/spiceproxy

zuzugreifen bekomme ich einen 403. Die Permissions sind wie folgt eingestellt:

1712211550647.png

Die Rolle "Administrator" ist nur eine Verzweiflungstat. Angefangen habe ich mit den zwei Einträgen mit der Rolle Spice, die an sich reichen sollten. Die Rolle "Spice" hat VM.Audit and VM.Console. Bei den Einstellungen habe ich mich hiernach https://gitlab.com/pawlakm/pve-spice-connect gerichtet.

Was mache ich falsch?

TIA
Matthias
 

Attachments

  • 1712211624064.png
    1712211624064.png
    24.3 KB · Views: 1
Last edited:

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!