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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-03-06 17:56:21 +01:00
parent d8f61794f6
commit 109a095068
2 changed files with 2 additions and 1 deletions

View File

@ -280,6 +280,7 @@ __PACKAGE__->register_method({
}, },
'input-data' => { 'input-data' => {
type => 'string', type => 'string',
maxLength => 64 * 1024,
description => "Data to pass as 'input-data' to the guest. Usually treated as STDIN to 'command'.", description => "Data to pass as 'input-data' to the guest. Usually treated as STDIN to 'command'.",
optional => 1, optional => 1,
}, },

View File

@ -702,7 +702,7 @@ __PACKAGE__->register_method({
}, },
'pass-stdin' => { 'pass-stdin' => {
type => 'boolean', 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, optional => 1,
default => 0, default => 0,
}, },