I'm running into an issue with the staticRoutes API call. The route is added, but the "Active" field is left blank and I have not found a way to set it.
If you open the static route in the dashboard, it shows Active as "always", but clicking save does nothing. You have to select another option like "While next hop responds to ping", Update, go back and change to "always", then you can Save it out.
I have not tested to see if the route is working correctly since it would appear it's defaulting to the "always" under the hood. But this is still disconcerting to see in the dashboard.
curl -L -H 'X-Cisco-Meraki-API-Key: <key>' -H 'Content-Type: application/json' -X POST --data-binary '{"name":"VOIP","subnet":"192.168.10.0/24","gatewayIp":"10.15.5.1"}' 'https://dashboard.meraki.com/api/v0/networks/N_123456789/staticRoutes'
https://dashboard.meraki.com/api_docs#add-a-static-route
Any thoughts?
Thanks,
Randy