Getting 'LAN Config' via API when VLANs are disabled

Solved
Charlotte
Here to help

Getting 'LAN Config' via API when VLANs are disabled

Hello,

 

Is there an API endpoint to get the 'LAN Config' when VLANs are disabled?

 

The /networks/{networkId}/vlans endpoint does not work as VLANs are not enabled and I cannot see another endpoint that can get these settings.

 

Charlotte_0-1580859923142.png

 

1 Accepted Solution
PhilipDAth
Kind of a big deal
Kind of a big deal

To add to @Nash 's work-around, no.

View solution in original post

2 Replies 2
Nash
Kind of a big deal

When I ran into this, I ended up taking every network w/ vlan disabled and just... enabling them, but not configuring additional vlans.

 

If you can iterate through a list and return Org Name -> Network Name -> https://developer.cisco.com/meraki/api/#/rest/api-endpoints/vlans/get-network-vlans-enabled-state it'll tell you who/what needs them enabled.

 

Then you can use https://developer.cisco.com/meraki/api/#/rest/api-endpoints/vlans/update-network-vlans-enabled-state to enable.

PhilipDAth
Kind of a big deal
Kind of a big deal

To add to @Nash 's work-around, no.

Get notified when there are additional replies to this discussion.