[SOLVED] Spiceproxy via API

ermanishchawla

Well-Known Member
Mar 23, 2020
332
37
48
38
I have create an API Token and wanted to access the spice-config through an API

curl -f -s -S -k --header 'Authorization: PVEAPIToken=manish@pve!monitoring=b9b0c035-3fe2-46e9-9374-299854b44b12' "https://inc1pve53:8006/api2/spiceconfig/nodes/inc1pve53/qemu/111/spiceproxy"

when I do this

curl: (22) The requested URL returned error: 501 Method 'GET /nodes/inc1pve53/qemu/111/spiceproxy' not implemented




It is that spiceproxy is not implemented in API. I want to get the spiceproxy configuration through API so that i use that to pass the output in file and then file to remote-viewer <spiceproxyfile> for accessing the VM
 
Last edited: