Sidebar

Zabbix Summit 2022
Register for Zabbix Summit 2022

service.deletedependencies

Description说明

object service.deletedependencies(string/array serviceIds)

This method allows to delete all dependencies from services此方法允许从服务中删除所有依赖关系.

Parameters参数

(string/array) IDs of the services to delete all dependencies from删除所有依赖关系的服务的ID.

Return values返回值

(object) Returns an object containing the IDs of the affected services under the serviceids property. (object)返回一个包含serviceids属性下受影响的服务的ID的对象。

Examples范例

Deleting dependencies from an service从服务中删除依赖关系

Delete all dependencies from service "2"从服务"2"删除所有依赖项.

Request请求:

{
           "jsonrpc": "2.0",
           "method": "service.deletedependencies",
           "params": [
               "2"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response响应:

{
           "jsonrpc": "2.0",
           "result": {
               "serviceids": [
                   "2"
               ]
           },
           "id": 1
       }

See also参考

Source源码

CService::delete() in frontends/php/include/classes/api/services/CService.php.