just/mocks_
mockzilla.org →
Catalog /ai /Apache Airflow REST API

Apache Airflow REST API

PROVIDER · Apache Airflow SPEC v2.5.3 · OpenAPI 3.0.3 MOCK · LIVE
▸ TRY IT
https://api.justmocks.com/apache-airflow
Open mock →

Mock the Apache Airflow REST API in seconds. Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects.

[01]

About

overview

Mock the Apache Airflow REST API as a turnkey Mockzilla sim with 73 OpenAPI endpoints, realistic JSON payloads, no upstream signup or sandbox keys. Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. Methods: 41x GET, 13x PATCH, 12x POST, 7x DELETE. Top resource groups: DAG, TaskInstance, DAGRun, Connection. Hit https://api.justmocks.com/apache-airflow for the Mockzilla API Explorer landing and per-endpoint sample requests.

Endpoints
73 across 18 resource groups
Methods
GET 41 · POST 12 · PATCH 13 · DEL 7 none deprecated
OpenAPI
3.0.3 spec version 2.5.3
Source spec
141 KB · YAML view raw →
[02]

Endpoints

73 operations · 18 resource groups
GET /config
Config
Get current configuration
GET /connections
Connection
List connections
POST /connections
Connection
Create a connection
POST /connections/test
Connection
Test a connection
Test a connection. New in version 2.2.0. Mocked via Mockzilla.
DEL /connections/{connection_id}
Connection
Delete a connection
GET /connections/{connection_id}
Connection
Get a connection
PATCH /connections/{connection_id}
Connection
Update a connection
GET /dagSources/{file_token}
DAG
Get a source code
Get a source code using file token.
GET /dagWarnings
DagWarning
List dag warnings
GET /dags
DAG
List DAGs
List DAGs in the database. dag_id_pattern can be set to match dags of a specific pattern
PATCH /dags
DAG
Update DAGs
Update DAGs of a given dag_id_pattern using UpdateMask. This endpoint allows specifying ~ as the dag_id_pattern to update all DAGs. New in version 2.3.0
DEL /dags/{dag_id}
DAG
Delete a DAG
Deletes all metadata related to the DAG, including finished DAG Runs and Tasks. Logs are not deleted. This action cannot be undone. New in version 2.2.0
GET /dags/{dag_id}
DAG
Get basic information about a DAG
Presents only information available in database (DAGModel). If you need detailed information, consider using GET /dags/{dag_id}/details. Available as a Mockzilla mock endpoint.
PATCH /dags/{dag_id}
DAG
Update a DAG
POST /dags/{dag_id}/clearTaskInstances
DAG
Clear a set of task instances
Clears a set of task instances associated with the DAG for a specified date range.
GET /dags/{dag_id}/dagRuns
DAGRun
List DAG runs
This endpoint allows specifying ~ as the dag_id to retrieve DAG runs for all DAGs.
POST /dags/{dag_id}/dagRuns
DAGRun
Trigger a new DAG run
DEL /dags/{dag_id}/dagRuns/{dag_run_id}
DAGRun
Delete a DAG run
GET /dags/{dag_id}/dagRuns/{dag_run_id}
DAGRun
Get a DAG run
PATCH /dags/{dag_id}/dagRuns/{dag_run_id}
DAGRun
Modify a DAG run
Modify a DAG run. New in version 2.2.0
POST /dags/{dag_id}/dagRuns/{dag_run_id}/clear
DAGRun
Clear a DAG run
Clear a DAG run. New in version 2.4.0
PATCH /dags/{dag_id}/dagRuns/{dag_run_id}/setNote
DAGRun
Update the DagRun note.
Update the manual user note of a DagRun. New in version 2.5.0. Mockzilla mock: no signup, no API key.
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances
TaskInstance
List task instances
This endpoint allows specifying ~ as the dag_id, dag_run_id to retrieve DAG runs for all DAGs and DAG runs.
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}
TaskInstance
Get a task instance
PATCH /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}
TaskInstance
Updates the state of a task instance
Updates the state for single task instance. New in version 2.5.0
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/links
TaskInstance
List extra links
List extra links for task instance.
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/listMapped
TaskInstance
List mapped task instances
Get details of all mapped task instances. New in version 2.3.0
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/logs/{task_try_number}
TaskInstance
Get logs
Get logs for a specific task instance and its try number. Served by the Mockzilla mock runtime.
PATCH /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/setNote
TaskInstance
Update the TaskInstance note.
Update the manual user note of a non-mapped Task Instance. New in version 2.5.0
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries
XCom
List XCom entries
This endpoint allows specifying ~ as the dag_id, dag_run_id, task_id to retrieve XCOM entries for for all DAGs, DAG runs and task instances. XCom values won't be returned as they can be large. Use this endpoint to get a list of XCom entries and then fetch individual entry to get value.
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{xcom_key}
XCom
Get an XCom entry
GET /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}
TaskInstance
Get a mapped task instance
Get details of a mapped task instance. New in version 2.3.0
PATCH /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}
TaskInstance
Updates the state of a mapped task instance
Updates the state for single mapped task instance. New in version 2.5.0
PATCH /dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/{map_index}/setNote
TaskInstance
Update the TaskInstance note.
Update the manual user note of a mapped Task Instance. New in version 2.5.0. Mocked via Mockzilla.
GET /dags/{dag_id}/dagRuns/{dag_run_id}/upstreamDatasetEvents
DAGRunDataset
Get dataset events for a DAG run
Get datasets for a dag run. New in version 2.4.0
GET /dags/{dag_id}/details
DAG
Get a simplified representation of DAG
The response contains many DAG attributes, so the response can be large. If possible, consider using GET /dags/{dag_id}.
GET /dags/{dag_id}/tasks
DAG
Get tasks for DAG
GET /dags/{dag_id}/tasks/{task_id}
DAG
Get simplified representation of a task
POST /dags/{dag_id}/updateTaskInstancesState
DAG
Set a state of task instances
Updates the state for multiple task instances simultaneously.
POST /dags/~/dagRuns/list
DAGRun
List DAG runs (batch)
This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it would run in to maximum HTTP request URL length limit.
POST /dags/~/dagRuns/~/taskInstances/list
TaskInstance
List task instances (batch)
List task instances from all DAGs and DAG runs. This endpoint is a POST to allow filtering across a large number of DAG IDs, where as a GET it would run in to maximum HTTP request URL length limits. Available as a Mockzilla mock endpoint.
GET /datasets
Dataset
List datasets
GET /datasets/events
Dataset
Get dataset events
Get dataset events
GET /datasets/{uri}
Dataset
Get a dataset
Get a dataset by uri.
GET /eventLogs
EventLog
List log entries
List log entries from event log.
GET /eventLogs/{event_log_id}
EventLog
Get a log entry
GET /health
Monitoring
Get instance status
Get the status of Airflow's metadatabase and scheduler. It includes info about metadatabase and last heartbeat of scheduler.
GET /importErrors
ImportError
List import errors
GET /importErrors/{import_error_id}
ImportError
Get an import error
GET /permissions
Permission
List permissions
Get a list of permissions. New in version 2.1.0. Mockzilla mock: no signup, no API key.
GET /plugins
Plugin
Get a list of loaded plugins
Get a list of loaded plugins. New in version 2.1.0
GET /pools
Pool
List pools
POST /pools
Pool
Create a pool
DEL /pools/{pool_name}
Pool
Delete a pool
GET /pools/{pool_name}
Pool
Get a pool
PATCH /pools/{pool_name}
Pool
Update a pool
GET /providers
Provider
List providers
Get a list of providers. New in version 2.1.0
GET /roles
Role
List roles
Get a list of roles. New in version 2.1.0
POST /roles
Role
Create a role
Create a new role. New in version 2.1.0
DEL /roles/{role_name}
Role
Delete a role
Delete a role. New in version 2.1.0. Served by the Mockzilla mock runtime.
GET /roles/{role_name}
Role
Get a role
Get a role. New in version 2.1.0
PATCH /roles/{role_name}
Role
Update a role
Update a role. New in version 2.1.0
GET /users
User
List users
Get a list of users. New in version 2.1.0
POST /users
User
Create a user
Create a new user with unique username and email. New in version 2.2.0
DEL /users/{username}
User
Delete a user
Delete a user with a specific username. New in version 2.2.0. Mocked via Mockzilla.
GET /users/{username}
User
Get a user
Get a user with a specific username. New in version 2.1.0
PATCH /users/{username}
User
Update a user
Update fields for a user. New in version 2.2.0
GET /variables
Variable
List variables
The collection does not contain data. To get data, you must get a single entity.
POST /variables
Variable
Create a variable
DEL /variables/{variable_key}
Variable
Delete a variable
GET /variables/{variable_key}
Variable
Get a variable
Get a variable by key.
PATCH /variables/{variable_key}
Variable
Update a variable
Update a variable by key. Available as a Mockzilla mock endpoint.
GET /version
Monitoring
Get version information