This method allows to create new item prototypes.这种方法允许创建新的item prototypes。
Item prototype to create.要创建的item prototypes
Returns an object containing the IDs of the created item prototypes under the property. The order of the returned IDs matches the order of the passed item prototypes.返回一个包含“itemid”属性下创建的item prototypes的ID的对象。 返回的ID的顺序与传递的item prototypes的顺序相匹配。
Creating an item prototype 创建一个item prototypes
Create an item prototype to monitor free disc space on a discovered file system. Discovered items should be numeric Zabbix agent items updated every 30 seconds.
Response:
- {
- "jsonrpc": "2.0",
- "result": {
- "27666"
- ]
- },
- "id": 1
CItemPrototype::create() in frontends/php/include/classes/api/services/CItemPrototype.php.