Proxmox VE API not working

Gabriel Vieira

New Member
May 26, 2020
2
0
1
27
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).
 

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!