execute_device_action
Execute restart, adopt, or provision actions on UniFi devices through the Fabric cloud API. Specify host, site, and device ID to trigger device operations.
Instructions
Execute a device action (restart, upgrade, locate, etc.).
host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID.
action: must include: {'action': str}. Common commands: {'action': 'restart'},
{'action': 'adopt'}, {'action': 'force-provision'}. Valid commands vary by device type.
device_id: REQUIRED. Obtain it from list_devices (its id field).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| site | Yes | ||
| action | Yes | ||
| device_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||