Mikrotik icon

Mikrotik

Consume Mikrotik API (v.0.1.4)

add

AI-generated

Overview

This node interacts with the Mikrotik API to add a new record with specified parameters. It is useful for automating network device configurations by programmatically adding entries to Mikrotik devices. For example, a user can add firewall rules, routes, or other configuration items by specifying the host, parameters, and additional special fields.

Use Case Examples

  1. Adding a new firewall rule to a Mikrotik router by specifying the host, parameters like rule name and action, and optional special fields such as comments or disabling the rule.
  2. Automating the addition of routing entries to a Mikrotik device by providing the necessary parameters and host details.

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.
Properties Parameters applied to the newly created record, specified as multiple name-value pairs.
Special Parameters Additional optional fields such as 'Copy-from', 'Place-before', 'Disabled', and 'Comment' to customize the new record.

Output

JSON

  • result - The response from the Mikrotik API after adding the new record, typically containing details of the created entry or status information.

Dependencies

  • Requires Mikrotik API credentials for authentication and connection to the Mikrotik device.

Troubleshooting

  • Common issues include incorrect host address or unreachable Mikrotik device, which results in connection errors.
  • Invalid or missing credentials can cause authentication failures.
  • Incorrect parameter names or values may cause the Mikrotik API to reject the request, resulting in error responses.
  • SSL certificate validation errors can occur if the device uses a self-signed or invalid certificate; enabling 'Ignore SSL Issues' can bypass this but may reduce security.

Discussion