en-us	### Red Hat Enterprise Linux  Open the `/etc/yum.repos.d/zabbix.repo` file and set enabled=1 for the `zabbix-unstable` repo.       [zabbix-unstable]     name=Zabbix Official Repository (unstable) - $basearch     baseurl=https://repo.zabbix.com/zabbix/5.5/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
ja	### Red Hat Enterprise Linux  `/etc/yum.repos.d/zabbix.repo` ファイルを開き、`zabbix-unstable` レポジトリに対して enabled=1 を設定します。       [zabbix-unstable]     name=Zabbix Official Repository (unstable) - $basearch     baseurl=https://repo.zabbix.com/zabbix/5.5/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

en-us	 ### Redis  |Key|<|<|<| |--|--|------|------| |**Description**|**Return value**|**Parameters**|**Comments**| |redis.config\[connString,<password>,<pattern>\]|<|<|<| |Gets the configuration parameters of a Redis instance that match the pattern.|JSON - if a glob-style pattern was used<br><br>single value - if a pattern did not contain any wildcard character|**connString** - URI or session name.<br>**password** - Redis password.<br>**pattern** - glob-style pattern (*\** by default).| | |redis.info\[connString,<password>,<section>\]|<|<|<| |Gets the output of the INFO command.|JSON - output is serialized as JSON|**connString** - URI or session name.<br>**password** - Redis password.<br>**section** - [section](https://redis.io/commands/info) of information (*default* by default).| | |redis.ping\[connString,<password>\]|<|<|<| |Test if a connection is alive or not.|1 - connection is alive<br><br>0 - connection is broken (if there is any error presented including AUTH and configuration issues)|**connString** - URI or session name.<br>**password** - Redis password.| | |redis.slowlog.count\[connString,<password>\]|<|<|<| |The number of slow log entries since Redis was started.|Integer|**connString** - URI or session name.<br>**password** - Redis password.| |
ja	### Redis  |キー|<|<|<| |--|--|------|------| |**説明**|**戻り値**|**パラメータ**|**コメント**| |redis.config\[connString,<password>,<pattern>\]|<|<|<| |パターンに一致する Redis インスタンスの構成パラメーターを取得します|JSON - glob スタイルのパターンが使用された場合<br><br>単一値 - パターンにワイルドカード文字が含まれていない場合|**connString** - URIまたはセッション名<br>**password** - Redisパスワード<br>**pattern** - glob スタイルパターン (デフォルトで*\**)| | |redis.info\[connString,<password>,<section>\]|<|<|<| |INFO コマンドの出力を取得します|JSON - 出力は JSON としてシリアル化されます|**connString** - URIまたはセッション名<br>**password** - Redisパスワード<br>**section** - [セクション](https://redis.io/commands/info) の情報 (デフォルトは*default*)| | |redis.ping\[connString,<password>\]|<|<|<| |接続が有効かどうか|1 - 有効<br><br>0 - 無効(AUTH や構成の問題など、何らかのエラーが表示される場合)|**connString** - URIまたはセッション名<br>**password** - Redisパスワード| | |redis.slowlog.count\[connString,<password>\]|<|<|<| |Redis が開始されてからのスロー ログ エントリの数|数値|**connString** - URIまたはセッション名<br>**password** - Redisパスワード| |

en-us	##### Referencing a network map  Network maps can be referenced by both `sysmapid` and `mapname` GET parameters. For example,      http://zabbix/zabbix/zabbix.php?action=map.view&mapname=Local%20network  will open the map with that name (Local network).  If both `sysmapid` (map ID) and `mapname` (map name) are specified, `mapname` has higher priority.
ja	##### ネットワークマップの参照  ネットワークマップは`sysmapid`と`mapname`の両方のGETパラメータで参照できます。 例えば、      http://zabbix/zabbix/zabbix.php?action=map.view&mapname=Local%20network  指定された名前のマップを開きます。（Local network）  `sysmapid`（マップID）と` mapname`（マップ名）の両方が指定されている場合、`mapname`の優先度が高くなります。

en-us	#### regexp  Changes:\ [ZBXNEXT-6717](https://support.zabbix.com/browse/ZBXNEXT-6717) added `regexp.get`, `regexp.create`, `regexp.update` and `regexp.delete` API.\
ja	#### 正規表現  変更点:\ [ZBXNEXT-6717](https://support.zabbix.com/browse/ZBXNEXT-6717) `regexp.get`, `regexp.create`, `regexp.update`, `regexp.delete` APIを追加しました。\

en-us	# regexp.create
ja	# regexp.create

en-us	# regexp.delete
ja	# regexp.delete

en-us	# regexp.get
ja	# regexp.get

en-us	# regexp.update
ja	# regexp.update

en-us	# > Regular expression object  The following objects are directly related to the `regexp` API.
ja	# > Regular expressionオブジェクト  次のオブジェクトは、`regexp`APIに直接関連しています。

en-us	#### Regular expressions  Manage global regular expressions.  [Regular expression API](/manual/api/reference/regexp)
ja	#### 正規表現  グローバルな正規表現を管理します。  [Regular expression API](/manual/api/reference/regexp)

en-us	#### - Regular expressions  This section allows creating custom regular expressions that can be used in several places in the frontend. See [Regular expressions](/manual/regular_expressions) section for details.
ja	#### - 正規表現  このセクションでは、フロントエンドのいくつかの場所で使用できるカスタム正規表現を作成できます。詳細については[正規表現](/manual/regular_expressions)セクションを参照してください。

en-us	# Regular expression  This class is designed to work with global regular expressions.  Object references:\  -   [Regular expression](/manual/api/reference/regexp/object)  Available methods:\  -   [regexp.create](/manual/api/reference/regexp/create) - creating new     regular expressions -   [regexp.delete](/manual/api/reference/regexp/delete) - deleting     regular expressions -   [regexp.get](/manual/api/reference/regexp/get) - retrieving regular     expressions -   [regexp.update](/manual/api/reference/regexp/update) - updating     regular expressions
ja	# Regular expression  このクラスは、グローバル正規表現を操作するためのものです。  オブジェクトリファレンス :\  -   [Regular expression](/manual/api/reference/regexp/object)  利用可能なメソッド :\  -   [regexp.create](/manual/api/reference/regexp/create) - 新しい正規表現の作成 -   [regexp.delete](/manual/api/reference/regexp/delete) - 正規表現の削除 -   [regexp.get](/manual/api/reference/regexp/get) - 正規表現の取得 -   [regexp.update](/manual/api/reference/regexp/update) - 正規表現の更新

en-us	#### Removing hosts from host groups  Remove two hosts from the given host groups.  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "hostgroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "hostids": [             "30050",             "30001"         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```
ja	#### host group から host を削除する  与えられた host group から 2 つの host を削除します。  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "hostgroup.massremove",     "params": {         "groupids": [             "5",             "6"         ],         "hostids": [             "30050",             "30001"         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "groupids": [             "5",             "6"         ]     },     "id": 1 } ```

en-us	#### Removing interfaces  Remove the "127.0.0.1" SNMP interface from two hosts.  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.massremove",     "params": {         "hostids": [             "30050",             "30052"         ],         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "port": "161"         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30069",             "30070"         ]     },     "id": 1 } ```
ja	#### インターフェイスの削除  2つのホストから"127.0.0.1"SNMPインターフェースを削除します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.massremove",     "params": {         "hostids": [             "30050",             "30052"         ],         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "port": "161"         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30069",             "30070"         ]     },     "id": 1 } ```

en-us	#### Removing templates from a group  Remove two templates from group "2".  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.massremove",     "params": {         "templateids": [             "10085",             "10086"         ],         "groupids": "2"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```
ja	#### グループからのテンプレートの削除  グループ"2"から 2 つのテンプレートを削除します  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.massremove",     "params": {         "templateids": [             "10085",             "10086"         ],         "groupids": "2"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```

en-us	#### Removing web server test page  It is recommended to remove the web server test page to avoid information exposure. By default, web server webroot contains a test page called index.html (Apache2 on Ubuntu is used as an example):  ![](../../../../assets/en/manual/installation/requirements/test_page.png)  The test page should be removed or should be made unavailable as part of the web server hardening process.
ja	#### Webサーバーのテストページを削除する  情報漏洩を避けるため、Webサーバのテストページを削除することをお勧めします。 デフォルトでは、WebサーバーのWebrootには、index.htmlと呼ばれるテストページが含まれています (UbuntuのApache2を例としています)。  ![](../../../../assets/en/manual/installation/requirements/test_page.png)  Webサーバーの強化プロセスの一環として、テストページを削除するか、使用できないようにする必要があります。

en-us	#### Rename icon map  Rename an icon map to "OS icons".  Request:  ```json {     "jsonrpc": "2.0",     "method": "iconmap.update",     "params": {         "iconmapid": "1",         "name": "OS icons"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "iconmapids": [             "1"         ]     },     "id": 1 } ```
ja	#### アイコンマップの名前変更  アイコンマップの名前を"OSアイコン"に変更します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "iconmap.update",     "params": {         "iconmapid": "1",         "name": "OS icons"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "iconmapids": [             "1"         ]     },     "id": 1 } ```

en-us	#### Rename image  Rename image to "Cloud icon".  Request:  ```json {     "jsonrpc": "2.0",     "method": "image.update",     "params": {         "imageid": "2",         "name": "Cloud icon"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "imageids": [             "2"         ]     },     "id": 1 } ```
ja	#### 画像の名前変更  画像の名前を"Cloud icon"に変更  Request:  ```json {     "jsonrpc": "2.0",     "method": "image.update",     "params": {         "imageid": "2",         "name": "Cloud icon"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "imageids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Rename token  Remove expiry date from token.  Request:  ```json {     "jsonrpc": "2.0",     "method": "token.update",     "params": {         "tokenid": "2",         "expires_at": "0"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "tokenids": [             "2"         ]     },     "id": 1 } ```
ja	#### トークンの有効期限変更  トークンから有効期限を削除します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "token.update",     "params": {         "tokenid": "2",         "expires_at": "0"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "tokenids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Renaming a dashboard  Rename a dashboard to "SQL server status".  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "dashboard.update",     "params": {         "dashboardid": "2",         "name": "SQL server status"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "2"         ]     },     "id": 1 } ```
ja	#### ダッシュボードの名前変更  ダッシュボードの名前を "SQLサーバーの状態" に変更します。  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "dashboard.update",     "params": {         "dashboardid": "2",         "name": "SQL server status"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "2"         ]     },     "id": 1 } ```

en-us	#### Renaming a host group  Rename a host group to "Linux hosts."  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "hostgroup.update",     "params": {         "groupid": "7",         "name": "Linux hosts"     },     "auth": "700ca65537074ec963db7efabda78259",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```
ja	#### host group の名前の変更  host group の名前を "Linux hosts" に変更します。  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "hostgroup.update",     "params": {         "groupid": "7",         "name": "Linux hosts"     },     "auth": "700ca65537074ec963db7efabda78259",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "groupids": [             "7"         ]     },     "id": 1 } ```

en-us	#### Renaming a template dashboard  Rename a template dashboard to "Performance graphs".  Request:  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.update",     "params": {         "dashboardid": "23",         "name": "Performance graphs"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "23"         ]     },     "id": 1 } ```
ja	#### テンプレートダッシュボードの名前変更  テンプレートダッシュボードの名前を"Performance graphs"に変更します  Request:  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.update",     "params": {         "dashboardid": "23",         "name": "Performance graphs"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "dashboardids": [             "23"         ]     },     "id": 1 } ```

en-us	#### Renaming a template  Rename the template to "Template OS Linux".  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.update",     "params": {         "templateid": "10086",         "name": "Template OS Linux"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10086"         ]     },     "id": 1 } ```
ja	#### テンプレートの名前変更  テンプレートの名前を"Template OS Linux"に変更します  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.update",     "params": {         "templateid": "10086",         "name": "Template OS Linux"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10086"         ]     },     "id": 1 } ```

en-us	#### Renaming a user  Rename a user to John Doe.  Request:  ```json {     "jsonrpc": "2.0",     "method": "user.update",     "params": {         "userid": "1",         "name": "John",         "surname": "Doe"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1"         ]     },     "id": 1 } ```
ja	#### ユーザー名変更  ユーザー名をJohn Doeに変更  Request:  ```json {     "jsonrpc": "2.0",     "method": "user.update",     "params": {         "userid": "1",         "name": "John",         "surname": "Doe"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userids": [             "1"         ]     },     "id": 1 } ```

en-us	#### Replace conditions, but keep the evaluation method  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "correlation.update",     "params": {         "correlationid": "1",         "filter": {             "conditions": [                 {                     "type": 3,                     "oldtag": "error",                     "newtag": "ok"                 }             ]         }     },     "auth": "343baad4f88b4106b9b5961e77437688",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "correlationids": [             "1"         ]     },     "id": 1 } ```
ja	#### 条件を置き換えるが、評価方法は維持する  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "correlation.update",     "params": {         "correlationid": "1",         "filter": {             "conditions": [                 {                     "type": 3,                     "oldtag": "error",                     "newtag": "ok"                 }             ]         }     },     "auth": "343baad4f88b4106b9b5961e77437688",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "correlationids": [             "1"         ]     },     "id": 1 } ```

en-us	#### Replacing host groups  Unlink and clear template "10091" from the given templates.  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.massupdate",     "params": {         "templates": [             {                 "templateid": "10085"             },             {                 "templateid": "10086"             }         ],         "templates_clear": [             {                 "templateid": "10091"             }         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```
ja	#### ホスト グループの置換  指定されたテンプレートからテンプレート"10091"のリンクを解除してクリアします。  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.massupdate",     "params": {         "templates": [             {                 "templateid": "10085"             },             {                 "templateid": "10086"             }         ],         "templates_clear": [             {                 "templateid": "10091"             }         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "templateids": [             "10085",             "10086"         ]     },     "id": 1 } ```

en-us	#### Replacing host interfaces  Replace all host interfaces with a single agent interface.  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.replacehostinterfaces",     "params": {         "hostid": "30052",         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "main": 1,             "port": "10050",             "type": 1,             "useip": 1         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30081"         ]     },     "id": 1 } ```
ja	#### ホストインターフェイスの置換  すべてのホストインターフェースを単一のエージェントインターフェースに置換します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.replacehostinterfaces",     "params": {         "hostid": "30052",         "interfaces": {             "dns": "",             "ip": "127.0.0.1",             "main": 1,             "port": "10050",             "type": 1,             "useip": 1         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "interfaceids": [             "30081"         ]     },     "id": 1 } ```

en-us	#### Replacing hosts and templates in a host group  Replace all hosts in a host group to ones mentioned host and unlink all templates from host group.  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "hostgroup.massupdate",     "params": {         "groups": [             {                 "groupid": "6"             }         ],         "hosts": [             {                 "hostid": "30050"             }         ],         "templates": []     },     "auth": "f223adf833b2bf2ff38574a67bba6372",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "groupids": [             "6",         ]     },     "id": 1 } ```
ja	#### host group内のホストとテンプレートの入れ替え  host group 内のすべてのホストを指定されたホストに置き換え、ホストグループ内のすべてのテンプレートのリンクを解除します。  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "hostgroup.massupdate",     "params": {         "groups": [             {                 "groupid": "6"             }         ],         "hosts": [             {                 "hostid": "30050"             }         ],         "templates": []     },     "auth": "f223adf833b2bf2ff38574a67bba6372",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": {         "groupids": [             "6",         ]     },     "id": 1 } ```

en-us	#### Replacing trigger prototype tags  Replace tags for one trigger prototype.  Request:  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.update",     "params": {         "triggerid": "17373",         "tags": [             {                 "tag": "volume",                 "value": "{#FSNAME}"             },             {                 "tag": "type",                 "value": "{#FSTYPE}"             }         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "17373"         ]     },     "id": 1 } ```
ja	#### トリガー プロトタイプ タグの置き換え  1 つのトリガー プロトタイプのタグを置き換えます  Request:  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.update",     "params": {         "triggerid": "17373",         "tags": [             {                 "tag": "volume",                 "value": "{#FSNAME}"             },             {                 "tag": "type",                 "value": "{#FSTYPE}"             }         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "17373"         ]     },     "id": 1 } ```

en-us	#### Replacing triggers tags  Replace tags for trigger.  Request:  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "13938",         "tags": [             {                 "tag": "service",                 "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"             },             {                 "tag": "error",                 "value": ""             }         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "13938"         ]     },     "id": 1 } ```
ja	#### トリガータグ置換  トリガーのタグを置換します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "trigger.update",     "params": {         "triggerid": "13938",         "tags": [             {                 "tag": "service",                 "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"             },             {                 "tag": "error",                 "value": ""             }         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "triggerids": [             "13938"         ]     },     "id": 1 } ```

en-us	# report.create
ja	# report.create

en-us	# report.delete
ja	# report.delete

en-us	# report.get
ja	# report.get

en-us	 ### Reporting file systems with zero inodes  `vfs.fs.get` agent items are now capable of reporting file systems with the inode count equal to zero, which can be the case for file systems with dynamic inodes (e.g. btrfs).  Additionally `vfs.fs.inode` items now will not become unsupported in such cases with mode set to 'pfree' or 'pused'. Instead the pfree/pused values for such file systems will be reported as "100" and "0" respectively.
ja	 ### inode がゼロのファイルシステムを報告する  `vfs.fs.get` エージェント アイテムは、inode カウントがゼロに等しいファイル システムを報告できるようになりました。これは、動的 inode を持つファイル システム (例: btrfs) の場合です。  さらに、「vfs.fs.inode」アイテムは、モードが「pfree」または「pused」に設定されている場合でもサポートされなくなることはありません。代わりに、そのようなファイル システムの pfree/pused 値は、それぞれ「100」と「0」として報告されます。

en-us	# > Report object  The following objects are directly related to the `report` API.
ja	# > Reportオブジェクト  次のオブジェクトは、`report`APIに直接関連しています。

en-us	 ### Report  The filter allows to select the report based on the SLA name as well as the  service name. It is also possible to limit the displayed period.  ![](../../../../../assets/en/manual/web_interface/sla_report.png){width="600"}  Each column (period) displays the SLI for that period. SLIs that are in breach of the set  SLO are highlighted in red.  20 periods are displayed in the report. A maximum of 100 periods can be displayed, if  both the *From* date and *To* date are specified. 
ja	### レポート  フィルタを使用するとSLA名とサービス名に基づいてレポートを選択できます。 表示期間を絞り込む事も可能です。  ![](../../../../../assets/en/manual/web_interface/sla_report.png){width="600"}  各列（期間）には、その期間のSLIが表示されます。 セットSLOに違反しているSLIは、赤で強調表示されます。  レポートには20の期間が表示されます。 *開始日*と*終了日*の両方を指定した場合、最大100の期間を表示できます。

en-us	# Report  This class is designed to work with scheduled reports.  Object references:\  -   [Report](/manual/api/reference/report/object#report) -   [Users](/manual/api/reference/report/object#users) -   [User groups](/manual/api/reference/report/object#user_groups)  Available methods:\  -   [report.create](/manual/api/reference/report/create) - create new     scheduled reports -   [report.delete](/manual/api/reference/report/delete) - delete     scheduled reports -   [report.get](/manual/api/reference/report/get) - retrieve scheduled     reports -   [report.update](/manual/api/reference/report/update) - update     scheduled reports
ja	# Report  このクラスは、定期レポートを操作するためのものです。  オブジェクトリファレンス :\  -   [Report](/manual/api/reference/report/object#report) -   [Users](/manual/api/reference/report/object#users) -   [User groups](/manual/api/reference/report/object#user_groups)  利用可能なメソッド :\  -   [report.create](/manual/api/reference/report/create) - 新しい定期レポートを作成する -   [report.delete](/manual/api/reference/report/delete) - 定期レポートを削除する -   [report.get](/manual/api/reference/report/get) - 定期レポートを取得する -   [report.update](/manual/api/reference/report/update) - 定期レポートを更新する

en-us	# report.update
ja	# report.update

en-us	##### - Repositories  Official Zabbix [repository](/manual/installation/install_from_packages/rhel) has been added to */etc/yum.repos.d*:      [zabbix]     name=Zabbix Official Repository - $basearch     baseurl=http://repo.zabbix.com/zabbix/6.0/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
ja	##### - リポジトリ  公式Zabbix[リポジトリ](/manual/installation/install_from_packages/rhel）が*/etc/yum.repos.d*に追加されています。      [zabbix]     name=Zabbix Official Repository - $basearch     baseurl=http://repo.zabbix.com/zabbix/6.0/rhel/8/$basearch/     enabled=1     gpgcheck=1     gpgkey=file:/// etc / pki / rpm-gpg / RPM-GPG-KEY-ZABBIX-A14FE591

en-us	#### Requesting authenticated user's information  Authenticate and return additional information about the user.  Request:  ```json {     "jsonrpc": "2.0",     "method": "user.login",     "params": {         "username": "Admin",         "password": "zabbix",         "userData": true     },     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "userid": "1",         "username": "Admin",         "name": "Zabbix",         "surname": "Administrator",         "url": "",         "autologin": "1",         "autologout": "0",         "lang": "ru_RU",         "refresh": "0",         "theme": "default",         "attempt_failed": "0",         "attempt_ip": "127.0.0.1",         "attempt_clock": "1355919038",         "rows_per_page": "50",         "timezone": "Europe/Riga",         "roleid": "3",         "type": 3,         "userip": "127.0.0.1",         "debug_mode": 0,         "gui_access": 0,         "sessionid": "5b56eee8be445e98f0bd42b435736e42"     },     "id": 1 } ```
ja	#### ユーザー認証と情報要求  ユーザーを認証して追加情報を返します。  リクエスト:  ```json { "jsonrpc": "2.0", "method": "user.login", "params": { "username": "Admin", "password": "zabbix", "userData": true }, "id": 1 } ```  レスポンス:  ```json { "jsonrpc": "2.0", "result": { "userid": "1", "username": "Admin", "name": "Zabbix", "surname": "Administrator", "url": "", "autologin": "1", "autologout": "0", "lang": "ru_RU", "refresh": "0", "theme": "default", "attempt_failed": "0", "attempt_ip": "127.0.0.1", "attempt_clock": "1355919038", "rows_per_page": "50", "timezone": "Europe/Riga", "roleid": "3", "type": 3, "userip": "127.0.0.1", "debug_mode": 0, "gui_access": 0, "sessionid": "5b56eee8be445e98f0bd42b435736e42" }, "id": 1 } ```

en-us	Request:  ```json {     "jsonrpc": "2.0",     "method": "sla.create",     "params": [         {             "name": "Database Uptime",             "slo": "99.9995",             "period": "1",             "timezone": "America/Toronto",             "description": "Provide excellent uptime for main database engines.",             "effective_date": 1672444800,             "status": 1,             "schedule": [                 {                     "period_from": 0,                     "period_to": 601200                 }             ],             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     ],     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "slaids": [             "5"         ]     },     "id": 1 } ```
ja	リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "sla.create",     "params": [         {             "name": "Database Uptime",             "slo": "99.9995",             "period": "1",             "timezone": "America/Toronto",             "description": "Provide excellent uptime for main database engines.",             "effective_date": 1672444800,             "status": 1,             "schedule": [                 {                     "period_from": 0,                     "period_to": 601200                 }             ],             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     ],     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": {         "slaids": [             "5"         ]     },     "id": 1 } ```

en-us	### Required mode
ja	### Required モード

en-us	### Required mode
ja	### Required モード

en-us	#### Required software  Zabbix is built around modern web servers, leading database engines, and PHP scripting language.
ja	#### ソフトウェア要件  Zabbixは最新のWebサーバー、主要なデータベースエンジン、およびPHPスクリプト言語を組み合わせて動作します。

en-us	##### Requirements  The following is required to set up encryption:  -   Developer-supported operating system with OpenSSL >=1.1.X or     alternative.  ::: noteclassic  It is recommended to avoid OS in the end-of-life status, especially in the case of new installations  :::  -   Database engine (RDBMS) installed and maintained from the official     repository provided by developer. Operating systems often shipped     with outdated  database software versions for which encryption     support is not implemented, for example RHEL 7 based systems and     PostgreSQL 9.2, MariaDB 5.5 without encryption support. 
ja	##### 要件  暗号化を設定するには、次が必要です。  - デベロッパーサポートされているOSとOpenSSL1.1.X以上 または OpenSSLの代用品。  ::: noteclassic 特に新規インストールの場合は、サポート終了したOSは避けることをお勧めします。 :::  - デベロッパーが提供する公式リポジトリからインストールおよび保守されるデータベースエンジン（RDBMS）やオペレーティングシステムには、暗号化サポートが実装されていない古いバージョンのデータベースソフトウェアが付属していることがよくあります。たとえば、RHEL7ベースのシステムでのPostgreSQL9.2や暗号化サポートのないMariaDB5.5などです。

en-us	### Reserved ID value "0"  Reserved ID value "0" can be used to filter elements and to remove referenced objects. For example, to remove a referenced proxy from a host, proxy\_hostid should be set to 0 ("proxy\_hostid": "0") or to filter hosts monitored by server option proxyids should be set to 0 ("proxyids": "0").
ja	### 予約ID値 "0"  予約ID値 "0 "は、要素のフィルタリングや参照されているオブジェクトの削除に使用することができます。<br> 例えば、ホストから参照されている proxy を削除するには、proxy\_hostid を0に設定し（"proxy\_hostid": "0"）、<br> サーバオプションの proxyids で監視するホストをフィルターするには、proxyids を0に設定する必要があります（"proxyids": "0"）

en-us	#### Resize a map  Change the size of the map to 1200x1200 pixels.  Request:  ```json {     "jsonrpc": "2.0",     "method": "map.update",     "params": {         "sysmapid": "8",         "width": 1200,         "height": 1200     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "sysmapids": [             "8"         ]     },     "id": 1 } ```
ja	#### マップのサイズ変更  マップのサイズを1200x1200ピクセルに変更  Request:  ```json {     "jsonrpc": "2.0",     "method": "map.update",     "params": {         "sysmapid": "8",         "width": 1200,         "height": 1200     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "sysmapids": [             "8"         ]     },     "id": 1 } ```

en-us	 #### Result processing for Prometheus pattern  A Prometheus pattern step in the preprocessing can produce a result where multiple  lines are matched. To handle this situation, a new result processing [parameter](/manual/config/items/itemtypes/prometheus) has been added to the Prometheus pattern preprocessing step that allows to aggregate the data of potentially multiple matching lines by introducing functions such as sum, min, max, avg, and count.
ja	 #### Prometheusパターンに対する結果処理  保存前処理でPrometheusパターンのステップを実行すると、複数の行がマッチすることがあります。この状況に対応するために、新しい結果処理 [パラメータ](/manual/config/items/itemtypes/prometheus) がPrometheusパターンの保存前処理のステップに追加されました。sum、min、max、avg、countなどの関数を導入することで、複数のマッチング行のデータを集約することができます。

en-us	#### Retrieve alerts by action ID  Retrieve all alerts generated by action "3".  Request:  ```json {     "jsonrpc": "2.0",     "method": "alert.get",     "params": {         "output": "extend",         "actionids": "3"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "alertid": "1",             "actionid": "3",             "eventid": "21243",             "userid": "1",             "clock": "1362128008",             "mediatypeid": "1",             "sendto": "support@company.com",             "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ",             "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",             "status": "0",             "retries": "3",             "error": "",             "esc_step": "1",             "alerttype": "0",             "p_eventid": "0",             "acknowledgeid": "0"         }     ],     "id": 1 } ```
ja	#### アクションIDでアラートを取得する  アクション"3"によって生成されたすべてのアラートを取得します。  リクエスト:  ```json {     "jsonrpc": "2.0",     "method": "alert.get",     "params": {         "output": "extend",         "actionids": "3"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス:  ```json {     "jsonrpc": "2.0",     "result": [         {             "alertid": "1",             "actionid": "3",             "eventid": "21243",             "userid": "1",             "clock": "1362128008",             "mediatypeid": "1",             "sendto": "support@company.com",             "subject": "PROBLEM: Zabbix agent on Linux server is unreachable for 5 minutes: ",             "message": "Trigger: Zabbix agent on Linux server is unreachable for 5 minutes: \nTrigger status: PROBLEM\nTrigger severity: Not classified",             "status": "0",             "retries": "3",             "error": "",             "esc_step": "1",             "alerttype": "0",             "p_eventid": "0",             "acknowledgeid": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieve all proxies  Retrieve all configured proxies and their interfaces.  Request:  ```json {     "jsonrpc": "2.0",     "method": "proxy.get",     "params": {         "output": "extend",         "selectInterface": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "host": "Active proxy",             "status": "5",             "lastaccess": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "proxyid": "30091",             "interface": []         },         {             "host": "Passive proxy",             "status": "6",             "lastaccess": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "proxyid": "30092",             "interface": {                 "interfaceid": "30109",                 "hostid": "30092",                 "useip": "1",                 "ip": "127.0.0.1",                 "dns": "",                 "port": "10051"             ]         }     ],     "id": 1 } ```
ja	#### すべてのプロキシを取得する  構成済みのすべてのプロキシとそのインターフェースを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "proxy.get",     "params": {         "output": "extend",         "selectInterface": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "host": "Active proxy",             "status": "5",             "lastaccess": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "proxyid": "30091",             "interface": []         },         {             "host": "Passive proxy",             "status": "6",             "lastaccess": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "proxy_address": "",             "auto_compress": "0",             "proxyid": "30092",             "interface": {                 "interfaceid": "30109",                 "hostid": "30092",                 "useip": "1",                 "ip": "127.0.0.1",                 "dns": "",                 "port": "10051"             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve all scripts  Retrieve all configured scripts.  Request:  ```json {     "jsonrpc": "2.0",     "method": "script.get",     "params": {         "output": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [             {             "scriptid": "1",             "name": "Ping",             "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "parameters": []         },         {             "scriptid": "2",             "name": "Traceroute",             "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "parameters": []         },         {             "scriptid": "3",             "name": "Detect operating system",             "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "parameters": []         },         {             "scriptid": "4",             "name": "Webhook",             "command": "try {\n var request = new HttpRequest(),\n response,\n data;\n\n request.addHeader('Content-Type: application/json');\n\n response = request.post('https://localhost/post', value);\n\n try {\n response = JSON.parse(response);\n }\n catch (error) {\n response = null;\n }\n\n if (request.getStatus() !== 200 || !('data' in response)) {\n throw 'Unexpected response.';\n }\n\n data = JSON.stringify(response.data);\n\n Zabbix.Log(3, '[Webhook Script] response data: ' + data);\n\n return data;\n}\ncatch (error) {\n Zabbix.Log(3, '[Webhook Script] script execution failed: ' + error);\n throw 'Execution failed: ' + error + '.';\n}",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "5",             "execute_on": "1",             "timeout": "30s",             "parameters": [                 {                     "name": "token",                     "value": "{$WEBHOOK.TOKEN}"                 },                 {                     "name": "host",                     "value": "{HOST.HOST}"                 },                 {                     "name": "v",                     "value": "2.2"                 }             ]         }     ],     "id": 1 } ```
ja	#### すべてのスクリプトを取得する  構成済みのすべてのスクリプトを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "script.get",     "params": {         "output": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [             {             "scriptid": "1",             "name": "Ping",             "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "parameters": []         },         {             "scriptid": "2",             "name": "Traceroute",             "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "0",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "parameters": []         },         {             "scriptid": "3",             "name": "Detect operating system",             "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "0",             "execute_on": "1",             "timeout": "30s",             "parameters": []         },         {             "scriptid": "4",             "name": "Webhook",             "command": "try {\n var request = new HttpRequest(),\n response,\n data;\n\n request.addHeader('Content-Type: application/json');\n\n response = request.post('https://localhost/post', value);\n\n try {\n response = JSON.parse(response);\n }\n catch (error) {\n response = null;\n }\n\n if (request.getStatus() !== 200 || !('data' in response)) {\n throw 'Unexpected response.';\n }\n\n data = JSON.stringify(response.data);\n\n Zabbix.Log(3, '[Webhook Script] response data: ' + data);\n\n return data;\n}\ncatch (error) {\n Zabbix.Log(3, '[Webhook Script] script execution failed: ' + error);\n throw 'Execution failed: ' + error + '.';\n}",             "host_access": "2",             "usrgrpid": "7",             "groupid": "0",             "description": "",             "confirmation": "",             "type": "5",             "execute_on": "1",             "timeout": "30s",             "parameters": [                 {                     "name": "token",                     "value": "{$WEBHOOK.TOKEN}"                 },                 {                     "name": "host",                     "value": "{HOST.HOST}"                 },                 {                     "name": "v",                     "value": "2.2"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve a map  Retrieve all data about map "3".  Request:  ```json {     "jsonrpc": "2.0",     "method": "map.get",     "params": {         "output": "extend",         "selectSelements": "extend",         "selectLinks": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "selectShapes": "extend",         "selectLines": "extend",         "sysmapids": "3"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "selements": [                 {                     "selementid": "10",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Zabbix server",                     "label_location": "3",                     "x": "11",                     "y": "141",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "tags": [                         {                             "tag": "service",                             "value": "mysqld",                             "operator": "0"                         }                     ],                     "viewtype": "0",                     "use_iconmap": "1",                     "urls": [],                     "elements": []                 },                 {                     "selementid": "11",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Web server",                     "label_location": "3",                     "x": "211",                     "y": "191",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "1",                     "tags": [],                     "urls": [],                     "elements": []                 },                 {                     "selementid": "12",                     "sysmapid": "3",                     "elementtype": "0",                     "evaltype": "0",                     "iconid_off": "185",                     "iconid_on": "0",                     "label": "{HOST.NAME}\r\n{HOST.CONN}",                     "label_location": "0",                     "x": "111",                     "y": "61",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "0",                     "tags": [],                     "urls": [],                     "elements": [                         {                             "hostid": "10084"                         }                     ]                 }             ],             "links": [                 {                     "linkid": "23",                     "sysmapid": "3",                     "selementid1": "10",                     "selementid2": "11",                     "drawtype": "0",                     "color": "00CC00",                     "label": "",                     "linktriggers": []                 }             ],             "users": [                 {                     "sysmapuserid": "1",                     "userid": "2",                     "permission": "2"                 }             ],             "userGroups": [                 {                     "sysmapusrgrpid": "1",                     "usrgrpid": "7",                     "permission": "2"                 }             ],             "shapes":[                   {                       "sysmap_shapeid":"1",                     "type":"0",                     "x":"0",                     "y":"0",                     "width":"680",                     "height":"15",                     "text":"{MAP.NAME}",                     "font":"9",                     "font_size":"11",                     "font_color":"000000",                     "text_halign":"0",                     "text_valign":"0",                     "border_type":"0",                     "border_width":"0",                     "border_color":"000000",                     "background_color":"",                     "zindex":"0"                 }             ],             "lines":[                 {                     "sysmap_shapeid":"2",                     "x1": 30,                     "y1": 10,                     "x2": 100,                     "y2": 50,                     "line_type": 1,                     "line_width": 10,                     "line_color": "009900",                     "zindex":"1"                 }             ],             "sysmapid": "3",             "name": "Local network",             "width": "400",             "height": "400",             "backgroundid": "0",             "label_type": "2",             "label_location": "3",             "highlight": "1",             "expandproblem": "1",             "markelements": "0",             "show_unack": "0",             "grid_size": "50",             "grid_show": "1",             "grid_align": "1",             "label_format": "0",             "label_type_host": "2",             "label_type_hostgroup": "2",             "label_type_trigger": "2",             "label_type_map": "2",             "label_type_image": "2",             "label_string_host": "",             "label_string_hostgroup": "",             "label_string_trigger": "",             "label_string_map": "",             "label_string_image": "",             "iconmapid": "0",             "expand_macros": "0",             "severity_min": "0",             "userid": "1",             "private": "1",             "show_suppressed": "1"         }     ],     "id": 1 } ```
ja	#### マップを取得する  マップ "3" に関するすべてのデータを取得します。  リクエスト:  ```json {     "jsonrpc": "2.0",     "method": "map.get",     "params": {         "output": "extend",         "selectSelements": "extend",         "selectLinks": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "selectShapes": "extend",         "selectLines": "extend",         "sysmapids": "3"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス:  ```json {     "jsonrpc": "2.0",     "result": [         {             "selements": [                 {                     "selementid": "10",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Zabbix server",                     "label_location": "3",                     "x": "11",                     "y": "141",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "tags": [                         {                             "tag": "service",                             "value": "mysqld",                             "operator": "0"                         }                     ],                     "viewtype": "0",                     "use_iconmap": "1",                     "urls": [],                     "elements": []                 },                 {                     "selementid": "11",                     "sysmapid": "3",                     "elementtype": "4",                     "evaltype": "0",                     "iconid_off": "1",                     "iconid_on": "0",                     "label": "Web server",                     "label_location": "3",                     "x": "211",                     "y": "191",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "1",                     "tags": [],                     "urls": [],                     "elements": []                 },                 {                     "selementid": "12",                     "sysmapid": "3",                     "elementtype": "0",                     "evaltype": "0",                     "iconid_off": "185",                     "iconid_on": "0",                     "label": "{HOST.NAME}\r\n{HOST.CONN}",                     "label_location": "0",                     "x": "111",                     "y": "61",                     "iconid_disabled": "0",                     "iconid_maintenance": "0",                     "elementsubtype": "0",                     "areatype": "0",                     "width": "200",                     "height": "200",                     "viewtype": "0",                     "use_iconmap": "0",                     "tags": [],                     "urls": [],                     "elements": [                         {                             "hostid": "10084"                         }                     ]                 }             ],             "links": [                 {                     "linkid": "23",                     "sysmapid": "3",                     "selementid1": "10",                     "selementid2": "11",                     "drawtype": "0",                     "color": "00CC00",                     "label": "",                     "linktriggers": []                 }             ],             "users": [                 {                     "sysmapuserid": "1",                     "userid": "2",                     "permission": "2"                 }             ],             "userGroups": [                 {                     "sysmapusrgrpid": "1",                     "usrgrpid": "7",                     "permission": "2"                 }             ],             "shapes":[                   {                       "sysmap_shapeid":"1",                     "type":"0",                     "x":"0",                     "y":"0",                     "width":"680",                     "height":"15",                     "text":"{MAP.NAME}",                     "font":"9",                     "font_size":"11",                     "font_color":"000000",                     "text_halign":"0",                     "text_valign":"0",                     "border_type":"0",                     "border_width":"0",                     "border_color":"000000",                     "background_color":"",                     "zindex":"0"                 }             ],             "lines":[                 {                     "sysmap_shapeid":"2",                     "x1": 30,                     "y1": 10,                     "x2": 100,                     "y2": 50,                     "line_type": 1,                     "line_width": 10,                     "line_color": "009900",                     "zindex":"1"                 }             ],             "sysmapid": "3",             "name": "Local network",             "width": "400",             "height": "400",             "backgroundid": "0",             "label_type": "2",             "label_location": "3",             "highlight": "1",             "expandproblem": "1",             "markelements": "0",             "show_unack": "0",             "grid_size": "50",             "grid_show": "1",             "grid_align": "1",             "label_format": "0",             "label_type_host": "2",             "label_type_hostgroup": "2",             "label_type_trigger": "2",             "label_type_map": "2",             "label_type_image": "2",             "label_string_host": "",             "label_string_hostgroup": "",             "label_string_trigger": "",             "label_string_map": "",             "label_string_image": "",             "iconmapid": "0",             "expand_macros": "0",             "severity_min": "0",             "userid": "1",             "private": "1",             "show_suppressed": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieve an icon map  Retrieve all data about icon map "3".  Request:  ```json {     "jsonrpc": "2.0",     "method": "iconmap.get",     "params": {         "iconmapids": "3",         "output": "extend",         "selectMappings": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mappings": [                 {                     "iconmappingid": "3",                     "iconmapid": "3",                     "iconid": "6",                     "inventory_link": "1",                     "expression": "server",                     "sortorder": "0"                 },                 {                     "iconmappingid": "4",                     "iconmapid": "3",                     "iconid": "10",                     "inventory_link": "1",                     "expression": "switch",                     "sortorder": "1"                 }             ],             "iconmapid": "3",             "name": "Host type icons",             "default_iconid": "2"         }     ],     "id": 1 } ```
ja	#### アイコンマップを取得する  アイコンマップ"3"に関するすべてのデータを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "iconmap.get",     "params": {         "iconmapids": "3",         "output": "extend",         "selectMappings": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mappings": [                 {                     "iconmappingid": "3",                     "iconmapid": "3",                     "iconid": "6",                     "inventory_link": "1",                     "expression": "server",                     "sortorder": "0"                 },                 {                     "iconmappingid": "4",                     "iconmapid": "3",                     "iconid": "10",                     "inventory_link": "1",                     "expression": "switch",                     "sortorder": "1"                 }             ],             "iconmapid": "3",             "name": "Host type icons",             "default_iconid": "2"         }     ],     "id": 1 } ```

en-us	#### Retrieve an image  Retrieve all data for image with ID "2".  Request:  ```json {     "jsonrpc": "2.0",     "method": "image.get",     "params": {         "output": "extend",         "select_image": true,         "imageids": "2"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "imageid": "2",             "imagetype": "1",             "name": "Cloud_(24)",             "image": "iVBORw0KGgoAAAANSUhEUgAAABgAAAANCAYAAACzbK7QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACmAAAApgBNtNH3wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIcSURBVDjLrZLbSxRRHMdPKiEiRQ89CD0s+N5j9BIMEf4Hg/jWexD2ZEXQbC9tWUFZimtLhswuZiVujK1UJmYXW9PaCUdtb83enL3P7s6ss5f5dc7EUsmqkPuFH3M4/Ob7+V0OAgC0UyDENFEU03rh1uNOs/lFG75o2i2/rkd9Y3Tgyj3HiaezbukdH9A/rP4E9vWi0u+Y4fuGnMf3DRgYc3Z/84YrQSkD3mgKhFAC+KAEK74Y2Lj3MjPoOokQ3Xyx/1GHeXCifbfO6lRPH/wi+AvZQhGSsgKxdB5CCRkCGPbDgMXBMbukTc4vK5/WRHizsq7fZl2LFuvE4T0BZDTXHtgv4TNUqlUolsqQL2qQwbDEXzBBTIJ7I4y/cfAENmHZF4XrY9Mc+X9HAFmoyXS2ddy1IOg6/KNyBcM0DFP/wFZFCcOy4N9Mw0YkCTOfhdL5AfZQXQBFn2t/ODXHC8FYVcoWjNEQ03qqwTJ5FdI44jg/msoB2Zd5ZKq3q6evA1FUS60bYyyj3AJf3V72HiLZJQxTtRLk1C2IYEg4mTNg63hPd1mOJd7Ict911OMNlWEf0nFxpCt16zcshTuLpGSwDDuPIfv0xzNyQYVGicC0cgUUDLM6Xp02lvvW/V2EBssnxlSGmWsxljw0znV9XfPLjTCW84r+cn7Jc8c2eWrbM6Wbe6/aTJbhJ/TNkWc9/xXW592Xb9iPkKnUfH8BKdLgFy0lDyQAAAAASUVORK5CYII="         }     ],     "id": 1 } ```
ja	#### 画像を取得する  ID"2"の画像のすべてのデータを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "image.get",     "params": {         "output": "extend",         "select_image": true,         "imageids": "2"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "imageid": "2",             "imagetype": "1",             "name": "Cloud_(24)",             "image": "iVBORw0KGgoAAAANSUhEUgAAABgAAAANCAYAAACzbK7QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACmAAAApgBNtNH3wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIcSURBVDjLrZLbSxRRHMdPKiEiRQ89CD0s+N5j9BIMEf4Hg/jWexD2ZEXQbC9tWUFZimtLhswuZiVujK1UJmYXW9PaCUdtb83enL3P7s6ss5f5dc7EUsmqkPuFH3M4/Ob7+V0OAgC0UyDENFEU03rh1uNOs/lFG75o2i2/rkd9Y3Tgyj3HiaezbukdH9A/rP4E9vWi0u+Y4fuGnMf3DRgYc3Z/84YrQSkD3mgKhFAC+KAEK74Y2Lj3MjPoOokQ3Xyx/1GHeXCifbfO6lRPH/wi+AvZQhGSsgKxdB5CCRkCGPbDgMXBMbukTc4vK5/WRHizsq7fZl2LFuvE4T0BZDTXHtgv4TNUqlUolsqQL2qQwbDEXzBBTIJ7I4y/cfAENmHZF4XrY9Mc+X9HAFmoyXS2ddy1IOg6/KNyBcM0DFP/wFZFCcOy4N9Mw0YkCTOfhdL5AfZQXQBFn2t/ODXHC8FYVcoWjNEQ03qqwTJ5FdI44jg/msoB2Zd5ZKq3q6evA1FUS60bYyyj3AJf3V72HiLZJQxTtRLk1C2IYEg4mTNg63hPd1mOJd7Ict911OMNlWEf0nFxpCt16zcshTuLpGSwDDuPIfv0xzNyQYVGicC0cgUUDLM6Xp02lvvW/V2EBssnxlSGmWsxljw0znV9XfPLjTCW84r+cn7Jc8c2eWrbM6Wbe6/aTJbhJ/TNkWc9/xXW592Xb9iPkKnUfH8BKdLgFy0lDyQAAAAASUVORK5CYII="         }     ],     "id": 1 } ```

en-us	#### Retrieve an token  Retrieve all data for token with ID "2".  Request:  ```json {     "jsonrpc": "2.0",     "method": "token.get",     "params": {         "output": "extend",         "tokenids": "2"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "tokenid": "1",             "name": "The Token",             "description": "",             "userid": "1",             "lastaccess": "0",             "status": "0",             "expires_at": "1609406220",             "created_at": "1611239454",             "creator_userid": "1"         }     ],     "id": 1 } ```
ja	#### トークンを取得する  ID"2"のトークンのデータをすべて取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "token.get",     "params": {         "output": "extend",         "tokenids": "2"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "tokenid": "1",             "name": "The Token",             "description": "",             "userid": "1",             "lastaccess": "0",             "status": "0",             "expires_at": "1609406220",             "created_at": "1611239454",             "creator_userid": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieve audit log  Retrieve two latest audit log records.  Request:  ```json {     "jsonrpc": "2.0",     "method": "auditlog.get",     "params": {         "output": "extend",         "sortfield": "clock",         "sortorder": "DESC",         "limit": 2     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "auditid": "cksstgfam0001yhdcc41y20q2",             "userid": "1",             "username": "Admin",             "clock": "1629975715",             "ip": "127.0.0.1",             "action": "1",             "resourcetype": "0",             "resourceid": "0",             "resourcename": "Jim",             "recordsetid": "cksstgfal0000yhdcso67ondl",             "details": "{\"user.name\":[\"update\",\"Jim\",\"\"],\"user.medias[37]\":[\"add\"],\"user.medias[37].\":[\"add\"],\"user.medias[37].mediatypeid\":[\"add\",\"1\"],\"user.medias[37].sendto\":[\"add\",\"support123@company.com\"]}"                      },         {             "auditid": "ckssofl0p0001yhdcqxclsg8r",             "userid": "1",             "username": "Admin",             "clock": "1629967278",             "ip": "127.0.0.1",             "action": "0",             "resourcetype": "0",             "resourceid": "20",             "resourcename": "John",             "recordsetid": "ckssofl0p0000yhdcpxyo1jgo",             "details": "{\"user.username\":[\"add\",\"John\"], \"user.userid:\":[\"add\",\"20\"],\"user.usrgrps[28]\":[\"add\"],\"user.usrgrps[28].usrgrpid\":[\"add\", \"7\"]}"         }     ],     "id": 1 } ```
ja	#### 監査ログの取得  最新の監査ログレコードを2件取得します。  リクエスト:  ```json {     "jsonrpc": "2.0",     "method": "auditlog.get",     "params": {         "output": "extend",         "sortfield": "clock",         "sortorder": "DESC",         "limit": 2     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス:  ```json {     "jsonrpc": "2.0",     "result": [         {             "auditid": "cksstgfam0001yhdcc41y20q2",             "userid": "1",             "username": "Admin",             "clock": "1629975715",             "ip": "127.0.0.1",             "action": "1",             "resourcetype": "0",             "resourceid": "0",             "resourcename": "Jim",             "recordsetid": "cksstgfal0000yhdcso67ondl",             "details": "{\"user.name\":[\"update\",\"Jim\",\"\"],\"user.medias[37]\":[\"add\"],\"user.medias[37].\":[\"add\"],\"user.medias[37].mediatypeid\":[\"add\",\"1\"],\"user.medias[37].sendto\":[\"add\",\"support123@company.com\"]}"                      },         {             "auditid": "ckssofl0p0001yhdcqxclsg8r",             "userid": "1",             "username": "Admin",             "clock": "1629967278",             "ip": "127.0.0.1",             "action": "0",             "resourcetype": "0",             "resourceid": "20",             "resourcename": "John",             "recordsetid": "ckssofl0p0000yhdcpxyo1jgo",             "details": "{\"user.username\":[\"add\",\"John\"], \"user.userid:\":[\"add\",\"20\"],\"user.usrgrps[28]\":[\"add\"],\"user.usrgrps[28].usrgrpid\":[\"add\", \"7\"]}"         }     ],     "id": 1 } ```

en-us	#### Retrieve discovery actions  Retrieve all configured discovery actions together with action conditions and operations. The filter uses the "and" evaluation type, so the `formula` property is empty and `eval_formula` is generated automatically.  Request:  ```json {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectFilter": "extend",         "filter": {             "eventsource": 1         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "actionid": "2",             "name": "Auto discovery. Linux servers.",             "eventsource": "1",             "status": "1",             "esc_period": "0s",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "conditiontype": "10",                         "operator": "0",                         "value": "0",                         "value2": "",                         "formulaid": "B"                     },                     {                         "conditiontype": "8",                         "operator": "0",                         "value": "9",                         "value2": "",                         "formulaid": "C"                     },                     {                         "conditiontype": "12",                         "operator": "2",                         "value": "Linux",                         "value2": "",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A and B and C"             },             "operations": [                 {                     "operationid": "1",                     "actionid": "2",                     "operationtype": "6",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "optemplate": [                         {                             "templateid": "10001"                         }                     ]                 },                 {                     "operationid": "2",                     "actionid": "2",                     "operationtype": "4",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opgroup": [                         {                             "groupid": "2"                         }                     ]                 }             ]         }     ],     "id": 1 } ```
ja	#### ディスカバリアクションの取得  設定されたすべてのディスカバリアクションを、アクションの条件と操作とともに取得します。このフィルターは"and"評価タイプを使用するため、`formula`プロパティは空で、`eval_formula`が自動的に生成されます。  リクエスト :  ``` {.java} {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend"         "selectFilter": "extend",         "filter": {             "eventsource": 1         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ``` {.java} {     "jsonrpc": "2.0",     "result": [         {             "actionid": "2",             "name": "Auto discovery. Linux servers.",             "eventsource": "1",             "status": "1",             "esc_period": "0s",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [                     {                         "conditiontype": "10",                         "operator": "0",                         "value": "0",                         "value2": "",                         "formulaid": "B"                     },                     {                         "conditiontype": "8",                         "operator": "0",                         "value": "9",                         "value2": "",                         "formulaid": "C"                     },                     {                         "conditiontype": "12",                         "operator": "2",                         "value": "Linux",                         "value2": "",                         "formulaid": "A"                     }                 ],                 "eval_formula": "A and B and C"             },             "operations": [                 {                     "operationid": "1",                     "actionid": "2",                     "operationtype": "6",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "optemplate": [                         {                             "templateid": "10001"                         }                     ]                 },                 {                     "operationid": "2",                     "actionid": "2",                     "operationtype": "4",                     "esc_period": "0s",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opgroup": [                         {                             "groupid": "2"                         }                     ]                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve host interfaces  Retrieve all data about the interfaces used by host "30057."  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.get",     "params": {         "output": "extend",         "hostids": "30057"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "interfaceid": "50039",             "hostid": "30057",             "main": "1",             "type": "1",             "useip": "1",             "ip": "::1",             "dns": "",             "port": "10050",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": []         },         {             "interfaceid": "55082",             "hostid": "30057",             "main": "0",             "type": "1",             "useip": "1",             "ip": "127.0.0.1",             "dns": "",             "port": "10051",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": {                 "version": "2",                 "bulk": "0",                 "community": "{$SNMP_COMMUNITY}"             }         }     ],     "id": 1 } ```
ja	#### ホストインターフェースの取得  ホスト"30057"が使用するインターフェースに関するすべてのデータを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostinterface.get",     "params": {         "output": "extend",         "hostids": "30057"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "interfaceid": "50039",             "hostid": "30057",             "main": "1",             "type": "1",             "useip": "1",             "ip": "::1",             "dns": "",             "port": "10050",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": []         },         {             "interfaceid": "55082",             "hostid": "30057",             "main": "0",             "type": "1",             "useip": "1",             "ip": "127.0.0.1",             "dns": "",             "port": "10051",             "available": "0",             "error": "",             "errors_from": "0",             "disable_until": "0",             "details": {                 "version": "2",                 "bulk": "0",                 "community": "{$SNMP_COMMUNITY}"             }         }     ],     "id": 1 } ```

en-us	#### Retrieve LLD rule by URL  Retrieve LLD rule for host by rule URL field value. Only exact match of URL string defined for LLD rule is supported.  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "hostids": "10257",         "filter": {             "type": 19,             "url": "http://127.0.0.1/discoverer.php"         }     },     "id": 39,     "auth": "d678e0b85688ce578ff061bd29a20d3b" } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "28336",             "type": "19",             "snmp_oid": "",             "hostid": "10257",             "name": "API HTTP agent",             "key_": "api_discovery_rule",             "delay": "5s",             "status": "0",             "trapper_hosts": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "5",             "description": "",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "mode": "json"                 },                 {                     "elements": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": {                 "X-Type": "api",                 "Authorization": "Bearer mF_A.B5f-2.1JcM"             },             "retrieve_mode": "0",             "request_method": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 39 } ```
ja	#### URLでLLDルールを取得する  ルールURLフィールド値によってホストのLLDルールを取得します。 LLDルールに定義されたURL文字列の完全一致のみがサポートされます。  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "hostids": "10257",         "filter": {             "type": 19,             "url": "http://127.0.0.1/discoverer.php"         }     },     "id": 39,     "auth": "d678e0b85688ce578ff061bd29a20d3b" } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "28336",             "type": "19",             "snmp_oid": "",             "hostid": "10257",             "name": "API HTTP agent",             "key_": "api_discovery_rule",             "delay": "5s",             "status": "0",             "trapper_hosts": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "5",             "description": "",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "http://127.0.0.1/discoverer.php",             "query_fields": [                 {                     "mode": "json"                 },                 {                     "elements": "2"                 }             ],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": {                 "X-Type": "api",                 "Authorization": "Bearer mF_A.B5f-2.1JcM"             },             "retrieve_mode": "0",             "request_method": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 39 } ```

en-us	#### Retrieve LLD rule with overrides  Retrieve one LLD rule that has various override settings.  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "itemids": "30980",         "selectOverrides": ["name", "step", "stop", "filter", "operations"]     },     "id": 39,     "auth": "d678e0b85688ce578ff061bd29a20d3b" } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "name": "Discover database host",             "overrides": [                 {                     "name": "Discover MySQL host",                     "step": "1",                     "stop": "1",                     "filter": {                         "evaltype": "2",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mysqld\\.service$",                                 "formulaid": "A"                             },                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mariadb\\.service$",                                 "formulaid": "B"                             }                         ],                         "eval_formula": "A or B"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "MySQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10170"                                 }                             ]                         }                     ]                 },                 {                     "name": "Discover PostgreSQL host",                     "step": "2",                     "stop": "1",                     "filter": {                         "evaltype": "0",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^postgresql\\.service$",                                 "formulaid": "A"                             }                         ],                         "eval_formula": "A"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "PostgreSQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10263"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 39 } ```
ja	#### オーバーライドを使用してLLDルールを取得する  さまざまなオーバーライド設定を持つ1つのLLDルールを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "itemids": "30980",         "selectOverrides": ["name", "step", "stop", "filter", "operations"]     },     "id": 39,     "auth": "d678e0b85688ce578ff061bd29a20d3b" } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "name": "Discover database host",             "overrides": [                 {                     "name": "Discover MySQL host",                     "step": "1",                     "stop": "1",                     "filter": {                         "evaltype": "2",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mysqld\\.service$",                                 "formulaid": "A"                             },                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^mariadb\\.service$",                                 "formulaid": "B"                             }                         ],                         "eval_formula": "A or B"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "MySQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10170"                                 }                             ]                         }                     ]                 },                 {                     "name": "Discover PostgreSQL host",                     "step": "2",                     "stop": "1",                     "filter": {                         "evaltype": "0",                         "formula": "",                         "conditions": [                             {                                 "macro": "{#UNIT.NAME}",                                 "operator": "8",                                 "value": "^postgresql\\.service$",                                 "formulaid": "A"                             }                         ],                         "eval_formula": "A"                     },                     "operations": [                         {                             "operationobject": "3",                             "operator": "2",                             "value": "Database host",                             "opstatus": {                                 "status": "0"                             },                             "optag": [                                 {                                     "tag": "Database",                                     "value": "PostgreSQL"                                 }                             ],                             "optemplate": [                                 {                                     "templateid": "10263"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 39 } ```

en-us	#### Retrieve scripts by host IDs  Retrieve all scripts available on hosts "30079" and "30073".  Request:  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [         "30079",         "30073"     ],     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "30079": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             }         ],         "30073": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             }         ]     },     "id": 1 } ```
ja	#### ホストIDでスクリプトを取得する  ホスト"30079"および"30073"で使用可能なすべてのスクリプトを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "script.getscriptsbyhosts",     "params": [         "30079",         "30073"     ],     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "30079": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             }         ],         "30073": [             {                 "scriptid": "3",                 "name": "Detect operating system",                 "command": "sudo /usr/bin/nmap -O {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "7",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "1",                 "name": "Ping",                 "command": "/bin/ping -c 3 {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             },             {                 "scriptid": "2",                 "name": "Traceroute",                 "command": "/usr/bin/traceroute {HOST.CONN} 2>&1",                 "host_access": "2",                 "usrgrpid": "0",                 "groupid": "0",                 "description": "",                 "confirmation": "",                 "type": "0",                 "execute_on": "1",                 "hostid": "10001"             }         ]     },     "id": 1 } ```

en-us	#### Retrieve task by ID  Retrieve all the data about the task with the ID "1".  Request:  ```json {     "jsonrpc": "2.0",     "method": "task.get",     "params": {         "output": "extend",         "taskids": "1"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "taskid": "1",             "type": "7",             "status": "3",             "clock": "1601039076",             "ttl": "3600",             "proxy_hostid": null,             "request": {                 "alerting": {                     "stats": [                         "alerts"                     ],                     "top": {                         "media.alerts": 10                     }                 },                 "lld": {                     "stats": "extend",                     "top": {                         "values": 5                     }                 }             },             "result": {                 "data": {                     "alerting": {                         "alerts": 0,                         "top": {                             "media.alerts": []                         },                         "time": 0.000663                     },                     "lld": {                         "rules": 0,                         "values": 0,                         "top": {                             "values": []                         },                         "time": 0.000442                     }                 },                 "status": "0"             }         }     ],     "id": 1 } ```
ja	#### IDでタスクを取得  ID"1"のタスクに関するすべてのデータを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "task.get",     "params": {         "output": "extend",         "taskids": "1"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "taskid": "1",             "type": "7",             "status": "3",             "clock": "1601039076",             "ttl": "3600",             "proxy_hostid": null,             "request": {                 "alerting": {                     "stats": [                         "alerts"                     ],                     "top": {                         "media.alerts": 10                     }                 },                 "lld": {                     "stats": "extend",                     "top": {                         "values": 5                     }                 }             },             "result": {                 "data": {                     "alerting": {                         "alerts": 0,                         "top": {                             "media.alerts": []                         },                         "time": 0.000663                     },                     "lld": {                         "rules": 0,                         "values": 0,                         "top": {                             "values": []                         },                         "time": 0.000442                     }                 },                 "status": "0"             }         }     ],     "id": 1 } ```

en-us	#### Retrieve trigger actions  Retrieve all configured trigger actions together with action conditions and operations.  Request:  ```json {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectRecoveryOperations": "extend",         "selectUpdateOperations": "extend",         "selectFilter": "extend",         "filter": {             "eventsource": 0         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "actionid": "3",             "name": "Report problems to Zabbix administrators",             "eventsource": "0",             "status": "1",             "esc_period": "1h",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [],                 "eval_formula": ""             },             "operations": [                 {                     "operationid": "3",                     "actionid": "3",                     "operationtype": "0",                     "esc_period": "0",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opmessage": [                         {                             "default_msg": "1",                             "subject": "",                             "message": "",                             "mediatypeid" => "0"                         }                     ],                     "opmessage_grp": [                         {                             "usrgrpid": "7"                         }                     ]                 }             ],             "recovery_operations": [                 {                     "operationid": "7",                     "actionid": "3",                     "operationtype": "11",                     "evaltype": "0",                     "opconditions": [],                     "opmessage": {                         "default_msg": "0",                         "subject": "{TRIGGER.STATUS}: {TRIGGER.NAME}",                         "message": "Trigger: {TRIGGER.NAME}\r\nTrigger status: {TRIGGER.STATUS}\r\nTrigger severity: {TRIGGER.SEVERITY}\r\nTrigger URL: {TRIGGER.URL}\r\n\r\nItem values:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}\r\n\r\nOriginal event ID: {EVENT.ID}",                         "mediatypeid": "0"                     }                 }             ],             "update_operations": [                 {                     "operationid": "31",                     "operationtype": "12",                     "evaltype": "0",                     "opmessage": {                         "default_msg": "1",                         "subject": "",                         "message": "",                         "mediatypeid": "0"                     }                 },                 {                     "operationid": "32",                     "operationtype": "0",                     "evaltype": "0",                     "opmessage": {                         "default_msg": "0",                         "subject": "Updated: {TRIGGER.NAME}",                         "message": "{USER.FULLNAME} updated problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME} with the following message:\r\n{EVENT.UPDATE.MESSAGE}\r\n\r\nCurrent problem status is {EVENT.STATUS}",                         "mediatypeid": "1"                     },                     "opmessage_grp": [                         {                             "usrgrpid": "7"                         }                     ],                     "opmessage_usr": []                 },                 {                     "operationid": "33",                     "operationtype": "1",                     "evaltype": "0",                     "opcommand": {                         "scriptid": "3"                     },                     "opcommand_hst": [                         {                             "hostid": "10084"                         }                     ],                     "opcommand_grp": []                 }             ]         }     ],     "id": 1 } ```
ja	#### トリガーアクションの取得  設定されたすべてのトリガーアクションを、アクションの実行条件および実行内容と共に取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "action.get",     "params": {         "output": "extend",         "selectOperations": "extend",         "selectRecoveryOperations": "extend",         "selectUpdateOperations": "extend",         "selectFilter": "extend",         "filter": {             "eventsource": 0         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "actionid": "3",             "name": "Report problems to Zabbix administrators",             "eventsource": "0",             "status": "1",             "esc_period": "1h",             "pause_suppressed": "1",             "filter": {                 "evaltype": "0",                 "formula": "",                 "conditions": [],                 "eval_formula": ""             },             "operations": [                 {                     "operationid": "3",                     "actionid": "3",                     "operationtype": "0",                     "esc_period": "0",                     "esc_step_from": "1",                     "esc_step_to": "1",                     "evaltype": "0",                     "opconditions": [],                     "opmessage": [                         {                             "default_msg": "1",                             "subject": "",                             "message": "",                             "mediatypeid" => "0"                         }                     ],                     "opmessage_grp": [                         {                             "usrgrpid": "7"                         }                     ]                 }             ],             "recovery_operations": [                 {                     "operationid": "7",                     "actionid": "3",                     "operationtype": "11",                     "evaltype": "0",                     "opconditions": [],                     "opmessage": {                         "default_msg": "0",                         "subject": "{TRIGGER.STATUS}: {TRIGGER.NAME}",                         "message": "Trigger: {TRIGGER.NAME}\r\nTrigger status: {TRIGGER.STATUS}\r\nTrigger severity: {TRIGGER.SEVERITY}\r\nTrigger URL: {TRIGGER.URL}\r\n\r\nItem values:\r\n\r\n1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}\r\n2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}\r\n3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}\r\n\r\nOriginal event ID: {EVENT.ID}",                         "mediatypeid": "0"                     }                 }             ],             "update_operations": [                 {                     "operationid": "31",                     "operationtype": "12",                     "evaltype": "0",                     "opmessage": {                         "default_msg": "1",                         "subject": "",                         "message": "",                         "mediatypeid": "0"                     }                 },                 {                     "operationid": "32",                     "operationtype": "0",                     "evaltype": "0",                     "opmessage": {                         "default_msg": "0",                         "subject": "Updated: {TRIGGER.NAME}",                         "message": "{USER.FULLNAME} updated problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME} with the following message:\r\n{EVENT.UPDATE.MESSAGE}\r\n\r\nCurrent problem status is {EVENT.STATUS}",                         "mediatypeid": "1"                     },                     "opmessage_grp": [                         {                             "usrgrpid": "7"                         }                     ],                     "opmessage_usr": []                 },                 {                     "operationid": "33",                     "operationtype": "1",                     "evaltype": "0",                     "opcommand": {                         "scriptid": "3"                     },                     "opcommand_hst": [                         {                             "hostid": "10084"                         }                     ],                     "opcommand_grp": []                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieve trigger prototypes from an LLD rule  Retrieve all trigger prototypes and their functions from an LLD rule.  Request:  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": "extend",         "selectFunctions": "extend",         "discoveryids": "22450"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "13272",             "expression": "{12598}<20",             "description": "Free inodes is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "priority": "2",             "comments": "",             "templateid": "0",             "type": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "functions": [                 {                     "functionid": "12598",                     "itemid": "22454",                     "triggerid": "13272",                     "parameter": "$",                     "function": "last"                 }             ]         },         {             "triggerid": "13266",             "expression": "{13500}<20",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "priority": "2",             "comments": "",             "templateid": "0",             "type": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "functions": [                 {                     "functionid": "13500",                     "itemid": "22686",                     "triggerid": "13266",                     "parameter": "$",                     "function": "last"                 }             ]         }     ],     "id": 1 } ```
ja	#### LLDルールからトリガープロトタイプの取得  すべてのトリガープロトタイプとその関数をLLDルールから取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": "extend",         "selectFunctions": "extend",         "discoveryids": "22450"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "13272",             "expression": "{12598}<20",             "description": "Free inodes is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "priority": "2",             "comments": "",             "templateid": "0",             "type": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "functions": [                 {                     "functionid": "12598",                     "itemid": "22454",                     "triggerid": "13272",                     "parameter": "$",                     "function": "last"                 }             ]         },         {             "triggerid": "13266",             "expression": "{13500}<20",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "url": "",             "status": "0",             "priority": "2",             "comments": "",             "templateid": "0",             "type": "0",             "flags": "2",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "discover": "0",             "functions": [                 {                     "functionid": "13500",                     "itemid": "22686",                     "triggerid": "13266",                     "parameter": "$",                     "function": "last"                 }             ]         }     ],     "id": 1 } ```

en-us	### Retrieving additional information with `docker.container_info[]`  The `docker.container_info[]` [Zabbix agent 2 item](/manual/config/items/itemtypes/zabbix_agent/zabbix_agent2) now supports the option to retrieve either partial (short) or full low-level information about a Docker container.
ja	### `docker.container_info[]`で追加情報取得  `docker.container_info[]` [Zabbixエージェント2のアイテム](/manual/config/items/itemtypes/zabbix_agent/zabbix_agent2)は、Dockerコンテナに関する部分的(短い)または完全な低レベルの情報を取得するオプションをサポートするようになりました。

en-us	#### Retrieving all services  Retrieve all data about all services and their dependencies.  Request:  ```json {     "jsonrpc": "2.0",     "method": "service.get",     "params": {         "output": "extend",         "selectChildren": "extend",         "selectParents": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "serviceid": "1",             "name": "My Service - 0001",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0001.",             "uuid": "dfa4daeaea754e3a95c04d6029182681",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         },         {             "serviceid": "2",             "name": "My Service - 0002",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0002.",             "uuid": "20ea0d85212841219130abeaca28c065",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         }     ],     "id": 1 } ```
ja	#### すべてのサービスを取得する  すべてのサービスとその依存関係に関するすべてのデータを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "service.get",     "params": {         "output": "extend",         "selectChildren": "extend",         "selectParents": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "serviceid": "1",             "name": "My Service - 0001",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0001.",             "uuid": "dfa4daeaea754e3a95c04d6029182681",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         },         {             "serviceid": "2",             "name": "My Service - 0002",             "status": "-1",             "algorithm": "2",             "sortorder": "0",             "weight": "0",             "propagation_rule": "0",             "propagation_value": "0",             "description": "My Service Description 0002.",             "uuid": "20ea0d85212841219130abeaca28c065",             "created_at": "946684800",             "readonly": false,             "parents": [],             "children": []         }     ],     "id": 1 } ```

en-us	#### Retrieving all SLAs  Retrieve all data about all SLAs and their properties.  Request:  ```json {     "jsonrpc": "2.0",     "method": "sla.get",     "params": {         "output": "extend",         "selectSchedule": ["period_from", "period_to"],         "selectExcludedDowntimes": ["name", "period_from", "period_to"],         "selectServiceTags": ["tag", "operator", "value"],         "preservekeys": true     },     "auth": "85dd04b94cbfad794616eb923be13c71",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "1": {             "slaid": "1",             "name": "Database Uptime",             "period": "1",             "slo": "99.9995",             "effective_date": "1672444800",             "timezone": "America/Toronto",             "status": "1",             "description": "Provide excellent uptime for main SQL database engines.",             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "schedule": [                 {                     "period_from": "0",                     "period_to": "601200"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     },     "id": 1 } ```
ja	#### すべてのSLAの取得  すべてのSLAとそのプロパティに関するすべてのデータを取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "sla.get",     "params": {         "output": "extend",         "selectSchedule": ["period_from", "period_to"],         "selectExcludedDowntimes": ["name", "period_from", "period_to"],         "selectServiceTags": ["tag", "operator", "value"],         "preservekeys": true     },     "auth": "85dd04b94cbfad794616eb923be13c71",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": {         "1": {             "slaid": "1",             "name": "Database Uptime",             "period": "1",             "slo": "99.9995",             "effective_date": "1672444800",             "timezone": "America/Toronto",             "status": "1",             "description": "Provide excellent uptime for main SQL database engines.",             "service_tags": [                 {                     "tag": "Database",                     "operator": "0",                     "value": "MySQL"                 },                 {                     "tag": "Database",                     "operator": "0",                     "value": "PostgreSQL"                 }             ],             "schedule": [                 {                     "period_from": "0",                     "period_to": "601200"                 }             ],             "excluded_downtimes": [                 {                     "name": "Software version upgrade rollout",                     "period_from": "1648760400",                     "period_to": "1648764900"                 }             ]         }     },     "id": 1 } ```

en-us	#### Retrieving a specific trigger prototype with tags  Request:  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": [             "triggerid",             "description"         ],         "selectTags": "extend",         "triggerids": [             "17373"         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "17373",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "tags": [                 {                     "tag": "volume",                     "value": "{#FSNAME}"                 },                 {                     "tag": "type",                     "value": "{#FSTYPE}"                 }             ]         }     ],     "id": 1 } ```
ja	#### タグで特定のトリガープロトタイプを取得  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "triggerprototype.get",     "params": {         "output": [             "triggerid",             "description"         ]         "selectTags": "extend",         "triggerids": [             "17373"         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "17373",             "description": "Free disk space is less than 20% on volume {#FSNAME}",             "tags": [                 {                     "tag": "volume",                     "value": "{#FSNAME}"                 },                 {                     "tag": "type",                     "value": "{#FSTYPE}"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving a specific trigger with tags  Retrieve a specific trigger with tags.  Request:  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "output": [             "triggerid",             "description"         ],         "selectTags": "extend",         "triggerids": [             "17578"         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "17370",             "description": "Service status",             "tags": [                 {                     "tag": "service",                     "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"                 },                 {                     "tag": "error",                     "value": ""                 }             ]         }     ],     "id": 1 } ```
ja	#### タグ付きの特定のトリガーの取得  タグ付きの特定のトリガーを取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "output": [             "triggerid",             "description"         ],         "selectTags": "extend",         "triggerids": [             "17578"         ]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "17370",             "description": "Service status",             "tags": [                 {                     "tag": "service",                     "value": "{{ITEM.VALUE}.regsub(\"Service (.*) has stopped\", \"\\1\")}"                 },                 {                     "tag": "error",                     "value": ""                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving a web scenario  Retrieve all data about web scenario "4".  Request:  ```json {     "jsonrpc": "2.0",     "method": "httptest.get",     "params": {         "output": "extend",         "selectSteps": "extend",         "httptestids": "9"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "httptestid": "9",             "name": "Homepage check",             "nextcheck": "0",             "delay": "1m",             "status": "0",             "variables": [],             "agent": "Zabbix",             "authentication": "0",             "http_user": "",             "http_password": "",             "hostid": "10084",             "templateid": "0",             "http_proxy": "",             "retries": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "headers": [],             "steps": [                 {                     "httpstepid": "36",                     "httptestid": "9",                     "name": "Homepage",                     "no": "1",                     "url": "http://example.com",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [                           {                               "name":"{var}",                             "value":"12"                         }                     ],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 },                 {                     "httpstepid": "37",                     "httptestid": "9",                     "name": "Homepage / About",                     "no": "2",                     "url": "http://example.com/about",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 }             ]         }     ],     "id": 1 } ```
ja	#### Webシナリオの取得  Webシナリオ"4"に関するすべてのデータを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "httptest.get",     "params": {         "output": "extend",         "selectSteps": "extend",         "httptestids": "9"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "httptestid": "9",             "name": "Homepage check",             "nextcheck": "0",             "delay": "1m",             "status": "0",             "variables": [],             "agent": "Zabbix",             "authentication": "0",             "http_user": "",             "http_password": "",             "hostid": "10084",             "templateid": "0",             "http_proxy": "",             "retries": "1",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "headers": [],             "steps": [                 {                     "httpstepid": "36",                     "httptestid": "9",                     "name": "Homepage",                     "no": "1",                     "url": "http://example.com",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [                           {                               "name":"{var}",                             "value":"12"                         }                     ],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 },                 {                     "httpstepid": "37",                     "httptestid": "9",                     "name": "Homepage / About",                     "no": "2",                     "url": "http://example.com/about",                     "timeout": "15s",                     "posts": "",                     "required": "",                     "status_codes": "200",                     "variables": [],                     "follow_redirects": "1",                     "retrieve_mode": "0",                     "headers": [],                     "query_fields": []                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving data by name  Retrieve all data about two host groups named "Zabbix servers" and "Linux servers".  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.get",     "params": {         "output": "extend",         "filter": {             "name": [                 "Zabbix servers",                 "Linux servers"             ]         }     },     "auth": "6f38cddc44cfbb6c1bd186f9a220b5a0",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "groupid": "2",             "name": "Linux servers",             "internal": "0"         },         {             "groupid": "4",             "name": "Zabbix servers",             "internal": "0"         }     ],     "id": 1 } ```
ja	#### 名前によるデータの取得  "Zabbix servers"と"Linux servers"という名前の 2 つのホスト グループに関するすべてのデータを取得します。  リクエスト:  ```json {     "jsonrpc": "2.0",     "method": "hostgroup.get",     "params": {         "output": "extend",         "filter": {             "name": [                 "Zabbix servers",                 "Linux servers"             ]         }     },     "auth": "6f38cddc44cfbb6c1bd186f9a220b5a0",     "id": 1 } ```  レスポンス:  ```json {     "jsonrpc": "2.0",     "result": [         {             "groupid": "2",             "name": "Linux servers",             "internal": "0"         },         {             "groupid": "4",             "name": "Zabbix servers",             "internal": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving data by name  Retrieve all data about two hosts named "Zabbix server" and "Linux server".  Request:  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "filter": {             "host": [                 "Zabbix server",                 "Linux server"             ]         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10160",             "proxy_hostid": "0",             "host": "Zabbix server",             "status": "0",             "lastaccess": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Zabbix server",             "flags": "0",             "description": "The Zabbix monitoring server.",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1"         },         {             "hostid": "10167",             "proxy_hostid": "0",             "host": "Linux server",             "status": "0",             "lastaccess": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Linux server",             "flags": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1"         }     ],     "id": 1 } ```
ja	#### 名前によるデータの取得  "Zabbix server"と"Linux server"という名前の2つのホストに関するすべてのデータを取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "filter": {             "host": [                 "Zabbix server",                 "Linux server"             ]         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10160",             "proxy_hostid": "0",             "host": "Zabbix server",             "status": "0",             "lastaccess": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Zabbix server",             "flags": "0",             "description": "The Zabbix monitoring server.",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1"         },         {             "hostid": "10167",             "proxy_hostid": "0",             "host": "Linux server",             "status": "0",             "lastaccess": "0",             "ipmi_authtype": "-1",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "name": "Linux server",             "flags": "0",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "inventory_mode": "1"         }     ],     "id": 1 } ```

en-us	#### Retrieving data by trigger ID  Retrieve all data and the functions used in trigger "14062".  Request:  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "triggerids": "14062",         "output": "extend",         "selectFunctions": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "14062",             "expression": "{13513}<10m",             "description": "{HOST.NAME} has been restarted (uptime < 10m)",             "url": "",             "status": "0",             "value": "0",             "priority": "2",             "lastchange": "0",             "comments": "The host uptime is less than 10 minutes",             "error": "",             "templateid": "10016",             "type": "0",             "state": "0",             "flags": "0",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "functions": [                 {                     "functionid": "13513",                     "itemid": "24350",                     "triggerid": "14062",                     "parameter": "$",                     "function": "last"                 }             ]         }     ],     "id": 1 } ```
ja	#### トリガーIDによるデータの取得  トリガー"14062"で使用されるすべてのデータと関数を取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "triggerids": "14062",         "output": "extend",         "selectFunctions": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "14062",             "expression": "{13513}<10m",             "description": "{HOST.NAME} has been restarted (uptime < 10m)",             "url": "",             "status": "0",             "value": "0",             "priority": "2",             "lastchange": "0",             "comments": "The host uptime is less than 10 minutes",             "error": "",             "templateid": "10016",             "type": "0",             "state": "0",             "flags": "0",             "recovery_mode": "0",             "recovery_expression": "",             "correlation_mode": "0",             "correlation_tag": "",             "manual_close": "0",             "opdata": "",             "functions": [                 {                     "functionid": "13513",                     "itemid": "24350",                     "triggerid": "14062",                     "parameter": "$",                     "function": "last"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving discovery rules from a host  Retrieve all discovery rules for specific host ID.  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": "extend",         "hostids": "10202"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "27425",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Network interface discovery",             "key_": "net.if.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22444",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of network interfaces as defined in global regular expression \"Network interfaces for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         },         {             "itemid": "27426",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Mounted filesystem discovery",             "key_": "vfs.fs.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22450",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of file systems of different types as defined in global regular expression \"File systems for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```
ja	#### ホストからディスカバリルールの取得  特定ホストIDの全ディスカバリルールを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": "extend",         "hostids": "10202"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "27425",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Network interface discovery",             "key_": "net.if.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22444",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of network interfaces as defined in global regular expression \"Network interfaces for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         },         {             "itemid": "27426",             "type": "0",             "snmp_oid": "",             "hostid": "10202",             "name": "Mounted filesystem discovery",             "key_": "vfs.fs.discovery",             "delay": "1h",             "status": "0",             "trapper_hosts": "",             "templateid": "22450",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "119",             "description": "Discovery of file systems of different types as defined in global regular expression \"File systems for discovery\".",             "lifetime": "30d",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "uuid": "",             "state": "0",             "error": "",             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieving enabled user groups  Retrieve all enabled user groups.  Request:  ```json {     "jsonrpc": "2.0",     "method": "usergroup.get",     "params": {         "output": "extend",         "status": 0     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "usrgrpid": "7",             "name": "Zabbix administrators",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1"         },         {             "usrgrpid": "8",             "name": "Guests",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0"         },         {             "usrgrpid": "11",             "name": "Enabled debug mode",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1"         },         {             "usrgrpid": "12",             "name": "No access to the frontend",             "gui_access": "2",             "users_status": "0",             "debug_mode": "0"         },         {             "usrgrpid": "14",             "name": "Read only",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0"         },         {             "usrgrpid": "18",             "name": "Deny",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0"         }     ],     "id": 1 } ```
ja	#### 有効なユーザーグループの取得  有効なすべてのユーザーグループを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "usergroup.get",     "params": {         "output": "extend",         "status": 0     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "usrgrpid": "7",             "name": "Zabbix administrators",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1"         },         {             "usrgrpid": "8",             "name": "Guests",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0"         },         {             "usrgrpid": "11",             "name": "Enabled debug mode",             "gui_access": "0",             "users_status": "0",             "debug_mode": "1"         },         {             "usrgrpid": "12",             "name": "No access to the frontend",             "gui_access": "2",             "users_status": "0",             "debug_mode": "0"         },         {             "usrgrpid": "14",             "name": "Read only",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0"         },         {             "usrgrpid": "18",             "name": "Deny",             "gui_access": "0",             "users_status": "0",             "debug_mode": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving events by time period  Retrieve all events that have been created between October 9 and 10, 2012, in reverse chronological order.  Request:  ```json {     "jsonrpc": "2.0",     "method": "event.get",     "params": {         "output": "extend",         "time_from": "1349797228",         "time_till": "1350661228",         "sortfield": ["clock", "eventid"],         "sortorder": "desc"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "20616",             "source": "0",             "object": "0",             "objectid": "14282",             "clock": "1350477814",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "Less than 25% free in the history cache",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20617",             "source": "0",             "object": "0",             "objectid": "14283",             "clock": "1350477814",             "value": "0",             "acknowledged": "0",             "ns": "0",             "name": "Zabbix trapper processes more than 75% busy",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20618",             "source": "0",             "object": "0",             "objectid": "14284",             "clock": "1350477815",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "High ICMP ping loss",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "suppressed": "0"         }     ],     "id": 1 } ```
ja	#### 期間ごとにイベントを取得  2012年10月9日から10日までの間に作成されたすべてのイベントを新しい順に取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "event.get",     "params": {         "output": "extend",         "time_from": "1349797228",         "time_till": "1350661228",         "sortfield": ["clock", "eventid"],         "sortorder": "desc"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "20616",             "source": "0",             "object": "0",             "objectid": "14282",             "clock": "1350477814",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "Less than 25% free in the history cache",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20617",             "source": "0",             "object": "0",             "objectid": "14283",             "clock": "1350477814",             "value": "0",             "acknowledged": "0",             "ns": "0",             "name": "Zabbix trapper processes more than 75% busy",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "suppressed": "0"         },         {             "eventid": "20618",             "source": "0",             "object": "0",             "objectid": "14284",             "clock": "1350477815",             "value": "1",             "acknowledged": "0",             "ns": "0",             "name": "High ICMP ping loss",             "severity": "3",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "suppressed": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving filter conditions  Retrieve the name of the LLD rule "24681" and its filter conditions. The filter uses the "and" evaluation type, so the `formula` property is empty and `eval_formula` is generated automatically.  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "selectFilter": "extend",         "itemids": ["24681"]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "24681",             "name": "Filtered LLD rule",             "filter": {                 "evaltype": "1",                 "formula": "",                 "conditions": [                     {                         "macro": "{#MACRO1}",                         "value": "@regex1",                         "operator": "8",                         "formulaid": "A"                     },                     {                         "macro": "{#MACRO2}",                         "value": "@regex2",                         "operator": "9",                         "formulaid": "B"                     },                     {                         "macro": "{#MACRO3}",                         "value": "",                         "operator": "12",                         "formulaid": "C"                     },                     {                         "macro": "{#MACRO4}",                         "value": "",                         "operator": "13",                         "formulaid": "D"                     }                 ],                 "eval_formula": "A and B and C and D"             }         }     ],     "id": 1 } ```
ja	#### フィルタ条件の取得  LLDルール"24681"の名前とそのフィルター条件を取得します。 フィルタは"and"評価タイプを使用するため、 `formula`プロパティは空であり、`eval_formula`が自動的に生成されます。  Request:  ```json {     "jsonrpc": "2.0",     "method": "discoveryrule.get",     "params": {         "output": ["name"],         "selectFilter": "extend",         "itemids": ["24681"]     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "24681",             "name": "Filtered LLD rule",             "filter": {                 "evaltype": "1",                 "formula": "",                 "conditions": [                     {                         "macro": "{#MACRO1}",                         "value": "@regex1",                         "operator": "8",                         "formulaid": "A"                     },                     {                         "macro": "{#MACRO2}",                         "value": "@regex2",                         "operator": "9",                         "formulaid": "B"                     },                     {                         "macro": "{#MACRO3}",                         "value": "",                         "operator": "12",                         "formulaid": "C"                     },                     {                         "macro": "{#MACRO4}",                         "value": "",                         "operator": "13",                         "formulaid": "D"                     }                 ],                 "eval_formula": "A and B and C and D"             }         }     ],     "id": 1 } ```

en-us	#### Retrieving global macros  Retrieve all global macros.  Request:  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "globalmacro": true     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "globalmacroid": "6",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0"         }     ],     "id": 1 } ```
ja	#### グローバルマクロの取得  すべてのグローバルマクロを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "globalmacro": true     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "globalmacroid": "6",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving global regular expressions.  Request:  ```json {     "jsonrpc": "2.0",     "method": "regexp.get",     "params": {         "output": ["regexpid", "name"],         "selectExpressions": ["expression", "expression_type"],         "regexpids": [1, 2],         "preservekeys": true     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {   "jsonrpc": "2.0",   "result": {     "1": {       "regexpid": "1",       "name": "File systems for discovery",       "expressions": [         {           "expression": "^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$",           "expression_type": "3"         }       ]     },     "2": {       "regexpid": "2",       "name": "Network interfaces for discovery",       "expressions": [         {           "expression": "^Software Loopback Interface",           "expression_type": "4"         },         {           "expression": "^(In)?[Ll]oop[Bb]ack[0-9._]*$",           "expression_type": "4"         },         {           "expression": "^NULL[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ll]o[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ss]ystem$",           "expression_type": "4"         },         {           "expression": "^Nu[0-9.]*$",           "expression_type": "4"         }       ]     }   },   "id": 1 } ```
ja	#### グローバル正規表現の取得  Request:  ```json {     "jsonrpc": "2.0",     "method": "regexp.get",     "params": {         "output": ["regexpid", "name"],         "selectExpressions": ["expression", "expression_type"],         "regexpids": [1, 2],         "preservekeys": true     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {   "jsonrpc": "2.0",   "result": {     "1": {       "regexpid": "1",       "name": "File systems for discovery",       "expressions": [         {           "expression": "^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$",           "expression_type": "3"         }       ]     },     "2": {       "regexpid": "2",       "name": "Network interfaces for discovery",       "expressions": [         {           "expression": "^Software Loopback Interface",           "expression_type": "4"         },         {           "expression": "^(In)?[Ll]oop[Bb]ack[0-9._]*$",           "expression_type": "4"         },         {           "expression": "^NULL[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ll]o[0-9.]*$",           "expression_type": "4"         },         {           "expression": "^[Ss]ystem$",           "expression_type": "4"         },         {           "expression": "^Nu[0-9.]*$",           "expression_type": "4"         }       ]     }   },   "id": 1 } ```

en-us	#### Retrieving host groups  Retrieve names of the groups host "Zabbix server" is member of, but no host details themselves.  Request:  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid"],         "selectGroups": "extend",         "filter": {             "host": [                 "Zabbix server"             ]         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 2 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10085",             "groups": [                 {                     "groupid": "2",                     "name": "Linux servers",                     "internal": "0",                     "flags": "0"                 },                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "internal": "0",                     "flags": "0"                 }             ]         }     ],     "id": 2 } ```
ja	#### ホストグループの取得  ホスト"Zabbix server"が所属するグループの名前を取得しますが、ホスト自体の詳細は取得しません。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid"],         "selectGroups": "extend",         "filter": {             "host": [                 "Zabbix server"             ]         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 2 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10085",             "groups": [                 {                     "groupid": "2",                     "name": "Linux servers",                     "internal": "0",                     "flags": "0"                 },                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "internal": "0",                     "flags": "0"                 }             ]         }     ],     "id": 2 } ```

en-us	#### Retrieving host macros for a host  Retrieve all host macros defined for host "10198".  Request:  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "hostids": "10198"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostmacroid": "9",             "hostid": "10198",             "macro": "{$INTERFACE}",             "value": "eth0",             "description": "",             "type": "0"         },         {             "hostmacroid": "11",             "hostid": "10198",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0"         }     ],     "id": 1 } ```
ja	#### ホストのホストマクロの取得  ホスト"10198"に定義されているすべてのホストマクロを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "usermacro.get",     "params": {         "output": "extend",         "hostids": "10198"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostmacroid": "9",             "hostid": "10198",             "macro": "{$INTERFACE}",             "value": "eth0",             "description": "",             "type": "0"         },         {             "hostmacroid": "11",             "hostid": "10198",             "macro": "{$SNMP_COMMUNITY}",             "value": "public",             "description": "",             "type": "0"         }     ],     "id": 1 } ```

en-us	#### Retrieving host prototypes from an LLD rule  Retrieve all host prototypes, their group links, group prototypes and tags from an LLD rule.  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostprototype.get",     "params": {         "output": "extend",         "selectInterfaces": "extend",         "selectGroupLinks": "extend",         "selectGroupPrototypes": "extend",         "selectTags": "extend",         "discoveryids": "23554"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10092",             "host": "{#HV.UUID}",             "name": "{#HV.UUID}",             "status": "0",             "templateid": "0",             "discover": "0",             "custom_interfaces": "1",             "inventory_mode": "-1",             "groupLinks": [                 {                     "group_prototypeid": "4",                     "hostid": "10092",                     "groupid": "7",                     "templateid": "0"                 }             ],             "groupPrototypes": [                 {                     "group_prototypeid": "7",                     "hostid": "10092",                     "name": "{#CLUSTER.NAME}",                     "templateid": "0"                 }             ],             "tags": [                 {                     "tag": "Datacenter",                     "value": "{#DATACENTER.NAME}"                 },                 {                     "tag": "Instance type",                     "value": "{#INSTANCE_TYPE}"                 }             ],             "interfaces": [                 {                     "main": "1",                     "type": "2",                     "useip": "1",                     "ip": "127.0.0.1",                     "dns": "",                     "port": "161",                     "details": {                         "version": "2",                         "bulk": "1",                         "community": "{$SNMP_COMMUNITY}"                     }                 }             ]         }     ],     "id": 1 } ```
ja	#### LLDルールからホストプロトタイプの取得  LLDルールから、すべてのホストプロトタイプ、グループリンク、グループプロトタイプ、およびタグを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "hostprototype.get",     "params": {         "output": "extend",         "selectInterfaces": "extend",         "selectGroupLinks": "extend",         "selectGroupPrototypes": "extend",         "selectTags": "extend",         "discoveryids": "23554"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10092",             "host": "{#HV.UUID}",             "name": "{#HV.UUID}",             "status": "0",             "templateid": "0",             "discover": "0",             "custom_interfaces": "1",             "inventory_mode": "-1",             "groupLinks": [                 {                     "group_prototypeid": "4",                     "hostid": "10092",                     "groupid": "7",                     "templateid": "0"                 }             ],             "groupPrototypes": [                 {                     "group_prototypeid": "7",                     "hostid": "10092",                     "name": "{#CLUSTER.NAME}",                     "templateid": "0"                 }             ],             "tags": [                 {                     "tag": "Datacenter",                     "value": "{#DATACENTER.NAME}"                 },                 {                     "tag": "Instance type",                     "value": "{#INSTANCE_TYPE}"                 }             ],             "interfaces": [                 {                     "main": "1",                     "type": "2",                     "useip": "1",                     "ip": "127.0.0.1",                     "dns": "",                     "port": "161",                     "details": {                         "version": "2",                         "bulk": "1",                         "community": "{$SNMP_COMMUNITY}"                     }                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving hosts by template  Retrieve hosts that have the "10001" (*Linux by Zabbix agent*) template linked to them.  Request:  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid", "name"],         "templateids": "10001"     },     "auth": "70785d2b494a7302309b48afcdb3a401",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "templateid": "10001",             "hosts": [                 {                     "hostid": "10084",                     "name": "Zabbix server"                 },                 {                     "hostid": "10603",                     "name": "Host 1"                 },                 {                     "hostid": "10604",                     "name": "Host 2"                 }             ]         }     ],     "id": 1 } ```
ja	#### テンプレートでホストの取得  テンプレート"10001"(*Linux by Zabbix agent*) がリンクされているホストを取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid", "name"],         "templateids": "10001"     },     "auth": "70785d2b494a7302309b48afcdb3a401",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "templateid": "10001",             "hosts": [                 {                     "hostid": "10084",                     "name": "Zabbix server"                 },                 {                     "hostid": "10603",                     "name": "Host 1"                 },                 {                     "hostid": "10604",                     "name": "Host 2"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving hosts  We now have a valid user authentication token that can be used to access the data in Zabbix. For example, let's use the [host.get](/manual/api/reference/host/get) method to retrieve the IDs, host names and interfaces of all configured [hosts](/manual/api/reference/host/object):  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": [             "hostid",             "host"         ],         "selectInterfaces": [             "interfaceid",             "ip"         ]     },     "id": 2,     "auth": "0424bd59b807674191e7d77572075f33" } ```  ::: noteimportant Note that the `auth` property is now set to the authentication token we've obtained by calling `user.login`. :::  The response object will contain the requested data about the hosts:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10084",             "host": "Zabbix server",             "interfaces": [                 {                     "interfaceid": "1",                     "ip": "127.0.0.1"                 }             ]         }     ],     "id": 2 } ```  ::: notetip For performance reasons we recommend to always list the object properties you want to retrieve and avoid retrieving everything. :::
ja	#### ホストの取得  Zabbixのデータにアクセスするために使用できる有効なユーザー認証トークンを取得できました。 次に例として、[host.get](/manual/api/reference/host/get)メソッドを使用して、構成されているすべての[ホスト](/manual/api/reference/host/object)のID、ホスト名、およびインターフェースを取得してみましょう。  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": [             "hostid",             "host"         ],         "selectInterfaces": [             "interfaceid",             "ip"         ]     },     "id": 2,     "auth": "0424bd59b807674191e7d77572075f33" } ```  ::: noteimportant `auth`プロパティに`user.login`を呼び出して取得した認証トークンを設定するよう注意してください。 :::  レスポンスオブジェクトには、要求されたホストに関するデータが含まれます。  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10084",             "host": "Zabbix server",             "interfaces": [                 {                     "interfaceid": "1",                     "ip": "127.0.0.1"                 }             ]         }     ],     "id": 2 } ```  ::: notetip パフォーマンス上の理由から、取得するオブジェクトプロパティを常にリストアップし、すべてのオブジェクトプロパティを取得しないようにすることをお勧めします。 :::

en-us	#### Retrieving item prototypes from an LLD rule  Retrieve all item prototypes for specific LLD rule ID.  Request:  ```json {     "jsonrpc": "2.0",     "method": "itemprototype.get",     "params": {         "output": "extend",         "discoveryids": "27426"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23077",             "type": "0",             "snmp_oid": "",             "hostid": "10079",             "name": "Incoming network traffic on en0",             "key_": "net.if.in[en0]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "3",             "trapper_hosts": "",             "units": "bps",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "discover": "0",             "uuid": "",             "parameters": []         },         {             "itemid": "10010",             "type": "0",             "snmp_oid": "",             "hostid": "10001",             "name": "Processor load (1 min average per core)",             "key_": "system.cpu.load[percpu,avg1]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "0",             "trapper_hosts": "",             "units": "",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "The processor load is calculated as system CPU load divided by number of CPU cores.",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "lastclock": "0",             "lastns": "0",             "lastvalue": "0",             "prevvalue": "0",             "discover": "0",             "uuid": "",             "parameters": []         }     ],     "id": 1 } ```
ja	#### LLD ルールからアイテム プロトタイプを取得する  特定の LLD ルール ID のすべてのアイテム プロトタイプを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "itemprototype.get",     "params": {         "output": "extend",         "discoveryids": "27426"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23077",             "type": "0",             "snmp_oid": "",             "hostid": "10079",             "name": "Incoming network traffic on en0",             "key_": "net.if.in[en0]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "3",             "trapper_hosts": "",             "units": "bps",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "discover": "0",             "uuid": "",             "parameters": []         },         {             "itemid": "10010",             "type": "0",             "snmp_oid": "",             "hostid": "10001",             "name": "Processor load (1 min average per core)",             "key_": "system.cpu.load[percpu,avg1]",             "delay": "1m",             "history": "1w",             "trends": "365d",             "status": "0",             "value_type": "0",             "trapper_hosts": "",             "units": "",             "logtimefmt": "",             "templateid": "0",             "valuemapid": "0",             "params": "",             "ipmi_sensor": "",             "authtype": "0",             "username": "",             "password": "",             "publickey": "",             "privatekey": "",             "interfaceid": "0",             "description": "The processor load is calculated as system CPU load divided by number of CPU cores.",             "evaltype": "0",             "jmx_endpoint": "",             "master_itemid": "0",             "timeout": "3s",             "url": "",             "query_fields": [],             "posts": "",             "status_codes": "200",             "follow_redirects": "1",             "post_type": "0",             "http_proxy": "",             "headers": [],             "retrieve_mode": "0",             "request_method": "0",             "output_format": "0",             "ssl_cert_file": "",             "ssl_key_file": "",             "ssl_key_password": "",             "verify_peer": "0",             "verify_host": "0",             "allow_traps": "0",             "lastclock": "0",             "lastns": "0",             "lastvalue": "0",             "prevvalue": "0",             "discover": "0",             "uuid": "",             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieving items with preprocessing rules  Retrieve all items and their preprocessing rules for specific host ID.  Request:  ```json {     "jsonrpc": "2.0",     "method": "item.get",     "params": {         "output": ["itemid", "name", "key_"],         "selectPreprocessing": "extend",         "hostids": "10254"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "itemid": "23865",         "name": "HTTP agent example JSON",         "key_": "json",         "preprocessing": [             {                 "type": "12",                 "params": "$.random",                 "error_handler": "1",                 "error_handler_params": ""             }         ]     },     "id": 1 } ```
ja	#### 事前処理ルールを使用してアイテムを取得する  特定のホスト ID のすべてのアイテムとその事前処理ルールを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "item.get",     "params": {         "output": ["itemid", "name", "key_"],         "selectPreprocessing": "extend",         "hostids": "10254"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": {         "itemid": "23865",         "name": "HTTP agent example JSON",         "key_": "json",         "preprocessing": [             {                 "type": "12",                 "params": "$.random",                 "error_handler": "1",                 "error_handler_params": ""             }         ]     },     "id": 1 } ```

en-us	#### Retrieving item trend data  Request:  ```json {     "jsonrpc": "2.0",     "method": "trend.get",     "params": {         "output": [             "itemid",             "clock",             "num",             "value_min",             "value_avg",             "value_max",         ],         "itemids": [             "23715"         ],         "limit": "1"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23715",             "clock": "1446199200",             "num": "60",             "value_min": "0.165",             "value_avg": "0.2168",             "value_max": "0.35",         }     ],     "id": 1 } ```
ja	#### アイテムのトレンドデータ取得  Request:  ```json {     "jsonrpc": "2.0",     "method": "trend.get",     "params": {         "output": [             "itemid",             "clock",             "num",             "value_min",             "value_avg",             "value_max",         ],         "itemids": [             "23715"         ],         "limit": "1"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "itemid": "23715",             "clock": "1446199200",             "num": "60",             "value_min": "0.165",             "value_avg": "0.2168",             "value_max": "0.35",         }     ],     "id": 1 } ```

en-us	#### Retrieving linked templates  Retrieve the IDs and names of templates linked to host "10084".  Request:  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid"],         "selectParentTemplates": [             "templateid",             "name"         ],         "hostids": "10084"     },     "id": 1,     "auth": "70785d2b494a7302309b48afcdb3a401" } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10084",             "parentTemplates": [                 {                     "name": "Linux",                     "templateid": "10001"                 },                 {                     "name": "Zabbix Server",                     "templateid": "10047"                 }             ]         }     ],     "id": 1 } ```
ja	#### リンク先テンプレートの取得  ホスト"10084"にリンクしているテンプレートのIDおよび名前を取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "host.get",     "params": {         "output": ["hostid"],         "selectParentTemplates": [             "templateid",             "name"         ],         "hostids": "10084"     },     "id": 1,     "auth": "70785d2b494a7302309b48afcdb3a401" } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "hostid": "10084",             "parentTemplates": [                 {                     "name": "Linux",                     "templateid": "10001"                 },                 {                     "name": "Zabbix Server",                     "templateid": "10047"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving maintenances  Retrieve all configured maintenances, and the data about the assigned host groups, defined time periods and problem tags.  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "maintenance.get",     "params": {         "output": "extend",         "selectGroups": "extend",         "selectTimeperiods": "extend",         "selectTags": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": [         {             "maintenanceid": "3",             "name": "Sunday maintenance",             "maintenance_type": "0",             "description": "",             "active_since": "1358844540",             "active_till": "1390466940",             "tags_evaltype": "0",             "groups": [                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "internal": "0"                 }             ],             "timeperiods": [                 {                     "timeperiodid": "4",                     "timeperiod_type": "3",                     "every": "1",                     "month": "0",                     "dayofweek": "1",                     "day": "0",                     "start_time": "64800",                     "period": "3600",                     "start_date": "2147483647"                 }             ],             "tags": [                 {                     "tag": "service",                     "operator": "0",                     "value": "mysqld",                 },                 {                     "tag": "error",                     "operator": "2",                     "value": ""                 }             ]         }     ],     "id": 1 } ```  
ja	#### Retrieving maintenances  Retrieve all configured maintenances, and the data about the assigned host groups, defined time periods and problem tags.  Request:  ``` {.java} {     "jsonrpc": "2.0",     "method": "maintenance.get",     "params": {         "output": "extend",         "selectGroups": "extend",         "selectTimeperiods": "extend",         "selectTags": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {     "jsonrpc": "2.0",     "result": [         {             "maintenanceid": "3",             "name": "Sunday maintenance",             "maintenance_type": "0",             "description": "",             "active_since": "1358844540",             "active_till": "1390466940",             "tags_evaltype": "0",             "groups": [                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "internal": "0"                 }             ],             "timeperiods": [                 {                     "timeperiodid": "4",                     "timeperiod_type": "3",                     "every": "1",                     "month": "0",                     "dayofweek": "1",                     "day": "0",                     "start_time": "64800",                     "period": "3600",                     "start_date": "2147483647"                 }             ],             "tags": [                 {                     "tag": "service",                     "operator": "0",                     "value": "mysqld",                 },                 {                     "tag": "error",                     "operator": "2",                     "value": ""                 }             ]         }     ],     "id": 1 } ```  

en-us	#### Retrieving maintenances  Retrieve all configured maintenances, and the data about the assigned host groups, defined time periods and problem tags.  Request:  ```json {     "jsonrpc": "2.0",     "method": "maintenance.get",     "params": {         "output": "extend",         "selectGroups": "extend",         "selectTimeperiods": "extend",         "selectTags": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "maintenanceid": "3",             "name": "Sunday maintenance",             "maintenance_type": "0",             "description": "",             "active_since": "1358844540",             "active_till": "1390466940",             "tags_evaltype": "0",             "groups": [                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "internal": "0"                 }             ],             "timeperiods": [                 {                     "timeperiod_type": "3",                     "every": "1",                     "month": "0",                     "dayofweek": "1",                     "day": "0",                     "start_time": "64800",                     "period": "3600",                     "start_date": "2147483647"                 }             ],             "tags": [                 {                     "tag": "service",                     "operator": "0",                     "value": "mysqld",                 },                 {                     "tag": "error",                     "operator": "2",                     "value": ""                 }             ]         }     ],     "id": 1 } ```
ja	#### メンテナンスの取得  構成されたすべてのメンテナンス、割り当てられたホストグループ、定義された期間、障害タグに関するデータを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "maintenance.get",     "params": {         "output": "extend",         "selectGroups": "extend",         "selectTimeperiods": "extend",         "selectTags": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "maintenanceid": "3",             "name": "Sunday maintenance",             "maintenance_type": "0",             "description": "",             "active_since": "1358844540",             "active_till": "1390466940",             "tags_evaltype": "0",             "groups": [                 {                     "groupid": "4",                     "name": "Zabbix servers",                     "internal": "0"                 }             ],             "timeperiods": [                 {                     "timeperiod_type": "3",                     "every": "1",                     "month": "0",                     "dayofweek": "1",                     "day": "0",                     "start_time": "64800",                     "period": "3600",                     "start_date": "2147483647"                 }             ],             "tags": [                 {                     "tag": "service",                     "operator": "0",                     "value": "mysqld",                 },                 {                     "tag": "error",                     "operator": "2",                     "value": ""                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving media types  Retrieve all configured media types.  Request:  ```json {     "jsonrpc": "2.0",     "method": "mediatype.get",     "params": {         "output": "extend",         "selectMessageTemplates": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mediatypeid": "1",             "type": "0",             "name": "Email",             "smtp_server": "mail.example.com",             "smtp_helo": "example.com",             "smtp_email": "zabbix@example.com",             "exec_path": "",             "gsm_modem": "",             "username": "",             "passwd": "",             "status": "0",             "smtp_port": "25",             "smtp_security": "0",             "smtp_verify_peer": "0",             "smtp_verify_host": "0",             "smtp_authentication": "0",             "exec_params": "",             "maxsessions": "1",             "maxattempts": "3",             "attempt_interval": "10s",             "content_type": "0",             "script": "",             "timeout": "30s",             "process_tags": "0",             "show_event_menu": "1",             "event_menu_url": "",             "event_menu_name": "",             "description": "",             "message_templates": [                 {                     "eventsource": "0",                     "recovery": "0",                     "subject": "Problem: {EVENT.NAME}",                     "message": "Problem started at {EVENT.TIME} on {EVENT.DATE}\r\nProblem name: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\nSeverity: {EVENT.SEVERITY}\r\nOperational data: {EVENT.OPDATA}\r\nOriginal problem ID: {EVENT.ID}\r\n{TRIGGER.URL}"                 },                 {                     "eventsource": "0",                     "recovery": "1",                     "subject": "Resolved: {EVENT.NAME}",                     "message": "Problem has been resolved at {EVENT.RECOVERY.TIME} on {EVENT.RECOVERY.DATE}\r\nProblem name: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\nSeverity: {EVENT.SEVERITY}\r\n\r\nOriginal problem ID: {EVENT.ID}\r\n{TRIGGER.URL}"                 },                 {                     "eventsource": "0",                     "recovery": "2",                     "subject": "Updated problem: {EVENT.NAME}",                     "message": "{USER.FULLNAME} {EVENT.UPDATE.ACTION} problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME}.\r\n{EVENT.UPDATE.MESSAGE}\r\n\r\nCurrent problem status is {EVENT.STATUS}, acknowledged: {EVENT.ACK.STATUS}."                 },                 {                     "eventsource": "1",                     "recovery": "0",                     "subject": "Discovery: {DISCOVERY.DEVICE.STATUS} {DISCOVERY.DEVICE.IPADDRESS}",                     "message": "Discovery rule: {DISCOVERY.RULE.NAME}\r\n\r\nDevice IP: {DISCOVERY.DEVICE.IPADDRESS}\r\nDevice DNS: {DISCOVERY.DEVICE.DNS}\r\nDevice status: {DISCOVERY.DEVICE.STATUS}\r\nDevice uptime: {DISCOVERY.DEVICE.UPTIME}\r\n\r\nDevice service name: {DISCOVERY.SERVICE.NAME}\r\nDevice service port: {DISCOVERY.SERVICE.PORT}\r\nDevice service status: {DISCOVERY.SERVICE.STATUS}\r\nDevice service uptime: {DISCOVERY.SERVICE.UPTIME}"                 },                 {                     "eventsource": "2",                     "recovery": "0",                     "subject": "Autoregistration: {HOST.HOST}",                     "message": "Host name: {HOST.HOST}\r\nHost IP: {HOST.IP}\r\nAgent port: {HOST.PORT}"                 }             ],             "parameters": []         },         {             "mediatypeid": "3",             "type": "2",             "name": "SMS",             "smtp_server": "",             "smtp_helo": "",             "smtp_email": "",             "exec_path": "",             "gsm_modem": "/dev/ttyS0",             "username": "",             "passwd": "",             "status": "0",             "smtp_port": "25",             "smtp_security": "0",             "smtp_verify_peer": "0",             "smtp_verify_host": "0",             "smtp_authentication": "0",             "exec_params": "",             "maxsessions": "1",             "maxattempts": "3",             "attempt_interval": "10s",             "content_type": "1",             "script": "",             "timeout": "30s",             "process_tags": "0",             "show_event_menu": "1",             "event_menu_url": "",             "event_menu_name": "",             "description": "",             "message_templates": [                 {                     "eventsource": "0",                     "recovery": "0",                     "subject": "",                     "message": "{EVENT.SEVERITY}: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\n{EVENT.DATE} {EVENT.TIME}"                 },                 {                     "eventsource": "0",                     "recovery": "1",                     "subject": "",                     "message": "RESOLVED: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\n{EVENT.DATE} {EVENT.TIME}"                 },                 {                     "eventsource": "0",                     "recovery": "2",                     "subject": "",                     "message": "{USER.FULLNAME} {EVENT.UPDATE.ACTION} problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME}"                 },                 {                     "eventsource": "1",                     "recovery": "0",                     "subject": "",                     "message": "Discovery: {DISCOVERY.DEVICE.STATUS} {DISCOVERY.DEVICE.IPADDRESS}"                 },                 {                     "eventsource": "2",                     "recovery": "0",                     "subject": "",                     "message": "Autoregistration: {HOST.HOST}\r\nHost IP: {HOST.IP}\r\nAgent port: {HOST.PORT}"                 }             ],             "parameters": []         }     ],     "id": 1 } ```
ja	#### メディアタイプの取得  構成されているすべてのメディアタイプを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "mediatype.get",     "params": {         "output": "extend",         "selectMessageTemplates": "extend"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "mediatypeid": "1",             "type": "0",             "name": "Email",             "smtp_server": "mail.example.com",             "smtp_helo": "example.com",             "smtp_email": "zabbix@example.com",             "exec_path": "",             "gsm_modem": "",             "username": "",             "passwd": "",             "status": "0",             "smtp_port": "25",             "smtp_security": "0",             "smtp_verify_peer": "0",             "smtp_verify_host": "0",             "smtp_authentication": "0",             "exec_params": "",             "maxsessions": "1",             "maxattempts": "3",             "attempt_interval": "10s",             "content_type": "0",             "script": "",             "timeout": "30s",             "process_tags": "0",             "show_event_menu": "1",             "event_menu_url": "",             "event_menu_name": "",             "description": "",             "message_templates": [                 {                     "eventsource": "0",                     "recovery": "0",                     "subject": "Problem: {EVENT.NAME}",                     "message": "Problem started at {EVENT.TIME} on {EVENT.DATE}\r\nProblem name: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\nSeverity: {EVENT.SEVERITY}\r\nOperational data: {EVENT.OPDATA}\r\nOriginal problem ID: {EVENT.ID}\r\n{TRIGGER.URL}"                 },                 {                     "eventsource": "0",                     "recovery": "1",                     "subject": "Resolved: {EVENT.NAME}",                     "message": "Problem has been resolved at {EVENT.RECOVERY.TIME} on {EVENT.RECOVERY.DATE}\r\nProblem name: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\nSeverity: {EVENT.SEVERITY}\r\n\r\nOriginal problem ID: {EVENT.ID}\r\n{TRIGGER.URL}"                 },                 {                     "eventsource": "0",                     "recovery": "2",                     "subject": "Updated problem: {EVENT.NAME}",                     "message": "{USER.FULLNAME} {EVENT.UPDATE.ACTION} problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME}.\r\n{EVENT.UPDATE.MESSAGE}\r\n\r\nCurrent problem status is {EVENT.STATUS}, acknowledged: {EVENT.ACK.STATUS}."                 },                 {                     "eventsource": "1",                     "recovery": "0",                     "subject": "Discovery: {DISCOVERY.DEVICE.STATUS} {DISCOVERY.DEVICE.IPADDRESS}",                     "message": "Discovery rule: {DISCOVERY.RULE.NAME}\r\n\r\nDevice IP: {DISCOVERY.DEVICE.IPADDRESS}\r\nDevice DNS: {DISCOVERY.DEVICE.DNS}\r\nDevice status: {DISCOVERY.DEVICE.STATUS}\r\nDevice uptime: {DISCOVERY.DEVICE.UPTIME}\r\n\r\nDevice service name: {DISCOVERY.SERVICE.NAME}\r\nDevice service port: {DISCOVERY.SERVICE.PORT}\r\nDevice service status: {DISCOVERY.SERVICE.STATUS}\r\nDevice service uptime: {DISCOVERY.SERVICE.UPTIME}"                 },                 {                     "eventsource": "2",                     "recovery": "0",                     "subject": "Autoregistration: {HOST.HOST}",                     "message": "Host name: {HOST.HOST}\r\nHost IP: {HOST.IP}\r\nAgent port: {HOST.PORT}"                 }             ],             "parameters": []         },         {             "mediatypeid": "3",             "type": "2",             "name": "SMS",             "smtp_server": "",             "smtp_helo": "",             "smtp_email": "",             "exec_path": "",             "gsm_modem": "/dev/ttyS0",             "username": "",             "passwd": "",             "status": "0",             "smtp_port": "25",             "smtp_security": "0",             "smtp_verify_peer": "0",             "smtp_verify_host": "0",             "smtp_authentication": "0",             "exec_params": "",             "maxsessions": "1",             "maxattempts": "3",             "attempt_interval": "10s",             "content_type": "1",             "script": "",             "timeout": "30s",             "process_tags": "0",             "show_event_menu": "1",             "event_menu_url": "",             "event_menu_name": "",             "description": "",             "message_templates": [                 {                     "eventsource": "0",                     "recovery": "0",                     "subject": "",                     "message": "{EVENT.SEVERITY}: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\n{EVENT.DATE} {EVENT.TIME}"                 },                 {                     "eventsource": "0",                     "recovery": "1",                     "subject": "",                     "message": "RESOLVED: {EVENT.NAME}\r\nHost: {HOST.NAME}\r\n{EVENT.DATE} {EVENT.TIME}"                 },                 {                     "eventsource": "0",                     "recovery": "2",                     "subject": "",                     "message": "{USER.FULLNAME} {EVENT.UPDATE.ACTION} problem at {EVENT.UPDATE.DATE} {EVENT.UPDATE.TIME}"                 },                 {                     "eventsource": "1",                     "recovery": "0",                     "subject": "",                     "message": "Discovery: {DISCOVERY.DEVICE.STATUS} {DISCOVERY.DEVICE.IPADDRESS}"                 },                 {                     "eventsource": "2",                     "recovery": "0",                     "subject": "",                     "message": "Autoregistration: {HOST.HOST}\r\nHost IP: {HOST.IP}\r\nAgent port: {HOST.PORT}"                 }             ],             "parameters": []         }     ],     "id": 1 } ```

en-us	#### Retrieving report data  Request:  ```json {     "jsonrpc": "2.0",     "method": "report.get",     "params": [         "output": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "reportids": ["1", "2"]     ],     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "reportid": "1",             "userid": "1",             "name": "Weekly report",             "dashboardid": "1",             "period": "1",             "cycle": "1",             "start_time": "43200",             "weekdays": "31",             "active_since": "2021-04-01",             "active_till": "2021-08-31",             "subject": "Weekly report",             "message": "Report accompanying text",             "status": "1",             "description": "Report description",             "state": "1",             "lastsent": "1613563219",             "info": "",             "users": [                 {                     "userid": "1",                     "access_userid": "1",                     "exclude": "0"                 },                 {                     "userid": "2",                     "access_userid": "0",                     "exclude": "1"                 }             ],             "user_groups": [                 {                     "usrgrpid": "7",                     "access_userid": "0"                 }             ]         },         {             "reportid": "2",             "userid": "1",             "name": "Monthly report",             "dashboardid": "2",             "period": "2",             "cycle": "2",             "start_time": "0",             "weekdays": "0",             "active_since": "2021-05-01",             "active_till": "",             "subject": "Monthly report",             "message": "Report accompanying text",             "status": "1",             "description": "",             "state": "0",             "lastsent": "0",             "info": "",             "users": [                 {                     "userid": "1",                     "access_userid": "1",                     "exclude": "0"                 }             ],             "user_groups": []         }     ],     "id": 1 } ```
ja	#### レポートデータの取得  Request:  ```json {     "jsonrpc": "2.0",     "method": "report.get",     "params": [         "output": "extend",         "selectUsers": "extend",         "selectUserGroups": "extend",         "reportids": ["1", "2"]     ],     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "reportid": "1",             "userid": "1",             "name": "Weekly report",             "dashboardid": "1",             "period": "1",             "cycle": "1",             "start_time": "43200",             "weekdays": "31",             "active_since": "2021-04-01",             "active_till": "2021-08-31",             "subject": "Weekly report",             "message": "Report accompanying text",             "status": "1",             "description": "Report description",             "state": "1",             "lastsent": "1613563219",             "info": "",             "users": [                 {                     "userid": "1",                     "access_userid": "1",                     "exclude": "0"                 },                 {                     "userid": "2",                     "access_userid": "0",                     "exclude": "1"                 }             ],             "user_groups": [                 {                     "usrgrpid": "7",                     "access_userid": "0"                 }             ]         },         {             "reportid": "2",             "userid": "1",             "name": "Monthly report",             "dashboardid": "2",             "period": "2",             "cycle": "2",             "start_time": "0",             "weekdays": "0",             "active_since": "2021-05-01",             "active_till": "",             "subject": "Monthly report",             "message": "Report accompanying text",             "status": "1",             "description": "",             "state": "0",             "lastsent": "0",             "info": "",             "users": [                 {                     "userid": "1",                     "access_userid": "1",                     "exclude": "0"                 }             ],             "user_groups": []         }     ],     "id": 1 } ```

en-us	#### Retrieving role data  Retrieve "Super admin role" role data and its access rules.  Request:  ```json {     "jsonrpc": "2.0",     "method": "role.get",     "params": {         "output": "extend",         "selectRules": "extend",         "roleids": "3"     },     "auth": "3a57200802b24cda67c4e4010b50c065",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "roleid": "3",             "name": "Super admin role",             "type": "3",             "readonly": "1",             "rules": {                 "ui": [                     {                         "name": "inventory.hosts",                         "status": "1"                     },                     {                         "name": "inventory.overview",                         "status": "1"                     },                                         {                         "name": "monitoring.dashboard",                         "status": "1"                     },                     {                         "name": "monitoring.hosts",                         "status": "1"                     },                     {                         "name": "monitoring.latest_data",                         "status": "1"                     },                     {                         "name": "monitoring.maps",                         "status": "1"                     },                     {                         "name": "monitoring.problems",                         "status": "1"                     },                                         {                         "name": "reports.availability_report",                         "status": "1"                     },                     {                         "name": "reports.top_triggers",                         "status": "1"                     },                                          {                         "name": "services.services",                         "status": "1"                     },                     {                         "name": "services.sla_report",                         "status": "1"                     },                     {                         "name": "configuration.actions",                         "status": "1"                     },                                         {                         "name": "configuration.discovery",                         "status": "1"                     },                     {                         "name": "configuration.host_groups",                         "status": "1"                     },                                         {                         "name": "configuration.hosts",                         "status": "1"                     },                     {                         "name": "configuration.maintenance",                         "status": "1"                     },                                         {                         "name": "configuration.templates",                         "status": "1"                     },                     {                         "name": "monitoring.discovery",                         "status": "1"                     },                     {                         "name": "reports.notifications",                         "status": "1"                     },                     {                         "name": "reports.scheduled_reports",                         "status": "1"                     },                     {                         "name": "services.actions",                         "status": "1"                     },                     {                         "name": "services.sla",                         "status": "1"                     },                     {                         "name": "administration.authentication",                         "status": "1"                     },                     {                         "name": "administration.general",                         "status": "1"                     },                     {                         "name": "administration.media_types",                         "status": "1"                     },                                         {                         "name": "administration.proxies",                         "status": "1"                     },                     {                         "name": "administration.queue",                         "status": "1"                     },                     {                         "name": "administration.scripts",                         "status": "1"                     },                                         {                         "name": "administration.user_groups",                         "status": "1"                     },                     {                         "name": "administration.user_roles",                         "status": "1"                     },                     {                         "name": "administration.users",                         "status": "1"                     },                     {                         "name": "configuration.event_correlation",                         "status": "1"                     },                      {                         "name": "reports.action_log",                         "status": "1"                     },                     {                         "name": "reports.audit",                         "status": "1"                     },                     {                         "name": "reports.system_info",                         "status": "1"                     }                 ],                 "ui.default_access": "1",                 "services.read.mode": "1",                 "services.read.list": [],                 "services.read.tag": {                     "tag": "",                     "value": ""                 },                 "services.write.mode": "1",                 "services.write.list": [],                 "services.write.tag": {                     "tag": "",                     "value": ""                 },                 "modules": [],                 "modules.default_access": "1",                 "api.access": "1",                 "api.mode": "0",                 "api": [],                 "actions": [                     {                         "name": "edit_dashboards",                         "status": "1"                     },                     {                         "name": "edit_maps",                         "status": "1"                     },                     {                         "name": "acknowledge_problems",                         "status": "1"                     },                     {                         "name": "close_problems",                         "status": "1"                     },                     {                         "name": "change_severity",                         "status": "1"                     },                     {                         "name": "add_problem_comments",                         "status": "1"                     },                     {                         "name": "execute_scripts",                         "status": "1"                     },                     {                         "name": "manage_api_tokens",                         "status": "1"                     },                     {                         "name": "edit_maintenance",                         "status": "1"                     },                     {                         "name": "manage_scheduled_reports",                         "status": "1"                     },                     {                         "name": "manage_sla",                         "status": "1"                     }                                     ],                 "actions.default_access": "1"             }         }     ],     "id": 1 } ```
ja	#### ロールデータの取得  "スーパー管理者ロール"のロール データとそのアクセス ルールを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "role.get",     "params": {         "output": "extend",         "selectRules": "extend",         "roleids": "3"     },     "auth": "3a57200802b24cda67c4e4010b50c065",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "roleid": "3",             "name": "Super admin role",             "type": "3",             "readonly": "1",             "rules": {                 "ui": [                     {                         "name": "inventory.hosts",                         "status": "1"                     },                     {                         "name": "inventory.overview",                         "status": "1"                     },                                         {                         "name": "monitoring.dashboard",                         "status": "1"                     },                     {                         "name": "monitoring.hosts",                         "status": "1"                     },                     {                         "name": "monitoring.latest_data",                         "status": "1"                     },                     {                         "name": "monitoring.maps",                         "status": "1"                     },                     {                         "name": "monitoring.problems",                         "status": "1"                     },                                         {                         "name": "reports.availability_report",                         "status": "1"                     },                     {                         "name": "reports.top_triggers",                         "status": "1"                     },                                          {                         "name": "services.services",                         "status": "1"                     },                     {                         "name": "services.sla_report",                         "status": "1"                     },                     {                         "name": "configuration.actions",                         "status": "1"                     },                                         {                         "name": "configuration.discovery",                         "status": "1"                     },                     {                         "name": "configuration.host_groups",                         "status": "1"                     },                                         {                         "name": "configuration.hosts",                         "status": "1"                     },                     {                         "name": "configuration.maintenance",                         "status": "1"                     },                                         {                         "name": "configuration.templates",                         "status": "1"                     },                     {                         "name": "monitoring.discovery",                         "status": "1"                     },                     {                         "name": "reports.notifications",                         "status": "1"                     },                     {                         "name": "reports.scheduled_reports",                         "status": "1"                     },                     {                         "name": "services.actions",                         "status": "1"                     },                     {                         "name": "services.sla",                         "status": "1"                     },                     {                         "name": "administration.authentication",                         "status": "1"                     },                     {                         "name": "administration.general",                         "status": "1"                     },                     {                         "name": "administration.media_types",                         "status": "1"                     },                                         {                         "name": "administration.proxies",                         "status": "1"                     },                     {                         "name": "administration.queue",                         "status": "1"                     },                     {                         "name": "administration.scripts",                         "status": "1"                     },                                         {                         "name": "administration.user_groups",                         "status": "1"                     },                     {                         "name": "administration.user_roles",                         "status": "1"                     },                     {                         "name": "administration.users",                         "status": "1"                     },                     {                         "name": "configuration.event_correlation",                         "status": "1"                     },                      {                         "name": "reports.action_log",                         "status": "1"                     },                     {                         "name": "reports.audit",                         "status": "1"                     },                     {                         "name": "reports.system_info",                         "status": "1"                     }                 ],                 "ui.default_access": "1",                 "services.read.mode": "1",                 "services.read.list": [],                 "services.read.tag": {                     "tag": "",                     "value": ""                 },                 "services.write.mode": "1",                 "services.write.list": [],                 "services.write.tag": {                     "tag": "",                     "value": ""                 },                 "modules": [],                 "modules.default_access": "1",                 "api.access": "1",                 "api.mode": "0",                 "api": [],                 "actions": [                     {                         "name": "edit_dashboards",                         "status": "1"                     },                     {                         "name": "edit_maps",                         "status": "1"                     },                     {                         "name": "acknowledge_problems",                         "status": "1"                     },                     {                         "name": "close_problems",                         "status": "1"                     },                     {                         "name": "change_severity",                         "status": "1"                     },                     {                         "name": "add_problem_comments",                         "status": "1"                     },                     {                         "name": "execute_scripts",                         "status": "1"                     },                     {                         "name": "manage_api_tokens",                         "status": "1"                     },                     {                         "name": "edit_maintenance",                         "status": "1"                     },                     {                         "name": "manage_scheduled_reports",                         "status": "1"                     },                     {                         "name": "manage_sla",                         "status": "1"                     }                                     ],                 "actions.default_access": "1"             }         }     ],     "id": 1 } ```

en-us	#### Retrieving template dashboards  Retrieve all template dashboards with widgets for a specified template.  Request:  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.get",     "params": {         "output": "extend",         "selectPages": "extend",         "templateids": "10001"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dashboardid": "23",             "name": "Docker overview",             "templateid": "10001",             "display_period": "30",             "auto_start": "1",             "uuid": "6dfcbe0bc5ad400ea9c1c2dd7649282f",             "pages": [                 {                     "dashboard_pageid": "1",                     "name": "",                     "display_period": "0",                     "widgets": [                         {                             "widgetid": "220",                             "type": "graph",                             "name": "",                             "x": "0",                             "y": "0",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1125"                                 }                             ]                         },                         {                             "widgetid": "221",                             "type": "graph",                             "name": "",                             "x": "12",                             "y": "0",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1129"                                 }                             ]                         },                         {                             "widgetid": "222",                             "type": "graph",                             "name": "",                             "x": "0",                             "y": "5",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1128"                                 }                             ]                         },                         {                             "widgetid": "223",                             "type": "graph",                             "name": "",                             "x": "12",                             "y": "5",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1126"                                 }                             ]                         },                         {                             "widgetid": "224",                             "type": "graph",                             "name": "",                             "x": "0",                             "y": "10",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1127"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 1 } ```
ja	#### テンプレート ダッシュボードの取得  指定されたテンプレートのウィジェットを含むすべてのテンプレート ダッシュボードを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "templatedashboard.get",     "params": {         "output": "extend",         "selectPages": "extend",         "templateids": "10001"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "dashboardid": "23",             "name": "Docker overview",             "templateid": "10001",             "display_period": "30",             "auto_start": "1",             "uuid": "6dfcbe0bc5ad400ea9c1c2dd7649282f",             "pages": [                 {                     "dashboard_pageid": "1",                     "name": "",                     "display_period": "0",                     "widgets": [                         {                             "widgetid": "220",                             "type": "graph",                             "name": "",                             "x": "0",                             "y": "0",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1125"                                 }                             ]                         },                         {                             "widgetid": "221",                             "type": "graph",                             "name": "",                             "x": "12",                             "y": "0",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1129"                                 }                             ]                         },                         {                             "widgetid": "222",                             "type": "graph",                             "name": "",                             "x": "0",                             "y": "5",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1128"                                 }                             ]                         },                         {                             "widgetid": "223",                             "type": "graph",                             "name": "",                             "x": "12",                             "y": "5",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1126"                                 }                             ]                         },                         {                             "widgetid": "224",                             "type": "graph",                             "name": "",                             "x": "0",                             "y": "10",                             "width": "12",                             "height": "5",                             "view_mode": "0",                             "fields": [                                 {                                     "type": "6",                                     "name": "graphid",                                     "value": "1127"                                 }                             ]                         }                     ]                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving templates by name  Retrieve all data about two templates named "Linux" and "Windows".  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.get",     "params": {         "output": "extend",         "filter": {             "host": [                 "Linux",                 "Windows"             ]         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxy_hostid": "0",             "host": "Linux",             "status": "3",             "disable_until": "0",             "error": "",             "available": "0",             "errors_from": "0",             "lastaccess": "0",             "ipmi_authtype": "0",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "ipmi_disable_until": "0",             "ipmi_available": "0",             "snmp_disable_until": "0",             "snmp_available": "0",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "ipmi_errors_from": "0",             "snmp_errors_from": "0",             "ipmi_error": "",             "snmp_error": "",             "jmx_disable_until": "0",             "jmx_available": "0",             "jmx_errors_from": "0",             "jmx_error": "",             "name": "Linux",             "flags": "0",             "templateid": "10001",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "tls_psk_identity": "",             "tls_psk": "",             "uuid": "282ffe33afc74cccaf1524d9aa9dc502"         },         {             "proxy_hostid": "0",             "host": "Windows",             "status": "3",             "disable_until": "0",             "error": "",             "available": "0",             "errors_from": "0",             "lastaccess": "0",             "ipmi_authtype": "0",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "ipmi_disable_until": "0",             "ipmi_available": "0",             "snmp_disable_until": "0",             "snmp_available": "0",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "ipmi_errors_from": "0",             "snmp_errors_from": "0",             "ipmi_error": "",             "snmp_error": "",             "jmx_disable_until": "0",             "jmx_available": "0",             "jmx_errors_from": "0",             "jmx_error": "",             "name": "Windows",             "flags": "0",             "templateid": "10081",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "tls_psk_identity": "",             "tls_psk": "",             "uuid": "522d17e1834049be879287b7c0518e5d"         }     ],     "id": 1 } ```
ja	#### 名前によるテンプレートの取得  "Linux"と"Windows"という名前の 2 つのテンプレートに関するすべてのデータを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "template.get",     "params": {         "output": "extend",         "filter": {             "host": [                 "Linux",                 "Windows"             ]         }     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "proxy_hostid": "0",             "host": "Linux",             "status": "3",             "disable_until": "0",             "error": "",             "available": "0",             "errors_from": "0",             "lastaccess": "0",             "ipmi_authtype": "0",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "ipmi_disable_until": "0",             "ipmi_available": "0",             "snmp_disable_until": "0",             "snmp_available": "0",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "ipmi_errors_from": "0",             "snmp_errors_from": "0",             "ipmi_error": "",             "snmp_error": "",             "jmx_disable_until": "0",             "jmx_available": "0",             "jmx_errors_from": "0",             "jmx_error": "",             "name": "Linux",             "flags": "0",             "templateid": "10001",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "tls_psk_identity": "",             "tls_psk": "",             "uuid": "282ffe33afc74cccaf1524d9aa9dc502"         },         {             "proxy_hostid": "0",             "host": "Windows",             "status": "3",             "disable_until": "0",             "error": "",             "available": "0",             "errors_from": "0",             "lastaccess": "0",             "ipmi_authtype": "0",             "ipmi_privilege": "2",             "ipmi_username": "",             "ipmi_password": "",             "ipmi_disable_until": "0",             "ipmi_available": "0",             "snmp_disable_until": "0",             "snmp_available": "0",             "maintenanceid": "0",             "maintenance_status": "0",             "maintenance_type": "0",             "maintenance_from": "0",             "ipmi_errors_from": "0",             "snmp_errors_from": "0",             "ipmi_error": "",             "snmp_error": "",             "jmx_disable_until": "0",             "jmx_available": "0",             "jmx_errors_from": "0",             "jmx_error": "",             "name": "Windows",             "flags": "0",             "templateid": "10081",             "description": "",             "tls_connect": "1",             "tls_accept": "1",             "tls_issuer": "",             "tls_subject": "",             "tls_psk_identity": "",             "tls_psk": "",             "uuid": "522d17e1834049be879287b7c0518e5d"         }     ],     "id": 1 } ```

en-us	#### Retrieving the version of the API  Retrieve the version of the Zabbix API.  Request:  ```json {     "jsonrpc": "2.0",     "method": "apiinfo.version",     "params": [],     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": "4.0.0",     "id": 1 } ```
ja	#### APIバージョンの取得  Zabbix APIのバージョンを取得します。  リクエスト:  ```json {     "jsonrpc": "2.0",     "method": "apiinfo.version",     "params": [],     "id": 1 } ```  レスポンス:  ```json {     "jsonrpc": "2.0",     "result": "4.0.0",     "id": 1 } ```

en-us	#### Retrieving trigger events  Retrieve the latest events from trigger "13926."  Request:  ```json {     "jsonrpc": "2.0",     "method": "event.get",     "params": {         "output": "extend",         "select_acknowledges": "extend",         "selectTags": "extend",         "selectSuppressionData": "extend",         "objectids": "13926",         "sortfield": ["clock", "eventid"],         "sortorder": "DESC"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "9695",             "source": "0",             "object": "0",             "objectid": "13926",             "clock": "1347970410",             "value": "1",             "acknowledged": "1",             "ns": "413316245",             "name": "MySQL is down",             "severity": "5",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "acknowledges": [                 {                     "acknowledgeid": "1",                     "userid": "1",                     "eventid": "9695",                     "clock": "1350640590",                     "message": "Problem resolved.\n\r----[BULK ACKNOWLEDGE]----",                     "action": "6",                     "old_severity": "0",                     "new_severity": "0",                     "username": "Admin",                     "name": "Zabbix",                     "surname": "Administrator"                 }             ],             "suppression_data": [                 {                     "maintenanceid": "15",                     "suppress_until": "1472511600"                 }             ],             "suppressed": "1",             "tags": [                 {                     "tag": "service",                     "value": "mysqld"                 },                 {                     "tag": "error",                     "value": ""                 }             ]         },         {             "eventid": "9671",             "source": "0",             "object": "0",             "objectid": "13926",             "clock": "1347970347",             "value": "0",             "acknowledged": "0",             "ns": "0",             "name": "Unavailable by ICMP ping",             "severity": "4",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "acknowledges": [],             "suppression_data": [],             "suppressed": "0",             "tags": []         }     ],     "id": 1 } ```
ja	#### トリガーイベントの取得  トリガー"13926"から最新のイベントを取得します。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "event.get",     "params": {         "output": "extend",         "select_acknowledges": "extend",         "selectTags": "extend",         "selectSuppressionData": "extend",         "objectids": "13926",         "sortfield": ["clock", "eventid"],         "sortorder": "DESC"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "9695",             "source": "0",             "object": "0",             "objectid": "13926",             "clock": "1347970410",             "value": "1",             "acknowledged": "1",             "ns": "413316245",             "name": "MySQL is down",             "severity": "5",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "acknowledges": [                 {                     "acknowledgeid": "1",                     "userid": "1",                     "eventid": "9695",                     "clock": "1350640590",                     "message": "Problem resolved.\n\r----[BULK ACKNOWLEDGE]----",                     "action": "6",                     "old_severity": "0",                     "new_severity": "0",                     "username": "Admin",                     "name": "Zabbix",                     "surname": "Administrator"                 }             ],             "suppression_data": [                 {                     "maintenanceid": "15",                     "suppress_until": "1472511600"                 }             ],             "suppressed": "1",             "tags": [                 {                     "tag": "service",                     "value": "mysqld"                 },                 {                     "tag": "error",                     "value": ""                 }             ]         },         {             "eventid": "9671",             "source": "0",             "object": "0",             "objectid": "13926",             "clock": "1347970347",             "value": "0",             "acknowledged": "0",             "ns": "0",             "name": "Unavailable by ICMP ping",             "severity": "4",             "r_eventid": "0",             "c_eventid": "0",             "correlationid": "0",             "userid": "0",             "opdata": "",             "acknowledges": [],             "suppression_data": [],             "suppressed": "0",             "tags": []         }     ],     "id": 1 } ```

en-us	#### Retrieving trigger problem events  Retrieve recent events from trigger "15112."  Request:  ```json {     "jsonrpc": "2.0",     "method": "problem.get",     "params": {         "output": "extend",         "selectAcknowledges": "extend",         "selectTags": "extend",         "selectSuppressionData": "extend",         "objectids": "15112",         "recent": "true",         "sortfield": ["eventid"],         "sortorder": "DESC"     },     "auth": "67f45d3eb1173338e1b1647c4bdc1916",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "1245463",             "source": "0",             "object": "0",             "objectid": "15112",             "clock": "1472457242",             "ns": "209442442",             "r_eventid": "1245468",             "r_clock": "1472457285",             "r_ns": "125644870",             "correlationid": "0",             "userid": "1",             "name": "Zabbix agent on localhost is unreachable for 5 minutes",             "acknowledged": "1",             "severity": "3",             "opdata": "",             "acknowledges": [                 {                     "acknowledgeid": "14443",                     "userid": "1",                     "eventid": "1245463",                     "clock": "1472457281",                     "message": "problem solved",                     "action": "6",                     "old_severity": "0",                     "new_severity": "0"                 }             ],             "suppression_data": [                 {                     "maintenanceid": "15",                     "suppress_until": "1472511600"                 }             ],             "suppressed": "1",             "tags": [                 {                     "tag": "test tag",                     "value": "test value"                 }             ]         }     ],     "id": 1 } ```
ja	#### トリガーの障害イベント取得  トリガー"15112"から最近のイベントを取得します。  Request:  ```json {     "jsonrpc": "2.0",     "method": "problem.get",     "params": {         "output": "extend",         "selectAcknowledges": "extend",         "selectTags": "extend",         "selectSuppressionData": "extend",         "objectids": "15112",         "recent": "true",         "sortfield": ["eventid"],         "sortorder": "DESC"     },     "auth": "67f45d3eb1173338e1b1647c4bdc1916",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "eventid": "1245463",             "source": "0",             "object": "0",             "objectid": "15112",             "clock": "1472457242",             "ns": "209442442",             "r_eventid": "1245468",             "r_clock": "1472457285",             "r_ns": "125644870",             "correlationid": "0",             "userid": "1",             "name": "Zabbix agent on localhost is unreachable for 5 minutes",             "acknowledged": "1",             "severity": "3",             "opdata": "",             "acknowledges": [                 {                     "acknowledgeid": "14443",                     "userid": "1",                     "eventid": "1245463",                     "clock": "1472457281",                     "message": "problem solved",                     "action": "6",                     "old_severity": "0",                     "new_severity": "0"                 }             ],             "suppression_data": [                 {                     "maintenanceid": "15",                     "suppress_until": "1472511600"                 }             ],             "suppressed": "1",             "tags": [                 {                     "tag": "test tag",                     "value": "test value"                 }             ]         }     ],     "id": 1 } ```

en-us	#### Retrieving triggers in problem state  Retrieve the ID, name and severity of all triggers in problem state and sort them by severity in descending order.  Request:  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "output": [             "triggerid",             "description",             "priority"         ],         "filter": {             "value": 1         },         "sortfield": "priority",         "sortorder": "DESC"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "13907",             "description": "Zabbix self-monitoring processes < 100% busy",             "priority": "4"         },         {             "triggerid": "13824",             "description": "Zabbix discoverer processes more than 75% busy",             "priority": "3"         }     ],     "id": 1 } ```
ja	#### 障害状態のトリガーの取得  障害状態にあるすべてのトリガーの ID、名前、深刻度を取得し、深刻度の降順で並べ替えます。  リクエスト :  ```json {     "jsonrpc": "2.0",     "method": "trigger.get",     "params": {         "output": [             "triggerid",             "description",             "priority"         ],         "filter": {             "value": 1         },         "sortfield": "priority",         "sortorder": "DESC"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  レスポンス :  ```json {     "jsonrpc": "2.0",     "result": [         {             "triggerid": "13907",             "description": "Zabbix self-monitoring processes < 100% busy",             "priority": "4"         },         {             "triggerid": "13824",             "description": "Zabbix discoverer processes more than 75% busy",             "priority": "3"         }     ],     "id": 1 } ```

en-us	#### Retrieving user data  Retrieve data of a user with ID "12".  Request:  ```json {     "jsonrpc": "2.0",     "method": "user.get",     "params": {         "output": ["userid", "username"],         "selectRole": "extend",         "userids": "12"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {   "jsonrpc": "2.0",   "result": [       {           "userid": "12",           "username": "John",           "role": {               "roleid": "5",               "name": "Operator",               "type": "1",               "readonly": "0"           }       }   ],   "id": 1 } ```
ja	#### ユーザーデータ取得  ID"12"のユーザーのデータを取得します  Request:  ```json {     "jsonrpc": "2.0",     "method": "user.get",     "params": {         "output": ["userid", "username"],         "selectRole": "extend",         "userids": "12"     },     "auth": "038e1d7b1735c6a5436ee9eae095879e",     "id": 1 } ```  Response:  ``` {.java} {   "jsonrpc": "2.0",   "result": [       {           "userid": "12",           "username": "John",           "role": {               "roleid": "5",               "name": "Operator",               "type": "1",               "readonly": "0"           }       }   ],   "id": 1 } ```