アプリケーション設定
以下に、[アプリケーション設定]で使用可能なオプションを示します。
nfa1000
以下に、[アプリケーション設定]で使用可能なオプションを示します。
詳細情報:
システム ステータスの表示すべてのアプリケーション設定の読み取り
リソース
URI http://<nfa odata host>:<nfa odata port>/odata/api/applicationSettings
メソッド
GET
サンプル リクエスト
http://127.0.0.1:8981/odata/api/applicationSettings
サンプル レスポンス
{ "@odata.context": "$metadata#applicationSettings", "value": [ { "Parameter": "agentAWOLLimit", "Label": "Interface Data Absence Limit", "Value": "4h" }, { "Parameter": "AppMap_TCPRebasePort", "Label": "TCP Rebase Port", "Value": "9000" }, { "Parameter": "AppMap_TOSMask", "Label": "ToS Mask", "Value": "255" }, { "Parameter": "AppMap_UDPRebasePort", "Label": "UDP Rebase Port", "Value": "8000" }, { "Parameter": "autoEnableInterfaces", "Label": "Auto-Enable Interfaces", "Value": "True" }, { "Parameter": "defaultTZ", "Label": "Default Time Zone", "Value": "GMT" }, { "Parameter": "DNSDomains", "Label": "DNS Domains", "Value": "" }, { "Parameter": "dropToZero", "Label": "Show Trendline Zeroes", "Value": "False" }, { "Parameter": "emailFromAddress", "Label": "From Address", "Value": "<no default>" }, { "Parameter": "emailSMTPServer", "Label": "SMTP Server", "Value": "<no default>" } ], "@odata.nextLink": "http://localhost:8981/odata/api/applicationSettings?$skiptoken=10"}
特定のアプリケーション設定の読み取り
リソース
URI http://<nfa odata host>:<nfa odata port>/odata/api/applicationSettings('<Application Setting's Parameter name>')
メソッド
GET
サンプル リクエスト
http://127.0.0.1:8981/odata/api/applicationSettings('AppMap_TCPRebasePort')
サンプル レスポンス
{ "@odata.context": "$metadata#applicationSettings", "Parameter": "AppMap_TCPRebasePort", "Label": "TCP Rebase Port", "Value": "9000"}
アプリケーション設定の編集
リソース
URI http://<nfa odata host>:<nfa odata port>/odata/api/applicationSettings('<Application Setting's Parameter name>')
メソッド
PATCH
ペイロード
{"Value": "<Enter the new value>"}
サンプル リクエスト
http://127.0.0.1:8981/odata/api/applicationSettings('showNotes')
サンプル ペイロード
{"Value": "False"}
サンプル レスポンス
この API に対するレスポンスはありません。