Ad Widget

Collapse

Is it possible to get dashboard list with Zabbix API?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • engin
    Junior Member
    • May 2021
    • 3

    #1

    Is it possible to get dashboard list with Zabbix API?

    Hi,
    I couldn't find any method to get the dashboard list (i need dashboard ids) with Zabbix API. Is there any method that i can use or any solution to get dashboard list or just dashboard ids?
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    What Zabbix version? It's in the 5.0 doc https://www.zabbix.com/documentation...ence/dashboard

    Comment

    • engin
      Junior Member
      • May 2021
      • 3

      #3
      Zabbix 5.2
      dashboard has methods create, get, delete and update.i can retrieve a specific dashboard if i call it with id. But what i need is id's of all the dashboards currently created in zabbix. The list when on the page "zabbix.php?action=dashboard.list"
      Last edited by engin; 17-05-2021, 15:39.

      Comment

      • gcalenko
        Zabbix developer
        • Mar 2017
        • 27

        #4
        You can use dashboard API method dashboard.get passing "dashboardid" in array of output fields.

        Code:
        {
          "jsonrpc": "2.0",
          "method": "dashboard.get",
          "params": {
             "output": [
             "dashboardid"
            ]
          }
        }

        Comment


        • engin
          engin commented
          Editing a comment
          I know. I want to get the list of dashboards.
      • LenR
        Senior Member
        • Sep 2009
        • 1005

        #5
        The code above should get all of them.

        Comment

        • engin
          Junior Member
          • May 2021
          • 3

          #6
          Originally posted by LenR
          The code above should get all of them.
          oh ok. thank you. i'll try.

          As you said, it gets all the dashboard ids. Thank you again.
          Last edited by engin; 17-05-2021, 16:00.

          Comment

          Working...