use api config ip demo
just this.
tks. and you check my code
$response = Nodes::setQemuConfig($node, $vmid, [
'ipconfig0' => "gw=192.168.1.1,ip=192.168.1.100/24",
]);
$response = Request::Request("/nodes/$node/qemu/$vmid/agent/exec",[
'command' =>...