MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

Interface → Enable

AI-generated

Summary

Enables a MikroTik network interface.

Inputs

  • targetId (required) — ID or name of the interface to enable (e.g., *1, *2, ether1).
  • options — Additional options for the MikroTik API call. If omitted, defaults are used: connectionAttempts=5, connectionDelay=3, cleanKeys=false, tag=0.

Output shape

returns an object with fields resource, operation, count, and data. resource and operation are strings (always 'interface' and 'enable' respectively). count is the number of items in data. data contains the raw MikroTik API response; when cleanKeys is true, response keys have '-' and '/' replaced with '_'.

The node first attempts to connect to the MikroTik device using the configured credentials, retrying according to the connection attempts and delay options. On success it sends the command /interface/enable with the target interface ID/Name.

Examples

Example 1: Enable interface 'ether1'.

Set Target ID/Name to 'ether1'.

Links

Discussion