REST API for ProxmoxAAS
Go to file
Arthur Lu 3afb302a16 remove extra comment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 03:44:42 +00:00
.gitignore add basic local db utility functions 2023-02-27 01:28:01 +00:00
db.js almost finish implementing resource check 2023-03-01 00:50:24 +00:00
main.js remove extra comment 2023-03-01 03:44:42 +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 implement disk deallocation in delete instance, 2023-03-01 01:14:03 +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