On 11/21/19 3:43 PM, Fabian Grünbichler wrote: > 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, > + },
as requested by me and Dominik (IIRC) use something non-negative (heh), e.g., 'allowtoken' with default to true. > download => { > type => 'boolean', > description => "Method downloads the file content (filename is the > return value of the method).", > _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel