Hello dear Proxmox community.
I am having weird problems with the API.
I am trying to get information about disks and storages but i am failing.
Those calls fail, return a json with a empty data property:
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/disks/list
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes/proxmox01/storage
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes/proxmox01/disks/list
But these calls succeds:
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes/proxmox01/cpu
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes
The API Token is assigned to the root user so rights cannot be an issue ( or shouldnt be).
The calls over pvesh via SSH and the root user are working.
I dont understand the problem with the API calls. I would understand all failing, but why does cpu works, but disks/list not. It doesnt make sense to me.
Is there some known api bug?
Thank you in advance for your response.
I am having weird problems with the API.
I am trying to get information about disks and storages but i am failing.
Those calls fail, return a json with a empty data property:
https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/disks/list
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes/proxmox01/storage
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes/proxmox01/disks/list
But these calls succeds:
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes/proxmox01/cpu
curl --insecure -H "Authorization: PVEAPIToken=root@xyt!monitoring=guid" https://10.0.2.100:8006/api2/json//nodes
The API Token is assigned to the root user so rights cannot be an issue ( or shouldnt be).
The calls over pvesh via SSH and the root user are working.
I dont understand the problem with the API calls. I would understand all failing, but why does cpu works, but disks/list not. It doesnt make sense to me.
Is there some known api bug?
Thank you in advance for your response.