Actions14
- PPPoE Actions
- Hotspot Actions
- Queue/Bandwidth Actions
- Interface Actions
- Router Actions
Router → Test Connection
AI-generatedSummary
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), andmessage('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.