Skip to main content
Organization environment variables are available to Spark jobs and scripts at runtime. Names must start with a letter or underscore, contain only letters, numbers, and underscores, and are normalized to uppercase server-side.

listEnvironmentVariables()

List all organization environment variables. Values are decrypted server-side.

Return type: EnvironmentVariable[]


getEnvironmentVariable(name)

Get a single environment variable by name. Lookup is case-insensitive since names are stored uppercase. Returns undefined when not set.

setEnvironmentVariable(name, value)

Create or update an environment variable. Setting an existing name overwrites its value.

deleteEnvironmentVariable(options)

Delete an environment variable by id or name. Provide exactly one.
Throws an error if the named variable does not exist.