Ad Widget

Collapse

How to export the whole configuration via the API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tkot
    Junior Member
    • Jul 2019
    • 4

    #1

    How to export the whole configuration via the API

    Hello
    I'm newbie in Zabbix. I try to figure out how to export the configuration using the API (I would rather avoid dumping DB tables). I managed to use the API for various operations with no issues, but when I reached the 'configuration.export' method I was shocked to realize that I actually need to explicitly pass all host, group, etc IDs.At least this is the impression I got. By passing the appropriate IDs I do get the export I need, but I really want to simplify my life! Empty options or ID lists do not pass as as 'get all' filter. Therefore from what I understood (please prove me wrong) I have to fetch the IDs of the various resources and then plug them in the export query.

    Is there any other way to do a configuration dump?
Working...