REST API: How to see what commands will run?

aj@root

Member
Apr 2, 2023
31
6
13
Provo, UT
therootcompany.com
Is there any sort of "Dry Run" option for the HTTP REST API that will allow us to see what commands will run?

Alternatively, which repository and module therein contains the code that translates API calls into commands? Or, transitively, (assuming the API may work at some meta-level) which repository and module layers translate between the API and the ultimate commands and config files?
 
Is there any sort of "Dry Run" option for the HTTP REST API that will allow us to see what commands will run?
There is no such thing, sadly.

Alternatively, which repository and module therein contains the code that translates API calls into commands? Or, transitively, (assuming the API may work at some meta-level) which repository and module layers translate between the API and the ultimate commands and config files?
There is no single repository which contains all API routes. The whole project is split into multiple repositories, each with different responsibilities.
For instance, the pve-ha-manager defines all API routes related to HA, pve-access-control everything related to user authentication, etc.

Is there anything specific that you are looking for? Maybe I can point you in the right direction :)

A list of all repositories can be found at https://git.proxmox.com/