Skip to main content

Exposes 'Aggua' Apache Airflow management capabilities via secure API

Project description

Airflow Aggua API - Plugin

Apache Airflow plugin that exposes aggua secure API endpoints similar to the official Airflow API (Stable) (1.0.0), providing richer capabilities. Apache Airflow version 2.1.0 or higher is necessary.

Requirements

Installation

python3 -m pip install airflow-aggua-api

Authentication

Airflow Aggua API plugin uses the same auth mechanism as Airflow API (Stable) (1.0.0). So, by default APIs exposed via this plugin respect the auth mechanism used by your Airflow webserver and also complies with the existing RBAC policies. Note that you will need to pass credentials data as part of the request. Here is a snippet from the official docs when basic authorization is used:

curl -X POST 'http://{AIRFLOW_HOST}:{AIRFLOW_PORT}/api/v1/dags/{dag_id}?update_mask=is_paused' \
-H 'Content-Type: application/json' \
--user "username:password" \
-d '{
    "is_paused": true
}'

Using the Custom API

All the supported endpoints are exposed in the below format:

http://{AIRFLOW_HOST}:{AIRFLOW_PORT}/api/v1/aggua/{ENDPOINT_NAME}

Following are the names of endpoints which are currently supported.

serializedDags

Description:
  • Get the serialized representation of a DAG.
Endpoint:
http://{AIRFLOW_HOST}:{AIRFLOW_PORT}/api/v1/aggua/serializedDags
Method:
  • GET
GET request query parameters :
  • limit (optional) - number - The number of items to return. default = 10.
  • offset (optional) - number - The number of items to skip before starting to collect the result set.
Endpoint:
http://{AIRFLOW_HOST}:{AIRFLOW_PORT}/api/v1/aggua/serializedDags/{dag_id}
Method:
  • GET
Get request path parameter:
  • dag_id - string - the DAG ID.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow_api_plugin-1.0.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

airflow_api_plugin-1.0.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file airflow_api_plugin-1.0.0.tar.gz.

File metadata

  • Download URL: airflow_api_plugin-1.0.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for airflow_api_plugin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 26cc5dc965d6993f0a210b2cb7261f5bc9a3aa127627d88c47f003275f74ac92
MD5 61be3fe66a4e2e47e9050c2b9a8a3bc1
BLAKE2b-256 8a21f1b32170c3899e9186ebb1c646be3428b44898d6f7d7ea1081c161c00e80

See more details on using hashes here.

File details

Details for the file airflow_api_plugin-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: airflow_api_plugin-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for airflow_api_plugin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 522559a26bbb0b98874cebf0348f74a5f6e3b65302e2b6b5919b15a93354169e
MD5 19922d4b445ec2c924abd440bc0d7ccf
BLAKE2b-256 099ce5aa9aa7dd30849279cf33e3caff8c2cdeada6ff193be998a5dac3569860

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page