これは開発版のドキュメントを表示しています。内容が不完全な場合があります。
このページには自動翻訳されたコンテンツが含まれています。 誤りを見つけた場合は、その箇所を選択して Ctrl+Enter を押し、編集者に報告してください。

settings.get

説明

object settings.get(object parameters)

このメソッドは、指定されたパラメータに従って設定オブジェクトを取得することができます。

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

パラメータ

(object) 望ましい出力を定義するパラメータ。

このメソッドは1つのパラメータのみをサポートします。

パラメータ タイプ 説明
output query このパラメータはリファレンス解説で説明されています。

戻り値

(object) 設定オブジェクトを返します

リクエスト:

{
           "jsonrpc": "2.0",
           "method": "settings.get",
           "params": {
               "output": "extend"
           },
           "id": 1
       }

レスポンス:

{
           "jsonrpc": "2.0",
           "result": {
               "default_theme": "blue-theme",
               "search_limit": "1000",
               "max_in_table": "50",
               "server_check_interval": "10",
               "work_period": "1-5,09:00-18:00",
               "show_technical_errors": "0",
               "history_period": "24h",
               "period_default": "1h",
               "max_period": "2y",
               "severity_color_0": "97AAB3",
               "severity_color_1": "7499FF",
               "severity_color_2": "FFC859",
               "severity_color_3": "FFA059",
               "severity_color_4": "E97659",
               "severity_color_5": "E45959",
               "severity_name_0": "Not classified",
               "severity_name_1": "Information",
               "severity_name_2": "Warning",
               "severity_name_3": "Average",
               "severity_name_4": "High",
               "severity_name_5": "Disaster",
               "custom_color": "0",
               "ok_period": "5m",
               "blink_period": "2m",
               "problem_unack_color": "CC0000",
               "problem_ack_color": "CC0000",
               "ok_unack_color": "009900",
               "ok_ack_color": "009900",
               "problem_unack_style": "1",
               "problem_ack_style": "1",
               "ok_unack_style": "1",
               "ok_ack_style": "1",
               "discovery_groupid": "5",
               "default_inventory_mode": "-1",
               "alert_usrgrpid": "7",
               "snmptrap_logging": "1",
               "default_lang": "en_US",
               "default_timezone": "system",
               "login_attempts": "5",
               "login_block": "30s",
               "validate_uri_schemes": "1",
               "uri_valid_schemes": "http,https,ftp,file,mailto,tel,ssh",
               "x_frame_options": "SAMEORIGIN",
               "iframe_sandboxing_enabled": "1",
               "iframe_sandboxing_exceptions": "",
               "max_overview_table_size": "50",
               "connect_timeout": "3s",
               "socket_timeout": "3s",
               "media_type_test_timeout": "65s",
               "script_timeout": "60s",
               "item_test_timeout": "60s",
               "url": "",
               "report_test_timeout": "60s",
               "auditlog_enabled": "1",
               "auditlog_mode": "1",
               "ha_failover_delay": "1m",
               "geomaps_tile_provider": "OpenStreetMap.Mapnik",
               "geomaps_tile_url": "",
               "geomaps_max_zoom": "0",
               "geomaps_attribution": "",
               "vault_provider": "0",
               "timeout_zabbix_agent": "3s",
               "timeout_simple_check": "3s",
               "timeout_snmp_agent": "3s",
               "timeout_external_check": "3s",
               "timeout_db_monitor": "3s",
               "timeout_http_agent": "3s",
               "timeout_ssh_agent": "3s",
               "timeout_telnet_agent": "3s",
               "timeout_script": "3s"
           },
           "id": 1
       }

ソース

CSettings::get() in ui/include/classes/api/services/CSettings.php.