Getting started
Install
go install github.com/iolave/[email protected]
Environment variables
The following environment varaibles can be used to interact both with the cli and the golang pkg.
VARIABLE | DESCRIPTION | TOKEN | USR & PWD |
---|---|---|---|
PROXMOX_USERNAME | Proxmox VE linux user (i.e. "root@pam") | X | X |
PROXMOX_PASSWORD | Proxmox VE linux password | - | X |
PROXMOX_TOKEN_NAME | Proxmox VE generated token name | X | - |
PROXMOX_TOKEN | Proxmox VE generated token | X | - |
Golang package
First, import the pve package:
In order to create a new pve api you can either use environment variables or the built-in credentials constructors.
Connecting to a proxmox instance secured by Cloudflare
If you are exposing your pve instance through proxmox zero trust, you need to setup an application within cloudflare and generate a service token for that application.
Once you have your service token id and secret, add them your pve.Config
: