{% extends "airflow/master.html" %} {% block title %}Airflow - REST API Plugin{% endblock %} {% block head_css %} {{ super() }} {% endblock %} {% block body %} {% if rbac_authentication_enabled %} {% block navbar %}
{% include 'appbuilder/navbar.html' %}
{% endblock %} {%endif%}

Airflow REST API

Documentation

Versions

DAGs:

{% for dag in dags %} {% endfor %}
DAG IDIs Active
{{dag.dag_id}}{{dag.is_active}}

API Directory

Click on one of the links bellow to jump to the API form

APIs

{% for api_metadata in apis_metadata %}

{{api_metadata.name}}

{{api_metadata.description}}. Supports both http GET and POST methods.
{{api_metadata.http_method[0]}} {{airflow_webserver_base_url}}{{rest_api_endpoint}}?api={{api_metadata.name}}{% if api_metadata.http_method != 'POST' %}{% for argument in api_metadata.arguments %}{% if argument.name != 'set' %}&{{argument.name}}{% if argument.form_input_type != 'checkbox' %}=value{% endif %}{% endif %}{% if argument.form_input_type =='custom_input'%}&cmd={{argument.name}}{% for argument_data in argument.fields%}&{{argument_data.keys()[0]}}=value{%endfor%}{% endif %}{% endfor %}{% endif %}
{% if api_metadata.form_enctype %}
enctype={{api_metadata.form_enctype}}
{% endif %} {% if api_metadata.post_body_description %}
{{api_metadata.post_body_description}}
{% endif %}
Available in Airflow Version: {{api_metadata.airflow_version}}
{% if api_metadata.arguments|length > 0 or api_metadata.post_arguments|length > 0 %} {% for argument in api_metadata.arguments %} {% if argument.form_input_type == "custom_input"%} {% else %} {% endif %} {% endfor %} {% for argument in api_metadata.post_arguments %} {% endfor %} {% else %} No Arguments {% endif %}
Argument Name Input Required Description
{% if argument.form_input_type == "custom_input"%} {%endif%} {{argument.name}}: {% for argument_data in argument.fields%} {% for key,value in argument_data.items()%}

{{value}}:


{%endfor%} {%endfor%}
{{argument.required}} {{argument.description}}
{{argument.name}}: {{argument.required}} {{argument.description}}

{% endfor %}
{% endblock %} {% block tail %} {{ super() }} {% endblock %}