cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting 'LAN Config' via API when VLANs are disabled

SOLVED
Highlighted
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

Accepted Solutions
Highlighted
Kind of a big deal

Re: Getting 'LAN Config' via API when VLANs are disabled

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

View solution in original post

2 REPLIES 2
Highlighted
Kind of a big deal

Re: Getting 'LAN Config' via API when VLANs are disabled

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.

Highlighted
Kind of a big deal

Re: Getting 'LAN Config' via API when VLANs are disabled

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

View solution in original post

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.