API to create a Vlan in a combined network

Solved
VinoyMohan
Getting noticed

API to create a Vlan in a combined network

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
ww
Kind of a big deal
Kind of a big deal

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

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

View solution in original post

2 Replies 2
ww
Kind of a big deal
Kind of a big deal

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

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

VinoyMohan
Getting noticed

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

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.