Mikrotik icon

Mikrotik

Consume Mikrotik API (v.0.1.4)

Overview

This node integrates with the Mikrotik API, allowing users to perform various operations on Mikrotik devices. Specifically, the "remove" operation under the "Default" resource enables deleting an entity identified by an ID or named parameter from the Mikrotik device.

Common scenarios for this node include network automation tasks such as removing firewall rules, interfaces, or other configurable elements on a Mikrotik router. For example, a user might automate the removal of obsolete routes or disable specific ports by specifying their IDs.

Properties

Name Meaning
Host The hostname or IP address of the Mikrotik device to connect to.
Ignore SSL Issues Whether to proceed with the request even if SSL certificate validation fails (true/false).
Id The identifier or named parameter of the item to remove. Examples: *1, ether1.

Output

The node outputs JSON data representing the result of the remove operation. This typically includes confirmation of the deletion or any error messages returned by the Mikrotik API. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating with the Mikrotik API.
  • Needs network access to the specified Mikrotik host.
  • Supports ignoring SSL certificate issues based on user input.
  • Uses internal client and operation resolver classes to handle API communication and operation execution.

Troubleshooting

  • Connection errors: Ensure the Host property is correctly set and reachable from the n8n instance.
  • SSL errors: If SSL certificate validation fails, enable "Ignore SSL Issues" to bypass these errors.
  • Invalid ID: Providing an incorrect or non-existent ID will cause the remove operation to fail; verify the ID format and existence on the Mikrotik device.
  • Authentication failures: Confirm that the API key credential is valid and has sufficient permissions.
  • Operation not supported: If the "remove" operation is not applicable to the specified resource or ID, the node may throw an error indicating unsupported operation.

Links and References

Discussion