[pve-devel] way to get all vm configs?

Dietmar Maurer dietmar at proxmox.com
Thu Dec 5 10:33:16 CET 2013


> > Instead we can add a way to submit multiple API commands with one call -
> would that help?
> Yes that would. But right now i've no idea wherre to start.


Create a new API call /nodes/$node/execute

which takes a command list as argument:

{ commands => [
 { path => 'qemu/100/config', args => {} },
 { path => 'qemu/100/config', args => {} },
 { path => 'qemu/100/config', args => {} },
}

Note: To avoid proxy issues all commands are relative to /nodes/$node/

The result is the array of all results:

[ $result_of_first_command, $result_of_second_command, ..]

what do you think?



More information about the pve-devel mailing list