]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN/Zones/Content.pm
add permissions
[pve-network.git] / PVE / API2 / Network / SDN / Zones / Content.pm
index 18dcb4cb4013495979326c5f99e954cc84a125e7..f3912018e613c4d8c2e60ea865c542a7c0d07f67 100644 (file)
@@ -21,9 +21,9 @@ __PACKAGE__->register_method ({
     path => '',
     method => 'GET',
     description => "List zone content.",
-#    permissions => {
-#      check => ['perm', '/sdn/{sdn}', ['SDN.Audit'], any => 1],
-#    },
+    permissions => {
+       check => ['perm', '/sdn/zones/{zone}', ['SDN.Audit'], any => 1],
+    },
     protected => 1,
     proxyto => 'node',
     parameters => {
@@ -49,6 +49,11 @@ __PACKAGE__->register_method ({
                    type => 'string',
                    optional => 1,
                },
+               statusmsg => {
+                   description => "Status details",
+                   type => 'string',
+                   optional => 1,
+               },
            },
        },
        links => [ { rel => 'child', href => "{vnet}" } ],
@@ -70,6 +75,7 @@ __PACKAGE__->register_method ({
            if ($vnet_status->{$id}->{zone} eq $transportid) {
                my $item->{vnet} = $id;
                $item->{status} = $vnet_status->{$id}->{'status'};
+               $item->{status} = $vnet_status->{$id}->{'statusmsg'};
                push @$res,$item;
            }
         }