[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Function: sys.get_env\n\nRetrieves the value of the specified environment variable.\n\nIf the specified variable is not set, returns the default value instead.\n\nThe following built-in environment variables are supported:\n\nYou can also retrieve user-defined environment variables. For more\ninformation, see\n[Use environment variables](https://cloud.google.com/workflows/docs/use-environment-variables).\n\nArguments\n---------\n\nReturns\n-------\n\nThe value of the named environment variable, or the default if not set.\n\nRaised exceptions\n-----------------\n\nExamples\n--------\n\nFor more information, see\n[Built-in environment variables](https://cloud.google.com/workflows/docs/reference/environment-variables) \n\n```yaml\n# Retrieve value of specified environment variable\n# For example, returns \"us-central1\"\n- returnStep:\n return: ${sys.get_env(\"GOOGLE_CLOUD_LOCATION\")}\n```"]]