Admin API docs

Craig St George

Well-Known Member
Jul 31, 2018
114
14
58
62
Hi i m looking at creating datastores or users through the API but I cant find the API docs anywhere for some reason
I can find docs for the backup protocol but not the admin side

if there is no docs i guess I can use the proxmox-backup-manager and look at what it does

Thanks
 
Hi!

An API viewer tool like we have for PVE or PMG is not yet available for Proxmox Backup Server, but is in planning - I'm missing it sometimes too, to be honest :)

The main reason is for the completely new rust based backend we developed for PBS, that was quite some work so some details like this was postponed. But the API is programmed quite schematically, so you may get most information from the code without too much rust experience. For example, here is the main api index:
https://git.proxmox.com/?p=proxmox-...3df63e1e1e983f81f4986ee3557c63ca084db;hb=HEAD

Here the api interface for datastore config:
https://git.proxmox.com/?p=proxmox-...dc17657e1d49ed212e1b4beb745d53c2b78a5;hb=HEAD

The API router definitions are normally at the bottom of those files, and all is split nicely into files according to path. Not as convenient as the API viewer tool, but may be enough until that one is available.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!