Zabbix Documentation 1.8

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


Sidebar

api:trigger:adddependencies

addDependencies()

This function allows you to create trigger dependencies.

Parameters

Array of hashes

ParameterTypeOptionalDescriptionDetails
triggeridintegerChild trigger ID
dependsOnTriggeridintegerParent trigger ID

Returns

ParameterDescription
resultOperation successful. Result will contain array of updated Trigger IDs.
errorIn case of any errors

Example

Add dependencies to trigger with trigger ID “100100000064544”, so it would depend on triggers with trigger ID “100100000064537” and “100100000064538”

{
"jsonrpc":"2.0",
"method":"trigger.addDependencies",
"params":[
	{
		"triggerid": "100100000064544",
		"dependsOnTriggerid": "100100000064537"
	},
	{
		"triggerid": "100100000064544",
		"dependsOnTriggerid": "100100000064538"
	}	
],
"auth":"038e1d7b1735c6a5436ee9eae095879e",
"id":2
}

Trigger updated successfully:

{
"jsonrpc":"2.0",
"result":{
   "triggerids": ["100100000064544"]
},
"id":2
}