API and Spice

eglyn

Member
Aug 26, 2021
26
2
8
44
Hi everyone,

I want to access spice console through the API.
I have a test user which have PVEVMUser permission on a test VM.
This VM has Spice activate, and when I open Proxmox webconsole with this user, I can launch Spice console, it downloads a vv file that I can open.

But, when I go into the API to URL /api2/json/nodes/nodename/qemu/102/spiceproxy, I have a null value...

I looked for documentation, and I found only this api url to access to the spice console.
And when I use this API url, I have an http 501 error :(

So, what I am doing bad ?

My purpose is to make a php website for users to access to their VM with Spice, without using proxmox webconsole directly.

Thx !
 

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!