From 031efdd0221e831fa8f7e6b9c2de89a37d520a8d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 29 May 2017 11:37:09 +0200 Subject: [PATCH] PVE::JSONSchema - add proxyto_callback property --- src/PVE/JSONSchema.pm | 5 +++++ 1 file changed, 5 insertions(+) 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.", -- 2.39.2