From: Dietmar Maurer Date: Mon, 29 May 2017 09:37:09 +0000 (+0200) Subject: PVE::JSONSchema - add proxyto_callback property X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=031efdd0221e831fa8f7e6b9c2de89a37d520a8d PVE::JSONSchema - add proxyto_callback property --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 921dbb5..4278f73 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -1153,6 +1153,11 @@ my $method_schema = { description => "A parameter name. If specified, all calls to this method are proxied to the host contained in that parameter.", optional => 1, }, + proxyto_callback => { + type => 'coderef', + description => "A function which is called to resolve the proxyto attribute. The default implementaion returns the value of the 'proxyto' parameter.", + optional => 1, + }, permissions => { type => 'object', description => "Required access permissions. By default only 'root' is allowed to access this method.",