2022 Zabbix中国峰会
2022 Zabbix中国峰会

hostinterface.delete

Description 说明

object hostinterface.delete(array hostInterfaceIds)

This method allows to delete host interfaces.此方法允许删除主机接口。

Parameters 参数

(array) IDs of the host interfaces to delete.要删除的主机接口的ID。

Return values 返回值

(object) Returns an object containing the IDs of the deleted host interfaces under the interfaceids property.返回包含“interfaceids”属性下删除的主机接口的ID的对象。

Examples 示例

Delete a host interface 删除主机界面

Delete the host interface with ID 30062.删除ID为30062的主机接口。

Request:

{
           "jsonrpc": "2.0",
           "method": "hostinterface.delete",
           "params": [
               "30062"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "interfaceids": [
                   "30062"
               ]
           },
           "id": 1
       }

See also 参见

Source 来源

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