--- title: "@ServersInEnvironment" ---
This is generated from the built in components of Otter 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your Otter instance to see exactly what operations are available.

Returns a list of all the servers in the specified environment name.

Script usage:

@ServersInEnvironment([EnvironmentName], [IncludeInactive])

Parameters:

NameDescription
EnvironmentNameThe name of the evironment. If not supplied, the current environment in context will be used.
IncludeInactiveIf true, include servers marked as inactive.