powerCycleSwitchPort(switch_mac, port_idx) {
    const payload = {mac: switch_mac.toLowerCase(),
      port_idx,
      cmd: 'power-cycle'
    };

    return this._request('/api/s/<SITE>/cmd/devmgr', payload);
  }
/**
   * Power-cycle the PoE output of a switch port - power_cycle_switch_port()
   *
   * return true on success
   * required parameter <switch_mac> = string; main MAC address of the switch
   * required parameter <port_idx>   = integer; port number/index of the port to be affected
   *
   * NOTES:
   * - only applies to switches and their PoE ports...
   * - port must be actually providing power
   */
Power-cycle the PoE output of a switch port - power_cycle_switch_port()
return true on success
required parameter  = string; main MAC address of the switch
required parameter    = integer; port number/index of the port to be affected

- only applies to switches and their PoE ports
- port must be actually providing power
Power - cycle the PoE output of a switch port - power_cycle_switch_port () return true on success required parameter = string ; main MAC address of the switch required parameter = integer ; port number / index of the port to be affected - only applies to switches and their PoE ports - port must be actually providing power
powerCycleSwitchPort(switch_mac, port_idx) {
    const payload = {mac: switch_mac.toLowerCase(),
      port_idx,
      cmd: 'power-cycle'
    };
    return this._request('/api/s/<SITE>/cmd/devmgr', payload);
  }
powerCycleSwitchPort ( switch_mac , port_idx ) { const payload = { mac : switch_mac . toLowerCase ( ) , port_idx , cmd : 'power-cycle' } ; return this . _request ( '/api/s/<SITE>/cmd/devmgr' , payload ) ; }
Power-cycle the PoE output of a switch port - power_cycle_switch_port()
 return true on success
 required parameter <switch_mac> = string; main MAC address of the switch
 required parameter <port_idx>   = integer; port number/index of the port to be affected
Power - cycle the PoE output of a switch port - power_cycle_switch_port () return true on success required parameter <switch_mac > = string ; main MAC address of the switch required parameter <port_idx > = integer ; port number / index of the port to be affected