Airflow URI format

URI definition for Airflow follows this standard:

Identifier:

  • Namespace: airflow://{host}:{port}
    • Scheme = airflow
    • Authority = {host}:{port}
  • Unique name:
    • For a DAG: {dagName}
    • For a Task: {dagName}.{taskName}
  • URI definition:
    • For a DAG: airflow://{host}:{port}/{dagName}
    • For a Task: airflow://{host}:{port}/{dagName}.{taskName}

Parameters limitations:

  • host must start with a lowercase letter and include only lowercase letters, numbers, dash and dot (regex: [a-z][a-z0-9-.]+)
  • port must include only numbers
  • dagName and taskName must include only lowercase letters, uppercase letters, numbers, underscore, dot and dash (regex: [a-zA-Z0-9_.-]+)

Examples:

  • airflow://sifflet-ec2.eu-west-1:3333/DAG-ID.TASK-ID
  • airflow://airflow.example.com:8080/my-dag