MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

Netwatch → Disable

AI-generated

Summary

Disable a netwatch monitor entry on a MikroTik router.

Inputs

  • targetId (required) — ID (*1, *2) or Name (ether1, user1) of the netwatch entry to disable.
  • connectionAttempts — Number of times to try connecting to the router. Default: 5.
  • connectionDelay — Delay between connection attempts in seconds. Default: 3.
  • cleanKeys — If true, replaces '-' and '/' with '_' in response data keys. Default: false.
  • tag — Custom tag to append to the command. Default: 0 (no tag).

Output shape

An array of result objects, each containing { resource, operation, count, data } where data is the raw response from /tool/netwatch/disable. If cleanKeys is true, response keys have '-' and '/' replaced with '_'.

Execution retries up to connectionAttempts times with connectionDelay seconds between attempts. On persistent failure, behavior depends on the workflow's continueOnFail setting.

Examples

Example 1: Disable netwatch entry named 'uptime' with 2 retries and a custom tag.

targetId: 'uptime', connectionAttempts: 2, tag: 42

Links

Discussion