]> git.proxmox.com Git - pmg-api.git/blobdiff - PMG/Utils.pm
user white/blacklist: allow multiple entries for adding/deleting
[pmg-api.git] / PMG / Utils.pm
index 60fdc5e5d353933e7943c0bc72eec36929ec0595..6847054a51c7d6331223cc2da6632c9545705b2a 100644 (file)
@@ -113,6 +113,13 @@ PVE::JSONSchema::register_standard_option('pmg-email-address', {
     minLength => 3,
 });
 
+PVE::JSONSchema::register_standard_option('pmg-whiteblacklist-entry-list', {
+    description => "White/Blacklist entry list (allow most characters). Can contain globs",
+    type => 'string',
+    pattern => '(?:[^\s\/\\\;\,]+)(?:\,[^\s\/\\\;\,]+)*',
+    minLength => 3,
+});
+
 sub lastid {
     my ($dbh, $seq) = @_;