Get vlans configured on MS350 Switches

Virgil_Wilson
Just browsing

Get vlans configured on MS350 Switches

I'm trying to run an API to get all my vlans I have in my organization.  I have the script working properly for network appliances however it doesn't include the switches.  What API call will give me the information of the vlans configured on the switch?  This is what I'm using for the MXs dashboard.appliance.getNetworkApplianceVlans(network_id)

1 Reply 1
djgrothe
Conversationalist

If you have some VLANs that are on a switch but not an MX, you should be able to find them by searching through switchports with dashboard.switch.getDeviceSwitchPorts(serial)

 

That should return access vlans as well as any trunk allowed vlans for each switchport.


For reference:
Get Device Switch Ports - Meraki Dashboard API v1 - Cisco Meraki Developer Hub

Get notified when there are additional replies to this discussion.