set_identity
Change a MikroTik device's identity (hostname) with a preview before applying. Use confirm=False to preview changes, then confirm=True to apply.
Instructions
Set a device's RouterOS identity (hostname).
WRITE tool, guarded: blocked entirely unless the server is running with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the default) to get a before/after preview without changing anything; call again with confirm=True to actually apply it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| new_name | Yes | ||
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||