Understanding API Tokens

plastilin

Renowned Member
Oct 9, 2012
99
5
73
Ukraine
I ask for help in understanding how to correctly create and use the API Token. I first create a user and then create a token for that user. A token ID and secret is generated for me. I'm interested in what UUID is in USER @ REALM format! TOKENID = UUID
 
Hey,

basically, the first part (before the !) identifies the user, the seconds part contains the tokenid(name you gave the token) and the tokensecret(or UUID).
The whole thing could look like this:
root@pam!<some_token_id>=e7927fd3-c134-4750-a9c8-a17cf5d508e7
 
What do you mean here, it's saying already the correct thing? The secret is actually a valid UUID and username is the front before the @realm part, so USER@REALM part. If you define that differently in whatever tooling you use like postman (?) here you naturally need to enter whatever you configured.. For example, if I configure the user@realm!tokenid as authid variable then I need to use that as variable, so not sure what this post is implying?
 
Last edited:

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!