]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
JSONSchema.pm - add a 'download' attribute
[pve-common.git] / src / PVE / JSONSchema.pm
index 329559948c6f3c4019121f425869494ea852c0b9..9c261841f4043203728d9d4a4035115b61d7ee01 100644 (file)
@@ -1154,6 +1154,11 @@ my $method_schema = {
            description => "Method needs special privileges - only pvedaemon can execute it",            
            optional => 1,
         },
+        download => {
+            type => 'boolean',
+           description => "Method downloads the file content (filename is the return value of the method).",
+           optional => 1,
+        },
        proxyto => {
            type =>  'string',
            description => "A parameter name. If specified, all calls to this method are proxied to the host contained in that parameter.",