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_aggua_plugin-1.0.8.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

airflow_aggua_plugin-1.0.8-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file airflow_aggua_plugin-1.0.8.tar.gz.

File metadata

  • Download URL: airflow_aggua_plugin-1.0.8.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for airflow_aggua_plugin-1.0.8.tar.gz
Algorithm Hash digest
SHA256 050c79654403f5715cf7988897dd76cfc239c2eadc77bf7969574157b33f1f2d
MD5 6697ae502e536ce77418ded0b8a7b29d
BLAKE2b-256 1c92e70cbbea9bfc6f96c953ac5e25777dabcba7656cd5559b48b59ae7fefab5

See more details on using hashes here.

File details

Details for the file airflow_aggua_plugin-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_aggua_plugin-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e328bae789e27c677f74c7048d338294a8c70891225c23f30bf0526bb01b5c0a
MD5 a1b016d8c8ff0ba00ab955ae196f6807
BLAKE2b-256 eb16449d9b74fe8935ac2c420499b9f672c4fd5abcf3472899f29b598480362a

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