Cancel Maintenance using API
You cancel the maintenance of an Airflow Python environment setup and all the objects related to the session will be discarded and deleted.
To cancel a maintenance, call DELETE on
/admin/airflow/env/maintenance:
curl -X DELETE \ "https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1/admin/airflow/env/maintenance" \ -H "Authorization: Bearer ${CDE_TOKEN}" \ -H "accept: application/json"To ensure that the maintenance has been cancelled, the maintenance status must be checked and the request must fail with a 404. This may take seconds or up to a few minutes. This indicates that no maintenance session is ongoing. For example:
curl -X GET \ "https://pmjkrgn5.cde-czlmkz4y.na-01.xvp2-7p8o.cloudera.site/dex/api/v1/admin/airflow/env/maintenance/status" \ -H "Authorization: Bearer ${CDE_TOKEN}" \ -H "accept: application/json"