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...
LinkedIn :::
https://blog.rhbirkelund.dk/Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution
🙂All code examples are provided as is. Responsibility for Code execution lies solely your own.