Index
The pve api wrapper is an http server ment to be installed on the proxmox host server that wraps the proxmox api and adds missing features to it.
Note
pve-api-wrapper can definitely be installed somewhere else by pointing to the corresponding pve host & port, but some functionalities might not work.
Features
- Proper error responses on failed requests,
- custom endpoints (for a full list see the reference)
Installation
Latest release
The installation script installs the pve-api-wrapper binary into /usr/local/bin.
Inspect the installation script code here.
Build from source
# Download the source code
curl -L -o go-proxmox-latest.tar.gz https://github.com/iolave/go-proxmox/archive/refs/tags/latest.tar.gz
tar -xvzf go-proxmox-latest.tar.gz
# Build
cd go-proxmox-latest
# This step will create a folder `bin` with the pve-api-wrapper binaries.
make build
Usage
pve-api-wrapper [--version] [--pve-host PVE-HOST] [--pve-port PVE-PORT] [--host HOST] [--port PORT] [--crt CRT] [--key KEY]
Options
--versiondisplays the program version.--pve-hostproxmox virtual environment host (env:PVE_HOST, default:localhost).--pve-portproxmox virtual environment port (env:PVE_PORT, default:8006).--hostapi wrapper host (env:WRAPPER_HOST, default:localhost).--portapi wrapper port (env:WRAPPER_PORT, default:8443).--crtapi wrapper tls crt path (default:/etc/pve/local/pve-ssl.pem).--keyapi wrapper tls key path (default:/etc/pve/local/pve-ssl.key).
Commands
serviceAPI wrapper service tools.installinstalls the service.