Skip to main content

1E 23.11 (SaaS)

Nomad.GetVariable

Method

GetVariable

Module

Nomad

Library

1E

Action

Gets the value of the given Nomad "variable".

Parameters

VariableName (string): Name of the variable to get.

A variable can be any piece of info about Nomad such as a registry setting or even some computed value based on the current state of Nomad. This API is meant to be a flexible way of getting info out from Nomad which can be extended in future without breaking any COM interfaces. Currently the following three are the only supported variables:

  1. CacheAvailableBytes: The disk space currently available to Nomad for its cache in bytes.

  2. CacheUsedBytes: The disk space currently used by Nomad.

  3. SSDEnabled: The value of registry setting "SSDEnabled".

Return values

Value (integer): The value of the requested variable.

The type depends on the variable in question, although the currently supported variables are all numeric.

Example

Get the current value of Nomad setting "SSDEnabled":

Nomad.GetVariable(VariableName: "SSDEnabled");

Platforms

  • Windows

Notes