MikroTik RouterOS icon

MikroTik RouterOS

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

Router → Test Connection

AI-generated

Summary

Test the connection to a specified MikroTik router through the middleware API.

Inputs

  • Router Name (required) — Router name as configured in middleware
  • Timeout — Request timeout in seconds (default is 30)

Output shape

a single JSON object indicating success status, router name, connection boolean, and message

Returns a JSON object with properties success (true), router_name (string), connected (boolean, true if connection is successful), and message ('Connection successful'). Errors are handled and returned if the connection fails.

Examples

Example 1: Check connectivity for the router named 'main-router' with default timeout

Set 'Router Name' to 'main-router' and optionally specify 'Timeout' in seconds. Execute operation to verify if the router is reachable via the middleware API.

Links

Discussion