Mikrotik icon

Mikrotik

Consume Mikrotik API (v.0.1.4)

custom

AI-generated

Overview

This node interacts with the Mikrotik API, allowing users to perform custom operations on a Mikrotik device. It is useful for network administrators or automation engineers who want to automate tasks or retrieve data from Mikrotik routers by specifying custom commands and parameters.

Use Case Examples

  1. A user can specify the host of the Mikrotik device, choose to ignore SSL certificate issues if necessary, and define a custom operation name along with optional parameters to execute specific commands on the device.
  2. For example, a user might want to query the router for specific interface statistics or configure firewall rules by providing the appropriate custom operation and parameters.

Properties

Name Meaning
Host The hostname or IP address of the Mikrotik device to connect to.
Ignore SSL Issues Whether to download the response even if SSL certificate validation is not possible.
Operation Name The name of the custom operation to execute on the Mikrotik device.
Properties Optional parameters for the custom command, specified as name-value pairs.
Query Field names with values to filter the output of the command.
Proplist Specific properties to return from the command output.

Output

JSON

  • result - The response data returned from the Mikrotik device after executing the custom operation.

Dependencies

  • Mikrotik API credentials (API key or authentication token)

Troubleshooting

  • Ensure the 'Host' parameter is correctly set to the Mikrotik device's address to avoid connection errors.
  • If SSL issues occur, consider enabling 'Ignore SSL Issues' to bypass certificate validation, but be aware of security risks.
  • Verify that the custom operation name and parameters are valid and supported by the Mikrotik API to prevent command execution errors.
  • Common error messages may include connection timeouts, authentication failures, or invalid command errors; checking credentials and command syntax can resolve these.

Discussion