REST API: How to see what commands will run?

coolaj86

New Member
Apr 2, 2023
2
0
1
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/
 

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!