From 109a095068ae309d4ae037edab58dd317ca2f924 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 6 Mar 2020 17:56:21 +0100 Subject: [PATCH] QGA exec: note limits explicit in CLI and API 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 --- PVE/API2/Qemu/Agent.pm | 1 + PVE/CLI/qm.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Qemu/Agent.pm b/PVE/API2/Qemu/Agent.pm index 1981cad9..9a51ef73 100644 --- a/PVE/API2/Qemu/Agent.pm +++ b/PVE/API2/Qemu/Agent.pm @@ -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, }, diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index 94bfaf83..5e4f96f0 100755 --- a/PVE/CLI/qm.pm +++ b/PVE/CLI/qm.pm @@ -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, },