Viewing logs for custom operators and libraries using API

You can view the logs of a maintenance session and logs of an environment. You can view the maintenance logs when a maintenance is ongoing and if fails at some step. You can view logs of an active environment if some jobs behave unexpectedly on an active Airflow Python environment.

View logs of a maintenance session:
curl -X GET \
"https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1/admin/airflow/env/maintenance/logs" \
-H "Authorization: Bearer ${CDE_TOKEN}" \
-H "accept: application/json"
View the logs of an environment:
curl -X GET \
"https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1/admin/airflow/env/logs" \
-H "Authorization: Bearer ${CDE_TOKEN}" \
-H "accept: application/json"