cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5543
Views
7
Helpful
3
Replies

Cycle Port API

Nolan H.
Level 11
Level 11

Working on a script to disable POE on a switch port, then re-enable it 60 seconds later.

Just occurred to me this would be so much easier if there was an API to do the port cycle button

I don't see it, does anyone know if it exists anywhere hidden?

3 Replies 3

daviscot
Cisco Employee
Cisco Employee

Good idea @Nolan Herring but that's not there (or hidden) today, perhaps a good wish. For now, you would need to leverage the update-a-switch-port PUT command twice, with a sleep timer in between, to toggle the poeEnabled parameter off and on. https://api.meraki.com/api_docs#update-a-switch-port

Hey Dave, is this still the only way to be able to accomplish this task?

Andy Mikulas
Level 5
Level 5

Posting update as I was looking for this API call.

https://developer.cisco.com/meraki/api/cycle-device-switch-ports/