cancel
Showing results for 
Search instead for 
Did you mean: 

API call to move AP to another Vlan

SOLVED
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

Accepted Solutions
Here to help

Re: API call to move AP to another Vlan

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

6 REPLIES 6
Kind of a big deal

Re: API call to move AP to another Vlan

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
Here to help

Re: API call to move AP to another Vlan

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

Kind of a big deal

Re: API call to move AP to another Vlan

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
Here to help

Re: API call to move AP to another Vlan

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

Re: API call to move AP to another Vlan

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
Highlighted
Here to help

Re: API call to move AP to another Vlan

Thanks Nolan
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.
Points Contest
Join us for a month-long contest with heaps of swag to win!

Learn More ›