Table of Contents


Available since version: 1.8
This function allows you to retrieve discovery rule 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
druleidsarrayDiscovery rule IDs
dhostidsarrayDiscovery host IDs
dserviceidsarrayDiscovery service IDs
dcheckidsarrayDiscovery check IDs
editableintegeronly with read-write permission. Ignored for SuperAdmins
filterarrayOptional filter by discovery rule fields
searcharrayReturn discovery rules by any given discovery rule object field pattern
startSearchintegerSearch discovery rules field pattern only in start of the field
excludeSearchintegerExclude from result, discovery rules by given field pattern
searchWildcardsEnabledintegerSearch pattern in whole field using wildcards 1 - enable, 0 - disable
outputstringOutput options Values: shorten, refer, extend
selectDHostsstringSelect discovery hosts Values: shorten, refer, extend
selectDChecksstringSelect discovery checks Values: shorten, refer, extend
selectDServicesstringSelect discovery services Values: shorten, refer, extend
countOutputintegerCount discovery rules, return the number of discovery rules found
groupCountintegerReturn the number of results grouped by given IDs
preservekeysintegerReturn hash instead of array Keys of hash are object IDs
sortfieldstringSort by discovery rule field Values: druleid, name
sortorderstringSort order Values: ASC, DESC
limitintmax number of discovery rule objects to return


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


Get discovery rules details by discovery rule name pattern “local”:

	"search": {"name": "local"},
	"output": "extend"
Retrieved discovery rule details:

	"name":"Local network",