Hopeful someone can help for debugging...
PVE version 8.2.7 Cluster with 6 nodes
I try to implement a spice access for VM-ID 111 with API-token. Based on this script:
https://gitlab.com/pawlakm/pve-spice-connect/-/tree/main?ref_type=heads
The spice access by webGUI to the VM works-
I created a User/Group/Role and a API Token....
Then I set the Permission to the vms
So I try to read the informations by curl....
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1' | jq
... I got HTTP/1.1 200 OK and a data array...then I try
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1/vms'
... I got ... HTTP/1.1 501 Method 'GET /nodes/pve-i5-12th-1/vms' not implemented...then I try
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1/qemu'
... I got HTTP/1.1 200 OK and an empty data array...then I try
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1/qemu/111'
... I got HTTP/1.1 200 OK and a data array
I'm not able to find the cause, why I'm not able to get an array of the VMs with this token?
Is there any log at PVE where I can get more information of the API permissions,requests and problems?
Regards 'https://<PVE-IP>:8006/pve-docs/api-viewer/index.html#/nodes/{node}/qemu' VM.Audit should be enough...
PVE version 8.2.7 Cluster with 6 nodes
I try to implement a spice access for VM-ID 111 with API-token. Based on this script:
https://gitlab.com/pawlakm/pve-spice-connect/-/tree/main?ref_type=heads
The spice access by webGUI to the VM works-
I created a User/Group/Role and a API Token....
Then I set the Permission to the vms
So I try to read the informations by curl....
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1' | jq
... I got HTTP/1.1 200 OK and a data array...then I try
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1/vms'
... I got ... HTTP/1.1 501 Method 'GET /nodes/pve-i5-12th-1/vms' not implemented...then I try
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1/qemu'
... I got HTTP/1.1 200 OK and an empty data array...then I try
curl -k -H 'Authorization: PVEAPIToken=SpiceUser@pve!SpiceUserAPIToken=<SECRET>' --url 'https://<PVE-IP>:8006/api2/json/nodes/pve-i5-12th-1/qemu/111'
... I got HTTP/1.1 200 OK and a data array
I'm not able to find the cause, why I'm not able to get an array of the VMs with this token?
Is there any log at PVE where I can get more information of the API permissions,requests and problems?
Regards 'https://<PVE-IP>:8006/pve-docs/api-viewer/index.html#/nodes/{node}/qemu' VM.Audit should be enough...