Zabbix Documentation 1.8

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


Sidebar

api:application:exists

Table of Contents

exists()

Available since version: 1.8.3
This function allows you to check whether application with given application data exists.

Parameters

ParameterTypeOptionalDescriptionDetails
nodeidsarrayyes List of node IDs where to search for given application
namestringNo Application name
hostidstringyes Host ID
hoststringyes Host name

Returns

ParameterDescription
resultOperation successful. Result will contain boolean variable.
errorIn case of any errors

Example

Check if application with name “OS” exists for host “Windows-Server”

{
"jsonrpc":"2.0",
"method":"application.exists",
"params":{
	"host": "Windows-Server",
	"name": "OS"
},
"auth":"3a57200802b24cda67c4e4010b50c065",
"id":2
}

Application exists:

{
"jsonrpc":"2.0",
"result": true,
"id":2
}