object application.create(object/array applications)
This method allows to create new applications.
(object/array)
Applications to create.
The method accepts applications with the standard application properties.
(object)
Returns an object containing the IDs of the created applications under the applicationids
property. The order of the returned IDs matches the order of the passed applications.
Create an application to store SNMP items.
Request:
{
"jsonrpc": "2.0",
"method": "application.create",
"params": {
"name": "SNMP Items",
"hostid": "10050"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CApplication::create() in frontends/php/api/classes/CApplication.php.