2023年7月11日 星期二

airflow api

 # seting the 

airflow_api_auth_backends: 'airflow.api.auth.backend.basick_auth'




# Test

curl -X GET  --user "airflow:1qaz2WSX" "https://airflow-dev.armor.hinet.net/api/v1/pools"


curl -X PATCH 'https://airflow-dev.armor.hinet.net/api/v1/dags/report_backup?update_mask=is_paused' \

-H 'Content-Type: application/json' \

--user "airflow:1qaz2WSX" \

-d '{

    "is_paused": true

}'


# ref setting airflow.cfg

airflow_api_auth_backends: 'airflow.api.auth.backend.basick_auth


# https://stackoverflow.com/questions/61329923/apache-airflow-rest-api-authentication

# https://airflow.apache.org/docs/apache-airflow/1.10.12/howto/set-config.html'

#https://airflow-dev.armor.hinet.net/redoc

沒有留言:

張貼留言