MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

DHCP Server → Disable

AI-generated

Summary

Disables a DHCP server on the MikroTik device using its ID or name.

Inputs

  • targetId (required) — ID or Name of the DHCP server to disable (e.g., *1, *2, or ether1, user1).
  • connectionAttempts — Number of times to try connecting to the device. Default: 5.
  • connectionDelay — Delay between connection attempts in seconds. Default: 3.
  • cleanKeys — Replace - and / with _ in response keys. Default: false.
  • tag — Custom tag for the command. Default: 0.

Output shape

{ resource, operation, count, data } from the API response, with keys optionally cleaned per the cleanKeys setting.

The operation sends /ip/dhcp-server/disable .id={targetId} to the MikroTik RouterOS API.

Links

Discussion