Skip to content

apache-airflow-job

Manage Apache Airflow jobs (DAGs, environments, pools)

Authentication scope: fabric

List Apache Airflow jobs in a workspace

Terminal window
fabio apache-airflow-job list --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Read-only · Returns list

Show details of an Apache Airflow job

Terminal window
fabio apache-airflow-job show --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Read-only · Returns object

Create a new Apache Airflow job

Terminal window
fabio apache-airflow-job create --workspace <value> --name <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--name string Yes Display name
--description string No Optional description
--sensitivity-label string No Sensitivity label ID to apply on creation

Examples

Terminal window
fabio apache-airflow-job create --workspace $WS --name "DataOrchestrator"

Mutates state · Returns object

Update Apache Airflow job properties (name and/or description)

Terminal window
fabio apache-airflow-job update --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--name string No New display name
--description string No New description

Mutates state · Returns object

Delete an Apache Airflow job

Terminal window
fabio apache-airflow-job delete --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--hard-delete bool No Permanently delete (hard delete) instead of soft delete

Mutates state · Destructive · Returns void

Get the definition of an Apache Airflow job

Terminal window
fabio apache-airflow-job get-definition --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--decode bool No Decode base64 payloads inline (adds decodedPayload field)

Read-only · Long-running operation · Returns object

Update the definition of an Apache Airflow job

Terminal window
fabio apache-airflow-job update-definition --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--file string No Path to definition file
--content string No Inline definition content
--update-metadata bool No Also update item metadata from .platform file if present

Mutates state · Long-running operation · Returns void

Start the Airflow environment

Terminal window
fabio apache-airflow-job start-environment --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Examples

Terminal window
fabio apache-airflow-job start-environment --workspace $WS --id $AJ

Mutates state · Returns object

Stop the Airflow environment

Terminal window
fabio apache-airflow-job stop-environment --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Mutates state · Returns object

Get environment status

Terminal window
fabio apache-airflow-job get-environment --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Examples

Terminal window
fabio apache-airflow-job get-environment --workspace $WS --id $AJ

Read-only · Returns object

List installed libraries in the environment

Terminal window
fabio apache-airflow-job list-libraries --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Read-only · Returns list

Deploy requirements.txt to the environment

Terminal window
fabio apache-airflow-job deploy-requirements --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--file string No Path to requirements.txt file
--content string No Inline requirements content

Examples

Terminal window
fabio apache-airflow-job deploy-requirements --workspace $WS --id $AJ --content "pandas>=2.0\npyarrow>=14.0"

Mutates state · Returns object

Get environment settings

Terminal window
fabio apache-airflow-job get-settings --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Read-only · Returns object

Update environment settings

Terminal window
fabio apache-airflow-job update-settings --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--file string No Path to settings JSON file
--content string No Inline settings JSON

Mutates state · Returns void

Get environment compute information

Terminal window
fabio apache-airflow-job get-compute --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Read-only · Returns object

Update the compute configuration for the Airflow job environment (pool template)

Terminal window
fabio apache-airflow-job update-compute --workspace <value> --id <value> --pool-template-id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--pool-template-id string Yes Pool template ID to assign to this environment

Mutates state · Long-running operation · Returns void

List files (DAGs) in the Airflow job

Terminal window
fabio apache-airflow-job list-files --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID

Read-only · Returns list

Get (download) a file from the Airflow job

Terminal window
fabio apache-airflow-job get-file --workspace <value> --id <value> --path <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--path string Yes Remote file path

Read-only · Returns object

Upload a file to the Airflow job

Terminal window
fabio apache-airflow-job upload-file --workspace <value> --id <value> --path <value> --file <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--path string Yes Remote file path (destination)
--file string Yes Local file to upload

Examples

Terminal window
fabio apache-airflow-job upload-file --workspace $WS --id $AJ --path dags/daily_etl.py --source ./dags/daily_etl.py

Mutates state · Returns object

Delete a file from the Airflow job

Terminal window
fabio apache-airflow-job delete-file --workspace <value> --id <value> --path <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Apache Airflow job ID
--path string Yes Remote file path

Mutates state · Destructive · Returns void

Get workspace-level Airflow settings

Terminal window
fabio apache-airflow-job get-workspace-settings --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Read-only · Returns object

Update workspace-level Airflow settings

Terminal window
fabio apache-airflow-job update-workspace-settings --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--file string No Path to settings JSON file
--content string No Inline settings JSON

Mutates state · Returns void

List pool templates

Terminal window
fabio apache-airflow-job list-pool-templates --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID

Read-only · Returns list

Create a pool template

Terminal window
fabio apache-airflow-job create-pool-template --workspace <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--name string No Pool template name
--file string No Path to pool template JSON file
--content string No Inline pool template JSON

Mutates state · Returns object

Get a pool template

Terminal window
fabio apache-airflow-job get-pool-template --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Pool template ID

Read-only · Returns object

Delete a pool template

Terminal window
fabio apache-airflow-job delete-pool-template --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Pool template ID

Mutates state · Destructive · Returns void