MikroTik RouterOS icon

MikroTik RouterOS

Complete MikroTik RouterOS automation - PPPoE, Hotspot, Queue, Interface, and Router management

Interface → Get Interfaces

AI-generated

Summary

Retrieve a list of network interfaces from a specified MikroTik router through the middleware API.

Inputs

  • Router Name (required) — The configured name of the router to query.
  • Limit — Optional maximum number of interface records to return; defaults to 100.
  • Timeout — Optional request timeout in seconds; defaults to 30 seconds.

Output shape

a list of interface objects

The output contains a JSON field 'interfaces' with an array of interface details from the router. The number of items is capped by the optional 'Limit' parameter. If an error occurs, the node outputs an error message or throws depending on failure mode settings.

Examples

Example 1: Get up to 50 interfaces from 'main-router' with a 20 second timeout.

Set 'Router Name' to 'main-router', 'Limit' to 50, and 'Timeout' to 20.

Links

Discussion