diff --git a/doc/17-language-reference.md b/doc/17-language-reference.md index 9dbb0de03..12a8dd908 100644 --- a/doc/17-language-reference.md +++ b/doc/17-language-reference.md @@ -407,10 +407,10 @@ Constant | Description --------------------|------------------- Vars |**Read-write.** Contains a dictionary with global custom attributes. Not set by default. NodeName |**Read-write.** Contains the cluster node name. Set to the local hostname by default. +Environment |**Read-write**. The name of the Icinga environment. Included in the SNI host name when making outbound connections. Defaults to `production`. RunAsUser |**Read-write.** Defines the user the Icinga 2 daemon is running as. Set in the Icinga 2 sysconfig. RunAsGroup |**Read-write.** Defines the group the Icinga 2 daemon is running as. Set in the Icinga 2 sysconfig. MaxConcurrentChecks |**Read-write.** The number of max checks run simultaneously. Defaults to `512`. -ApiEnvironment |**Read-write**. The name of the Icinga environment for ApiListener. Included in the SNI host name when making outbound connections. Defaults to `production`. ApiBindHost |**Read-write.** Overrides the default value for the ApiListener `bind_host` attribute. Not set by default. ApiBindPort |**Read-write.** Overrides the default value for the ApiListener `bind_port` attribute. Not set by default. diff --git a/lib/remote/apilistener.ti b/lib/remote/apilistener.ti index 239ae9ce3..05a330990 100644 --- a/lib/remote/apilistener.ti +++ b/lib/remote/apilistener.ti @@ -49,7 +49,7 @@ class ApiListener : ConfigObject }; [config] String environment { - default {{{ return Application::GetConst("ApiEnvironment"); }}} + default {{{ return Application::GetConst("Environment"); }}} }; [config] bool accept_config;