[pve-devel] [RFC 1/23] API schema: add 'notoken' property
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Oct 17 15:13:55 CEST 2019
to mark API methods which should not be available to clients authenticated using an API token
Signed-off-by: Fabian Grünbichler <f.gruenbichler at 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 db38d44..a42d814 100644
--- a/src/PVE/JSONSchema.pm
+++ b/src/PVE/JSONSchema.pm
@@ -1263,6 +1263,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
More information about the pve-devel
mailing list