We currently have airflow DAGs running on an Astronomer cloud instance, and we’re trying to develop external functions that would eventually trigger these DAGs.
Making a call to the API would mean sending an HTTP request to:
https://[AIRFLOW-DOMAIN]/api/v1/[method to call]
[AIRFLOW-DOMAIN]: Use https://[your-base-domain]/[deployment-release-name]
Not sure if it was necessary, but also set an environment variable AIRFLOW__API__AUTH_BACKEND = airflow.api.auth.backend.default
The issue is, instead of getting 200 or 401 or 403 responses, we’d always get some HTML like below when testing out API calls via the Postman app. What am I missing? Thanks in advance!
Thanks for the response! The issue has been resolved on our end. It was a facepalm sort of miss on my part, and I’ll post a reply on what we did to address this (might be of help to others in the community).
When in fact, the instance where our DAGS were deployed looked like:
https://deployments.gcpXXXY.us-east4.astronomer.io/gravitational-flux-XXXX/airflow/
Thus, making an API call to - https://deployments.gcpXXXY.us-east4.astronomer.io/gravitational-flux-XXXX/airflow/api/v1/pools - worked perfectly fine!
@paolo.suarez - I’m glad to hear this was resolved on your end! Apologies if our documentation there wasn’t clear - we actually just pushed up some improvements to that doc that should help. Let us know if you hit any other issues.
FYI It looks like you’re running on Astronomer Nebula, which is an earlier edition of our Cloud service. For documentation specific to that product, go to: nebula.astronomer.io. The password is: nebula. That documentation site also has a Log In button (which is not currently on our homepage) as well as a link to the status page for Nebula specifically.
Hope that’s helpful If you’re interested in our newer products, don’t hesitate to reach out as well.