cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2348
Views
3
Helpful
2
Replies

API to create a Vlan in a combined network

VinoyMohan
Level 1
Level 1

I have an API to create Vlans in a network with type as Appliance, but the same API doesn't work if the network type is Combined. Is there a solution for this?

I am using the below API and the error i am getting is "{\"errors\":[\"This endpoint only supports MX networks\"]}

https://api.meraki.com/api/v1/networks/"Network_Id"/appliance/vlans

Body:

{
"applianceIp": "x.x.x.x",
"id": "1234",
"name": "TestVlan",
"netid": "net_id",
"netname": "abc",
"subnet": "x.x.x.x/28"
}

Thanks in advance.

1 Accepted Solution

Accepted Solutions

ww^
Meraki Community All-Star
Meraki Community All-Star
2 Replies 2

ww^
Meraki Community All-Star
Meraki Community All-Star

This one works. Are you using the combined network id?. L_123456....

https://developer.cisco.com/meraki/api-latest/#!create-network-appliance-vlan

Thanks for pointing out the error in the network id. That was the issue, a silly mistake. 🙂