From a1a0423e90dbd6089f01084a76c2e0cae937088e Mon Sep 17 00:00:00 2001 From: matoy Date: Mon, 21 Jun 2021 14:24:27 +0200 Subject: [PATCH] Update api.pm (#2895) avoid 404 error when calling this mode --- network/cisco/meraki/cloudcontroller/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm b/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm index 0207707fc..32bbdeb6f 100644 --- a/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm +++ b/network/cisco/meraki/cloudcontroller/restapi/custom/api.pm @@ -394,7 +394,7 @@ sub get_networks_connection_stats { $timespan = 1 if ($timespan <= 0); return $self->request_api( - endpoint => '/networks/' . $options{network_id} . '/connectionStats?timespan=' . $options{timespan}, + endpoint => '/networks/' . $options{network_id}, hostname => $self->get_shard_hostname(network_id => $options{network_id}), ignore_codes => { 400 => 1 } );