Table of Contents


Available since version: 1.8
This method allows you to retrieve maintenance details based on filtering options. All parameters are optional. If parameter is set in query this option counted as ON, except if parameter is equal to NULL.


nodeidsarrayNode IDs
groupidsarrayHostGroup IDs
hostidsarrayHost IDs
maintenanceidsarrayMaintenance IDs
editableintegeronly with read-write permission. Ignored for SuperAdmins
filterarrayOptional filter by maintenance fields
searcharrayReturn maintenances by any given maintenance object field pattern
startSearchintegerSearch maintenances field pattern only in start of the field
excludeSearchintegerExclude from result, maintenances by given field pattern
searchWildcardsEnabledintegerSearch pattern in whole field using wildcards 1 - enable, 0 - disable
outputstringOutput options Values: shorten, refer, extend
select_groupsstringSelect host groups Values: shorten, refer, extend
select_hostsstringSelect hosts Values: shorten, refer, extend
countOutputintegerCount maintenances, return the number of maintenances found
groupCountintegerReturn the number of results grouped by given IDs
preservekeysintegerReturn hash instead of array Keys of hash are object IDs
sortfieldstringSort by maintenance field Values: maintenanceid, name
sortorderstringSort order Values: ASC, DESC
limitintmax number of maintenance objects to return


resultOperation successful. Result will contain array of Maintenance objects.
errorIn case of any errors


Get maintenances details by maintenance name pattern “server” and limit output to two maintenances:

	"search": {
	"output": "extend",
	"select_hosts": "refer",
	"select_groups": "refer",
	"limit": 2

Retrieved maintenance details:

	"name":"Zabbix server maintenance",