apply Access Policy on ports - API or SDK

AhmedJawad
Getting noticed

apply Access Policy on ports - API or SDK

Hi 

 

 is there is api or SDK to apply access policy? 

 

I see this API "{{baseUrl}}/devices/:serial/switchPorts/:number" , it has the access policy in its json body but how to pass that ass parameter, please. 

1 Reply 1
PhilipDAth
Kind of a big deal
Kind of a big deal

You'll see that API supports both GET (to retrieve values) and PUT to set values.

https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports 

 

If it was me, I would probably retrieve the current settings, change the access policy, and then push all the settings back.  You could also try pushing just the access policy but make sure all the other settings remain unchanged.

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.
Labels