]> git.proxmox.com Git - qemu-server.git/commitdiff
QGA exec: note limits explicit in CLI and API
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Mar 2020 16:56:21 +0000 (17:56 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Mar 2020 16:57:46 +0000 (17:57 +0100)
The http-server has a 64KB payload limit for post requests, so note
that explicit even if it's a theoretical maximum as the reamainig
params also need some space in the request

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu/Agent.pm
PVE/CLI/qm.pm

index 1981cad9d266c27220a9f7c283617a686cf8524c..9a51ef73e44eb9faa0bfc691ed84989af969a1f3 100644 (file)
@@ -280,6 +280,7 @@ __PACKAGE__->register_method({
            },
            'input-data' => {
                type => 'string',
+               maxLength => 64 * 1024,
                description => "Data to pass as 'input-data' to the guest. Usually treated as STDIN to 'command'.",
                optional => 1,
            },
index 94bfaf839eb81f85210e9ce5b60f4b3f3ef7eb4c..5e4f96f0cadce820bb02fde360b834ec51288e22 100755 (executable)
@@ -702,7 +702,7 @@ __PACKAGE__->register_method({
            },
            'pass-stdin' => {
                type => 'boolean',
-               description => "When set, read STDIN until EOF and forward to guest agent via 'input-data' (usually treated as STDIN to process launched by guest agent).",
+               description => "When set, read STDIN until EOF and forward to guest agent via 'input-data' (usually treated as STDIN to process launched by guest agent). Allows maximal 1 MiB.",
                optional => 1,
                default => 0,
            },