Port State or POE control through API

Solved
Justfixit
Here to help

Port State or POE control through API

Has anyone ever come across this implementation:


Remote network (Western Pacific) with a CCTV system.  Security team wants to be able to disable certain clients (POE CCTV cameras) by using a physical switch that will toggle state or POE on certain ports for privacy.

 

They had been using a switch that ran to a web PDU and turned off power to the CCTV DVR device.  Very messy.

 

Is there a way, through API or other method, to simply disable port(s) without logging into dashboard?

1 Accepted Solution
Bruce
Kind of a big deal

Yep, you should be able to do that through the Dashboard API with the Update Device Switch Port, https://developer.cisco.com/meraki/api-v1/#!update-device-switch-port.

View solution in original post

3 Replies 3
Bruce
Kind of a big deal

Yep, you should be able to do that through the Dashboard API with the Update Device Switch Port, https://developer.cisco.com/meraki/api-v1/#!update-device-switch-port.

Justfixit
Here to help

Going a step further, this particular solution requires port status changes on certain ports when a burglar alarm is armed.  Is anyone using a 3rd party, simple control system to integrate and automate such a process?

Greenberet
Head in the Cloud

Hello,

 

as bruce said its possible via the dashboard api.

 

Don't worry about the other parameters. It's enough to specify the fields you want to change. I've done something similiar with an automation and device tracking (turn on the phone (swithport), when I'm home and turn it off as soon as I leave)

 

 

 

path:
devices/{serial}/switch/ports/{portId}
payload:
{"enabled": "true" }

 

 

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