Ad Widget

Collapse

API: Get a list of all host groups

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • olegus
    Member
    • Dec 2023
    • 68

    #1

    API: Get a list of all host groups

    Is it possible? Could not find anything in docs - https://www.zabbix.com/documentation.../hostgroup/get
    Thanks.
  • Answer selected by olegus at 24-05-2024, 17:27.
    Singularity
    Member
    • Aug 2020
    • 81

    data = ' { "jsonrpc": "2.0", "method": "hostgroup.get", "params": { "output": "extend", "filter": [] }, "id": 2, "auth": "your_auth_token" } '
    This is what you need I guess.
    Simply do not have anything inside filter

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      a hostgroup.get without any parameters?

      Comment

      • Singularity
        Member
        • Aug 2020
        • 81

        #3
        data = ' { "jsonrpc": "2.0", "method": "hostgroup.get", "params": { "output": "extend", "filter": [] }, "id": 2, "auth": "your_auth_token" } '
        This is what you need I guess.
        Simply do not have anything inside filter

        Comment

        • olegus
          Member
          • Dec 2023
          • 68

          #4
          awesome thanks, did not realize I can omit filters here!

          Comment

          Working...