687 B
687 B
Proxmox API Authentication
Create an API Token on Proxmox
To create a new API Token for your user
in Proxmox, follow these steps:
- Open the Proxmox Web UI and navigate to the 'Datacenter' in the 'Server View' menu.
- Select 'API Token' in the 'Permissions' menu.
- Click on 'Add'.
- Select the
user
, and add a 'Token ID'. - (Optional) Disable
Privilege Separation
, and set anExpire
date. - Click on 'Add'.
Check the API Token
To test the API Token, you can use the following command:
curl -H "Authorization: PVEAPIToken=root@pam!monitoring=aaaaaaaaa-bbb-cccc-dddd-ef0123456789" https://your-proxmox-url:8006/api2/json/