getVariable

fun getVariable(key: String): Any?

Retrieves an Airflow variable.

Return

The variable value, or null if the variable is not set.

Parameters

key

Variable key.

Throws

if the API call fails.