Cisco Meraki Dashboard API Vlan VPN Mode

Marakta
New here

Cisco Meraki Dashboard API Vlan VPN Mode

Hi all, 

 

Long term Network administrator first time posting on the forums. I have a question about the addition of VLANS when working with the Meraki Dashboard API. When adding/modifying vlans I'm unsure after a good amount of time searching/ trial & error on what Put / Post to use and what info on the body of the JSON to include to make sure the vlans "VPN Mode" is Enabled. Any help would be appreciated.

6 Replies 6
alemabrahao
Kind of a big deal

Hi,

To update a VLAN, you can use the PUT /networks/{networkId}/appliance/vlans/{vlanId} endpoint.

 

Update Network Appliance Vlan - Meraki Dashboard API v1 - Cisco Meraki Developer Hub

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
alemabrahao
Kind of a big deal

Just one note, POST is to create a new VLAN, PUT is to update it.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Marakta
New here

I think what i'm asking is in the body of the JSON, with all of the configurable items, I'm not seeing anything in the documentation to change the setting "VPN Mode" to be enabled. I've tried certain commands with no luck.

alemabrahao
Kind of a big deal

I don't think it's documented but you can try using the "vpnMode": "enabled" parameter.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
PhilipDAth
Kind of a big deal
Kind of a big deal

That is a pro tip right there!

Mloraditch
Kind of a big deal

This is the API to actually enable VPN: https://developer.cisco.com/meraki/api-v1/update-network-appliance-vpn-site-to-site-vpn/
You can use the get to see active subnets: https://developer.cisco.com/meraki/api-v1/get-network-appliance-vpn-site-to-site-vpn/

 

If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.
Get notified when there are additional replies to this discussion.