MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

Hotspot → Make Binding

AI-generated

Summary

Make a new IP binding on the MikroTik Hotspot by specifying a MAC address, creating a static association in the IP bindings list.

Inputs

  • Category (required) — Must be 'hosts' to perform the Make Binding operation.
  • MAC Address (required) — The MAC address to bind in the hotspot IP bindings.
  • Options — Optional parameters for connection attempts, delay, key cleaning, and command tagging.

Output shape

an array of response objects from the MikroTik RouterOS API representing the result of the add binding command

The operation sends the '/ip/hotspot/ip-binding/add' command with the MAC address as 'mac-address'. Returns the RouterOS response data in the 'data' field. Supports optional parameters to control the API call connection behavior. If 'cleanKeys' option is enabled, response keys have '-' and '/' replaced by '_'.

Examples

Example 1: Add a new hotspot IP binding for a device with a given MAC address

Set Resource to 'Hotspot', Category to 'Hosts', Operation to 'Make Binding', and provide the MAC address to bind.

Links

Discussion