This method allows to create new templates此方法允许创建新模板.
(object/array)
Templates to create创建模板.
Returns an object containing the IDs of the created templates under the templateids
property. The order of the returned IDs matches the order of the passed templates.(object)
返回一个对象,它包含属性下创建的模板的ID,返回的ID的顺序与传递的模板的顺序相匹配。
Creating a template创建模板
Create a template and link it to two hosts创建一个模板并将其链接到两个主机.
Response响应:
- {
- "jsonrpc": "2.0",
- "result": {
- "10086"
- ]
- },
- "id": 1
CTemplate::create() in frontends/php/include/classes/api/services/CTemplate.php.