Hello
I have noticed that in Proxmox 8, the <command> parameter for the API call POST /api2/json/nodes/{node}/qemu/{vmid}/agent/exec has been changed from <string> to <array> in the format: [string, ...]
Does anyone have a working example with the new format?
I have tried to send it as array, but the format doesn't seem to be recognized by the API:
On the old format "command arg1 arg2", I'm just receiving null.
Thank you
I have noticed that in Proxmox 8, the <command> parameter for the API call POST /api2/json/nodes/{node}/qemu/{vmid}/agent/exec has been changed from <string> to <array> in the format: [string, ...]
Does anyone have a working example with the new format?
I have tried to send it as array, but the format doesn't seem to be recognized by the API:
PHP:
array(2) {
["data"]=>
NULL
["errors"]=>
array(3) {
["command[0]"]=>
string(85) "property is not defined in schema and the schema does not allow additional properties"
["command[1]"]=>
string(85) "property is not defined in schema and the schema does not allow additional properties"
["command"]=>
string(42) "property is missing and it is not optional"
}
}
On the old format "command arg1 arg2", I'm just receiving null.
Thank you
Last edited: