]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
API schema: add 'allowtoken' property
[pve-common.git] / src / PVE / JSONSchema.pm
index 51c3881f164d64be709cdf77ac0091f8501c5ed1..599dd099b0441a4bb8fd0d41406f55b928afb0d1 100644 (file)
@@ -1294,6 +1294,12 @@ my $method_schema = {
            description => "Method needs special privileges - only pvedaemon can execute it",
            optional => 1,
         },
+       allowtoken => {
+           type => 'boolean',
+           description => "Method is available for clients authenticated using an API token.",
+           optional => 1,
+           default => 1,
+       },
         download => {
             type => 'boolean',
            description => "Method downloads the file content (filename is the return value of the method).",