You are viewing documentation for the development version, it may be incomplete.
Join our translation project and help translate Zabbix documentation into your native language.

connector.delete

説明

object connector.delete(array connectorids)

このメソッドは、コネクタのエントリを削除することができます。

このメソッドは、Super adminタイプのユーザーのみ利用可能です。メソッドを呼び出す権限は、ユーザーの役割の設定で取り消すことができます。詳細はユーザーの役割を参照してください。

パラメーター

(array) 削除するコネクタのID。

戻り値

(object) connectoridsプロパティの下にある、削除されたコネクタのIDを含むオブジェクトを返します。

複数のコネクタの削除

2つのコネクタエントリを削除します。

リクエスト :

{
           "jsonrpc": "2.0",
           "method": "connector.delete",
           "params": [
               3,
               5
           ],
           "id": 1
       }

レスポンス :

{
           "jsonrpc": "2.0",
           "result": {
               "connectorids": [
                   "3",
                   "5"
               ]
           },
           "id": 1
       }

ソース

CConnector::delete() in ui/include/classes/api/services/CConnector.php.