Paramètres d'application
Les options ci-dessous sont disponibles au niveau des paramètres d'application :
nfa1000
Les options ci-dessous sont disponibles au niveau des paramètres d'application :
Informations complémentaires :
Affichage du statut du systèmeLire toutes les paramètres d'application
URI de la ressource
http://<nfa odata host>:<nfa odata port>/odata/api/applicationSettings
Méthode
GET
Exemple de demande
http://127.0.0.1:8981/odata/api/applicationSettings
Exemple de réponse
{ "@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"}
Lire un paramètre d'application spécifique
URI de la ressource
http://<nfa odata host>:<nfa odata port>/odata/api/applicationSettings('<Application Setting's Parameter name>')
Méthode
GET
Exemple de demande
http://127.0.0.1:8981/odata/api/applicationSettings('AppMap_TCPRebasePort')
Exemple de réponse
{ "@odata.context": "$metadata#applicationSettings", "Parameter": "AppMap_TCPRebasePort", "Label": "TCP Rebase Port", "Value": "9000"}
Modifier un paramètre d'application
URI de la ressource
http://<nfa odata host>:<nfa odata port>/odata/api/applicationSettings('<Application Setting's Parameter name>')
Méthode
PATCH
Charge utile
{"Value": "<Enter the new value>"}
Exemple de demande
http://127.0.0.1:8981/odata/api/applicationSettings('showNotes')
Exemple de charge utile
{"Value": "False"}
Exemple de réponse
Cette API ne renvoie aucune réponse.