- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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" }
