This method allows to create new services这种方法允许创建新的服务.
(object/array)
services to create服务创建.
Returns an object containing the IDs of the created services under the serviceids
property. The order of the returned IDs matches the order of the passed services.返回一个包含serviceids
属性下创建的服务ID的对象,返回的ID的顺序与传递的服务的顺序相匹配。
Creating an service创建服务
Create an service that will be switched to problem state, if at least one child has a problem. SLA calculation will be on and the minimum acceptable SLA is 99.99%.创建一个将被切换到问题状态的服务,如果至少子级有问题。SLA计算将打开,最小可接受SLA为99.99%。
Response响应:
- {
- "jsonrpc": "2.0",
- "result": {
- "5"
- ]
- },
- "id": 1
CService::create() in frontends/php/include/classes/api/services/CService.php.