]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/API2/Firewall/Groups.pm
define standard option for security group names
[pve-firewall.git] / src / PVE / API2 / Firewall / Groups.pm
index a929236357c25201e85b5df5ab7eb6af32a2bf92..23b33efa9b93bdd7e71270b36c2b66234bb27820 100644 (file)
@@ -24,10 +24,7 @@ __PACKAGE__->register_method({
        items => {
            type => "object",
            properties => { 
-               name => {
-                   description => "Security group name.",
-                   type => 'string',
-               },
+               name => get_standard_option('pve-security-group-name'),
            },
        },
        links => [ { rel => 'child', href => "{name}" } ],
@@ -45,6 +42,7 @@ __PACKAGE__->register_method({
        return $res;
     }});
 
+
 __PACKAGE__->register_method ({
     subclass => "PVE::API2::Firewall::GroupRules",  
     path => '{group}',