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.

list_environment_variables()

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

Return type: list[EnvironmentVariable]


get_environment_variable(name)

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

set_environment_variable(name, value)

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

delete_environment_variable(*, id=None, name=None)

Delete an environment variable by id or name. Provide exactly one, as a keyword argument.
Raises ValueError if the named variable does not exist.