Hello! I need get new ticket use old ticket only, not password.
i use API for monitoring qm.
auth in API:
Tickets have a limited lifetime of 2 hours.
Can you say me how to get new ticket?
I readed in wiki - http://pve.proxmox.com/wiki/Proxmox_VE_API
i tried:
and
But it didnt work!
Please help me!
i use API for monitoring qm.
auth in API:
Code:
curl -k --data "username=root&password=toor&realm=pam" https://localhost:8006/api2/extjs/access/ticket
Tickets have a limited lifetime of 2 hours.
Can you say me how to get new ticket?
I readed in wiki - http://pve.proxmox.com/wiki/Proxmox_VE_API
NOTE: Tickets have a limited lifetime of 2 hours. But you can simple get a new ticket by passing the old ticket as password to the /access/ticket method.
i tried:
Code:
curl -s -k -b "PVEAuthCookie=PVE:root@pam:5.....+Xtdd+qS3iCkQ==" https://localhost:8006/api2/extjs/access/ticket
and
Code:
curl -s -k -d "username=root&password=PVE:root@pam:5.....+Xtdd+qS3iCkQ==&realm=pam" https://localhost:8006/api2/extjs/access/ticket
But it didnt work!
Please help me!
Last edited: