REST API for ProxmoxAAS
Go to file
Arthur Lu 3e3ae6077b add some comments
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:36:22 +00:00
.gitignore add basic local db utility functions 2023-02-27 01:28:01 +00:00
db.js add resource check on resize 2023-02-28 23:24:49 +00:00
main.js add some comments 2023-02-28 23:36:22 +00:00
package.json rename index.js to main.js 2023-02-26 08:36:27 +00:00
proxmoxaas-api.service add start script and sample systemd service 2023-02-10 21:58:22 +00:00
pveutils.js rename getDiskByConfig to getDiskConfig 2023-02-28 23:33:00 +00:00
README.md update required api permissions 2023-02-28 02:42:36 +00:00
start.sh add start script and sample systemd service 2023-02-10 21:58:22 +00:00
vars.js.template use vars to specify cors domain 2023-02-28 22:04:30 +00:00

Configuring API Token and Permissions

  1. Add a new user proxmoxaas-api to proxmox
  2. Create a new API token for the user proxmoxaas-api and copy the secret key to a safe location
  3. Create a new role proxmoxaas-api with at least the following permissions:
  • VM.* except VM.Audit, VM.Backup, VM.Clone, VM.Console, VM.Monitor, VM.PowerMgmt, VM.Snapshot, VM.Snapshot.Rollback
  • Datastore.Allocate, Datastore.AllocateSpace, Datastore.Audit
  • User.Modify
  1. Add a new API Token Permission with path: /, select the API token created previously, and role: proxmoxaas-api
  2. Add a new User Permission with path: /, select the proxmoxaas-api user, and role: proxmoxaas-api