maintenance.get

    The method allows to retrieve maintenances 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 User roles 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 maintenances

    Request:

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "maintenanceid": "3",
    6. "name": "Sunday maintenance",
    7. "maintenance_type": "0",
    8. "description": "",
    9. "active_since": "1358844540",
    10. "groups": [
    11. {
    12. "groupid": "4",
    13. "name": "Zabbix servers",
    14. "internal": "0"
    15. }
    16. ],
    17. "timeperiods": [
    18. {
    19. "timeperiod_type": "3",
    20. "every": "1",
    21. "month": "0",
    22. "dayofweek": "1",
    23. "day": "0",
    24. "start_time": "64800",
    25. "period": "3600",
    26. "start_date": "2147483647"
    27. ],
    28. "tags": [
    29. {
    30. "tag": "service",
    31. "operator": "0",
    32. "value": "mysqld",
    33. },
    34. {
    35. "tag": "error",
    36. "operator": "2",
    37. "value": ""
    38. }
    39. ]
    40. }
    41. ],
    42. "id": 1
    43. }

    Source