[pve-devel] r5522 - in pve-common/trunk/data: . PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Feb 15 10:54:34 CET 2011


Author: dietmar
Date: 2011-02-15 10:54:34 +0100 (Tue, 15 Feb 2011)
New Revision: 5522

Modified:
   pve-common/trunk/data/ChangeLog
   pve-common/trunk/data/PVE/JSONSchema.pm
Log:
* PVE/JSONSchema.pm: add permissions property (path,
	privs). Allows use to specify required access permissions.




Modified: pve-common/trunk/data/ChangeLog
===================================================================
--- pve-common/trunk/data/ChangeLog	2011-02-15 09:37:38 UTC (rev 5521)
+++ pve-common/trunk/data/ChangeLog	2011-02-15 09:54:34 UTC (rev 5522)
@@ -1,3 +1,8 @@
+2011-02-15  Proxmox Support Team  <support at proxmox.com>
+
+	* PVE/JSONSchema.pm: add permissions property (path,
+	privs). Allows use to specify required access permissions.
+
 2011-02-14  Proxmox Support Team  <support at proxmox.com>
 
 	* PVE/ProcFSTools.pm: impl. new helpers read_loadavg(),

Modified: pve-common/trunk/data/PVE/JSONSchema.pm
===================================================================
--- pve-common/trunk/data/PVE/JSONSchema.pm	2011-02-15 09:37:38 UTC (rev 5521)
+++ pve-common/trunk/data/PVE/JSONSchema.pm	2011-02-15 09:54:34 UTC (rev 5522)
@@ -674,6 +674,16 @@
 	    description => "A parameter name. If specified, all calls to this method are proxied to the host contained in that parameter.",
 	    optional => 1,
 	},
+        permissions => {
+	    type => 'object',
+	    description => "Required access permissions. By default only 'root' is allowed to access this method.",
+	    optional => 1,
+	    additionalProperties => 0,
+	    properties => {
+                path => { type => 'string' },
+                privs => { type => 'string' },
+            },
+        },
         match_name => {
 	    description => "Used internally",
 	    optional => 1,




More information about the pve-devel mailing list