This method allows to create new templates. 此方法允许创建新模板。

    (object/array) Templates to create. 创建模板。

    (object) 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)返回一个对象,包含templateids属性中创建的模板ID,返回ID的顺序与传递模板的顺序一致。

    Creating a template 创建模板

    Create a template and link it to two hosts. 创建一个模板并将其链接到两台主机上。

    Response 响应:

    1. {
    2. "jsonrpc": "2.0",
    3. "10086"
    4. ]
    5. },
    6. "id": 1

    CTemplate::create() in frontends/php/include/classes/api/services/CTemplate.php. CTemplate::create()方法可在frontends/php/include/classes/api/services/CTemplate.php中参考。