usermacro_get
Retrieve user macros from Zabbix, including host and global macros, using flexible filters like macro IDs, host IDs, or search criteria to parameterize monitoring configurations.
Instructions
Get user macros from Zabbix.
User macros are variables that can be referenced in items, triggers, and scripts. They allow parameterization of monitoring configurations with custom values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| offset | No | Number of results to skip (for pagination). Requires sortfield to be set. | |
| output | No | extend | |
| search | No | Dictionary with search criteria like {'macro': '{$THRESHOLD}'}. | |
| hostids | No | List of host IDs to get macros from. | |
| sortfield | No | Field to sort by. | |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| globalmacro | No | Return global macros. | |
| templateids | No | List of template IDs to get macros from. | |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| hostmacroids | No | List of host macro IDs to get. | |
| filter_params | No | Additional filter parameters for advanced filtering. | |
| globalmacroids | No | List of global macro IDs to get. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||