4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Zabbi APIのJSONフォーマットのサンプルが分かりづらいからメモ

Last updated at Posted at 2015-01-23

タイトルの通りですが、Zabbix APIのドキュメントにあるリクエストのサンプル例が少ない気がしてるので、うまくいった例をメモしています。
ちなみに全てAPIバージョン2.2でしか試してません。

item.updateでまとめてitemのstatusを更新したい。

{
    "jsonrpc": "2.0",
    "method": "item.update",
    "params": [
		{"itemid": "10111","status": 0},
		{"itemid": "10112","status": 0},
		{"itemid": "10113","status": 0},
		{"itemid": "10114","status": 0}
	],
    "auth": "-",
    "id": 1
}

item.update
https://www.zabbix.com/documentation/2.2/manual/api/reference/item/update

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?