Otter SDK Reference
Version:

GetVariablesAccessibleFromScope(int? serverId, int? environmentId, int? serverRoleId, int? jobId, int? hostId, string variableName, bool? expandRolesAndEnvironments, bool? includeSystemVariables) Method

Returns a sequence of all of the variables that are defined in the specified scope, or defined in a scope that logically contains the specified scope.

Syntax

public static IEnumerable<OtterVariable> GetVariablesAccessibleFromScope(int? serverId, int? environmentId, int? serverRoleId, int? jobId, int? hostId, string variableName, bool? expandRolesAndEnvironments, bool? includeSystemVariables)

Parameters

serverId
Type: int?

The server ID.

environmentId
Type: int?

The environment ID.

serverRoleId
Type: int?

The role ID.

jobId
Type: int?

The job ID.

hostId
Type: int?

The host ID.

variableName
Type: string

The variable name.

expandRolesAndEnvironments
Type: bool?

Value indicating whether roles and environments should be expanded.

includeSystemVariables
Type: bool?

Value indicating whether system variables should be included in the results.

Returns

Sequence of all of the variables that are accessible.