to mark API methods which should not be available to clients authenticated 
using an API token

Signed-off-by: Fabian Grünbichler <f.gruenbich...@proxmox.com>
---

Notes:
    if applied, any users of this need corresponding versioned depends.

 src/PVE/JSONSchema.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index 51c3881..ef0f1c9 100644
--- a/src/PVE/JSONSchema.pm
+++ b/src/PVE/JSONSchema.pm
@@ -1294,6 +1294,11 @@ my $method_schema = {
            description => "Method needs special privileges - only pvedaemon 
can execute it",
            optional => 1,
         },
+       notoken => {
+           type => 'boolean',
+           description => "Method is not available for clients authenticated 
using an API token.",
+           optional => 1,
+       },
         download => {
             type => 'boolean',
            description => "Method downloads the file content (filename is the 
return value of the method).",
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to