Connect to PVE using API token

Saed Elhelo

New Member
Feb 6, 2025
2
0
1
Hi ,

I'm new to proxmox , and I'm trying to connect to a cluster using the API token.

I installed the module https://github.com/Corsinvest/cv4pve-api-powershell, and when trying to connect using the below command:
Connect-pvecluster -HostsAndPorts {clusterIP} -skipCertificateCheck -ApiToken {apitoken}

I got no ticket generated.

The token have full access . and the Apitoken syntax is like the below:
PVEAPITOKEN = user@realm!tokeinID=UUID

where can i got the Token UUID ? any one can help with the list of commands in order to connect to the cluster using API token via powershell ?
 
Thank you @bbgeek17 for your quick response , can you please refer me to the UUID location in the UI ?

Also, when using the command Connect-pvecluster -HostsAndPorts {clusterIP} -skipCertificateCheck -ApiToken {apitoken} , I got an empty ticket filed in the response. any ideas how to solve it ?
 
can you please refer me to the UUID location in the UI
You can find token names and the user they belong to under : Datacenter>Permissions>API Tokens.
When you create a token via UI you are presented with a message: Please record the API token secret - it will only be displayed now

It works the same way with any other method. If you did not save the "secret" - its gone. You need to create a new one.
I got an empty ticket filed in the response. any ideas how to solve it ?
Since you don't have the Secret/UUID - you will not get a ticket, as you are not authenticated.

Please review the video I referenced earlier, it provides steps. There are many others as well.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox