Proxmox VE API not working

Gabriel Vieira

New Member
May 26, 2020
2
0
1
28
Hello, I'm trying to connect to the API using the following URL: https://localhost:8006/api2/json/access/ticket using the browser. And it only returns as follows:
data: null

Also I'm trying to use the curl command as following:
curl -k -d "username=root@pam&password=mypassword" https://localhost:8006/api2/json/access/ticket
and so it returns:
Captura de tela de 2020-05-26 12-32-27.pngCaptura de tela de 2020-05-26 12-32-38.png

Only workaround i've read on forums is someone telling that the credentials are wrong. But they aren't. Please help me!
Thanks for the attention.
 
The error message say that you sent a wrong parameter called 'd0M' (I hope that is not your private secret password).