X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FPVE%2FAPI2%2FFirewall%2FGroups.pm;h=23b33efa9b93bdd7e71270b36c2b66234bb27820;hp=a929236357c25201e85b5df5ab7eb6af32a2bf92;hb=387d0ffce61dcd0264b01165ccb4e4e197af7d76;hpb=e74a87f5ce727e5e3e87869d6bd5f578eaef6a29 diff --git a/src/PVE/API2/Firewall/Groups.pm b/src/PVE/API2/Firewall/Groups.pm index a929236..23b33ef 100644 --- a/src/PVE/API2/Firewall/Groups.pm +++ b/src/PVE/API2/Firewall/Groups.pm @@ -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}',