API call to move AP to another Vlan

Solved
cirizan
Here to help

API call to move AP to another Vlan

Hi,

How would I move multiple Access Points, to a different Vlan for management purpose, using API calls ?

1 Accepted Solution
cirizan
Here to help

Well, this is to change the native Vlan on the switch port. Thanks.

View solution in original post

6 Replies 6
NolanHerring
Kind of a big deal

You are going to want to update the switch port VLAN basically:


{{baseUrl}}/devices/{{serial}}/switchPorts/{{portNum}}

{
"name": "test from Postman",
"tags": "API",
"enabled": true,
"poeEnabled": true,
"type": "trunk",
"vlan": 1,
"voiceVlan": null,
"allowedVlans": "all",
"isolationEnabled": false,
"rstpEnabled": true,
"stpGuard": "disabled",
"accessPolicyNumber": null
}
Nolan Herring | nolanwifi.com
TwitterLinkedIn
cirizan
Here to help

Well, this is to change the native Vlan on the switch port. Thanks.

NolanHerring
Kind of a big deal

Do you mean when you go to Switch>Switch Settings>VLAN Configuration>Management VLAN ?

Not sure if there is an API to change that, or at least I don't see one.
Nolan Herring | nolanwifi.com
TwitterLinkedIn
cirizan
Here to help

I meant changing the management vlan from the AP settings itself. Me as well, don't see any APIs to change that. So, your solution is the best at the moment.
NolanHerring
Kind of a big deal

So the VLAN the trunk port is configured for will basically be the 'management' VLAN in the sense that the AP will grab an IP from that VLAN.

This below requires 26.x code. Have to contact support to have it enabled.

No API method for this that I know of.

https://documentation.meraki.com/MR/Other_Topics/Alternate_Management_Interface_on_MR_Devices
Nolan Herring | nolanwifi.com
TwitterLinkedIn
cirizan
Here to help

Thanks Nolan
Get notified when there are additional replies to this discussion.