Dear,
Again a few problems with the API. I am unable to send shell commands to the proxmox host via the API.
i.e.
$aCommands = array
(
'pct exec ' . $iVMID . ' -- ls -al /'
);
var_dump ( $pApi->post ( '/nodes/' . $sNodeName . '/execute', array ( 'commands' => json_encode ( $aCommands ) ) )...