configuration_export
Export Zabbix hosts and templates with all associated items, triggers, and configuration elements to JSON, XML, or YAML for backup and migration.
Instructions
Export Zabbix configurations.
Exports monitored hosts, templates, and their complete configurations to JSON, XML, or YAML format. Useful for backup, migration, disaster recovery, or sharing configurations.
When you export templates or hosts, the export includes:
All associated items (metrics/data sources)
All triggers and their dependencies
Discovery rules and prototypes
Graphs and visualizations
Macros and variable definitions
Host groups and interfaces (for hosts)
Inventory data (for hosts)
And all other configuration elements
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostids | No | List of host IDs to export. | |
| format_type | No | Export format: 'json', 'xml', or 'yaml'. | json |
| prettyprint | No | If true, returns pretty-printed output. | |
| templateids | No | List of template IDs to export. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||