]> git.proxmox.com Git - pve-common.git/commitdiff
PVE::JSONSchema - add proxyto_callback property
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 29 May 2017 09:37:09 +0000 (11:37 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 31 May 2017 05:25:52 +0000 (07:25 +0200)
src/PVE/JSONSchema.pm

index 921dbb5000d2fb8c6bbc35d8621268dfbd66dddf..4278f7356d504914f04c6710c51df1f147eb511e 100644 (file)
@@ -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,
        },
            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.",
         permissions => {
            type => 'object',
            description => "Required access permissions. By default only 'root' is allowed to access this method.",