Normally I can do the call:
Seems like there are several areas you need VLANs enabled, even if they‘re not needed:
This API call lets you turn VLANs on and off.
https://dashboard.meraki.com/api_docs#enable/disable-vlans-for-the-given-network
I am in no way experienced in the Meraki API.
However, I've found this.
You can check if vlans are enabled by using this endpoint;
HTTP REQUEST
GET /networks/{networkId}/vlansEnabledState
If that returns true, then go ahead using your getvlans()-call
If false, you can maybe you can use
HTTP REQUEST
GET /networks/{networkId}/vlans/{vlanId}
and then return for vlan 1 or 0? I'm not sure if this would work...
What's returned if you call this?
HTTP REQUEST
GET /networks/{networkId}/appliancePorts
Thanks guys. I hit the easy button--enabled the VLANs and hoped that didn't break anything. It doesn't seem like it should break anything, but right after I did that our monitoring software stopped being able to ping the device. It was only after digging through the dashboard for a while that we figured out that the change broke the VPN mesh. I had to enable it for VLAN 1.