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 => {
type => 'string',
optional => 1,
},
+ statusmsg => {
+ description => "Status details",
+ type => 'string',
+ optional => 1,
+ },
},
},
links => [ { rel => 'child', href => "{vnet}" } ],
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;
}
}