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.

token.delete

説明

object token.delete(array tokenids)

このメソッドは、トークンを削除することができます。

他のユーザーのトークンを管理するには、ユーザーの役割にAPIトークンの管理権限が必要です。

パラメーター

(array) 削除するトークンのID。

戻り値

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

複数のトークンの削除

2つのトークンを削除します。

リクエスト:

{
           "jsonrpc": "2.0",
           "method": "token.delete",
           "params": [
               "188",
               "192"
           ],
           "id": 1
       }

レスポンス:

{
           "jsonrpc": "2.0",
           "result": {
               "tokenids": [
                   "188",
                   "192"
               ]
           },
           "id": 1
       }

ソース

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