I'm trying to use get_network_traffic_shaping, however whenever I call the function I'm getting a "HTTP response not OK."
#! /usr/bin/env python3
from meraki_sdk.meraki_sdk_client import MerakiSdkClient
from meraki_sdk.exceptions.api_exception import APIException
def init():
x_cisco_meraki_api_key = 'REDACTED'
meraki = MerakiSdkClient(x_cisco_meraki_api_key)
return meraki
def trafficShaping(meraki, network_id):
traffic_shaping_controller = meraki.traffic_shaping
try:
result = traffic_shaping_controller.get_network_traffic_shaping(network_id)
return result
except APIException as e:
print(e)
if __name__ == '__main__':
try:
meraki = init()
test_shaping = trafficShaping(meraki, 'NETWORK_ID')
print(test_shaping)
except KeyboardInterrupt:
print('Program terminated.')