usermacro_get
Retrieve global macros from Zabbix using optional filters like globalmacroids, hostids, or custom criteria. Output results in JSON format for integration or analysis.
Instructions
Get global macros from Zabbix with optional filtering.
Args:
globalmacroids: List of global macro IDs to retrieve
hostids: List of host IDs to filter by (for host macros)
output: Output format (extend, shorten, or specific fields)
search: Search criteria
filter: Filter criteria
Returns:
str: JSON formatted list of global macros
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter | No | ||
globalmacroids | No | ||
hostids | No | ||
output | No | extend | |
search | No |