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

housekeeping.update

説明

object housekeeping.update(object housekeeping)

このメソッドは、既存のハウスキーピング設定を更新するためのものです。

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

パラメータ

(object) 更新するハウスキーピングプロパティ

戻り値

(array) 更新されたパラメーター名の配列を返します。

リクエスト:

{
           "jsonrpc": "2.0",
           "method": "housekeeping.update",
           "params": {
               "hk_events_mode": "1",
               "hk_events_trigger": "200d",
               "hk_events_internal": "2d",
               "hk_events_discovery": "2d"
           },
           "id": 1
       }

レスポンス:

{
           "jsonrpc": "2.0",
           "result": [
               "hk_events_mode",
               "hk_events_trigger",
               "hk_events_internal",
               "hk_events_discovery"
           ],
           "id": 1
       }

ソース

CHousekeeping::update() in ui/include/classes/api/services/CHousekeeping.php.