dashboard.get

    The method allows to retrieve dashboards according to the given parameters.

    This method is available to users of any type. Permissions to call the method can be revoked in user role settings. See for more information.

    Parameters

    The method supports the following parameters.

    (integer/array) Returns either:

    • an array of objects;
    • the count of retrieved objects, if the countOutput parameter has been used.

    Examples

    Retrieving a dashboard by ID

    Request:

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "dashboardid": "1",
    6. "name": "Dashboard",
    7. "userid": "1",
    8. "private": "0",
    9. "display_period": "30",
    10. "auto_start": "1",
    11. "users": [],
    12. "userGroups": [],
    13. "pages": [
    14. {
    15. "dashboard_pageid": "1",
    16. "name": "",
    17. "display_period": "0",
    18. "widgets": [
    19. {
    20. "widgetid": "9",
    21. "type": "systeminfo",
    22. "name": "",
    23. "x": "12",
    24. "y": "8",
    25. "width": "12",
    26. "height": "5",
    27. "view_mode": "0",
    28. "fields": []
    29. },
    30. {
    31. "widgetid": "8",
    32. "type": "problemsbysv",
    33. "name": "",
    34. "x": "12",
    35. "y": "4",
    36. "width": "12",
    37. "height": "4",
    38. "view_mode": "0",
    39. "fields": []
    40. },
    41. {
    42. "widgetid": "7",
    43. "type": "problemhosts",
    44. "name": "",
    45. "x": "12",
    46. "y": "0",
    47. "width": "12",
    48. "height": "4",
    49. "view_mode": "0",
    50. "fields": []
    51. },
    52. {
    53. "name": "",
    54. "x": "6",
    55. "y": "9",
    56. "width": "6",
    57. "height": "4",
    58. "view_mode": "0",
    59. "fields": []
    60. },
    61. {
    62. "widgetid": "5",
    63. "type": "web",
    64. "name": "",
    65. "x": "0",
    66. "y": "9",
    67. "width": "6",
    68. "height": "4",
    69. "view_mode": "0",
    70. "fields": []
    71. },
    72. {
    73. "widgetid": "4",
    74. "type": "problems",
    75. "name": "",
    76. "x": "0",
    77. "y": "3",
    78. "width": "12",
    79. "height": "6",
    80. "view_mode": "0",
    81. "fields": []
    82. },
    83. {
    84. "widgetid": "3",
    85. "type": "favmaps",
    86. "name": "",
    87. "x": "8",
    88. "y": "0",
    89. "width": "4",
    90. "height": "3",
    91. "view_mode": "0",
    92. "fields": []
    93. },
    94. {
    95. "widgetid": "1",
    96. "type": "favgraphs",
    97. "name": "",
    98. "x": "0",
    99. "y": "0",
    100. "width": "4",
    101. "height": "3",
    102. "view_mode": "0",
    103. "fields": []
    104. }
    105. ]
    106. },
    107. {
    108. "dashboard_pageid": "2",
    109. "name": "",
    110. "display_period": "0",
    111. },
    112. "dashboard_pageid": "3",
    113. "name": "Custom page name",
    114. "display_period": "60",
    115. "widgets": []
    116. }
    117. ]
    118. },
    119. {
    120. "dashboardid": "2",
    121. "name": "My dashboard",
    122. "userid": "1",
    123. "private": "1",
    124. "display_period": "60",
    125. "auto_start": "1",
    126. "users": [
    127. {
    128. "userid": "4",
    129. "permission": "3"
    130. }
    131. ],
    132. "userGroups": [
    133. {
    134. "usrgrpid": "7",
    135. "permission": "2"
    136. }
    137. ],
    138. "pages": [
    139. {
    140. "dashboard_pageid": "4",
    141. "name": "",
    142. "display_period": "0",
    143. "widgets": [
    144. {
    145. "widgetid": "10",
    146. "type": "problems",
    147. "name": "",
    148. "x": "0",
    149. "y": "0",
    150. "width": "12",
    151. "height": "5",
    152. "view_mode": "0",
    153. "fields": [
    154. {
    155. "type": "2",
    156. "name": "groupids",
    157. "value": "4"
    158. }
    159. ]
    160. }
    161. ]
    162. }
    163. ]
    164. }
    165. ],
    166. "id": 1
    167. }

    Source