- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just one note, POST is to create a new VLAN, PUT is to update it.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think it's documented but you can try using the "vpnMode": "enabled" parameter.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is a pro tip right there!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
