Hi ww, Thank you for the reply, I might be misunderstanding. The GET call functions fine and I can retrieve the VPN configuration and the subnets being advertised. When I try the update call I get the same error as above. I have been using the python sdk originally but here is a test snippet for what I'm doing: api_key = "apikey"
test_vmx = "vmx_network_id"
def manual():
import requests
url = f"https://api.meraki.cn/api/v1/networks/{test_vmx}/appliance/vpn/siteToSiteVpn"
payload = json.dumps({
"mode": "hub",
"hubs": [],
"subnets": [
{
"localSubnet": "192.168.1.0/24",
"useVpn": True
},
{
"localSubnet": "192.168.128.0/24",
"useVpn": True
}
]
})
headers = {"X-Cisco-Meraki-API-Key":api_key, "Content-Type":"application/json", "Accept":"application/json"}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
manual() The above prints: {"errors":["Unrecognized subnet 192.168.1.0/24 for Passthrough MX - only Client VPN subnet(s) permitted"]} The expected behavior would be to replace any existing advertised local networks and replace them with the two 192.x networks. A separate discussion: it would be nice to be able to also include the name in this call. But I can live without that for now. Thanks, Chris
... View more