Get Deployment Status

GET /api/v1.2/airflow_deployment/(<cluster_label> or <cluster_id>)/getstatus

Use this API to receive deployment (on Airflow cluster) status.

Required Role

A user with system-admin or system-user role, or read access to cluster can run this API.

Syntax

curl -i -X GET -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \ -d "deployment_id": <deployment_id>
'https://api.qubole.com/api/v1.2/airflow_deployment/(<cluster_label> or <cluster_id>)/getstatus' /

Note

The above syntax uses https://api.qubole.com as the endpoint. For more information about endpoints to access QDS see Supported Qubole Endpoints on Different Cloud Providers.

Sample Query

curl -i -X GET -H "X-AUTH-TOKEN: $AUTH_TOKEN" -H "Content-Type: application/json" -H "Accept: application/json" \ -d "deployment_id": 33
'https://api.qubole.com/api/v1.2/airflow_deployment/7/getstatus' /

Sample Response

{
   "status": {
       "config_validation": {
           "status": "success",
           "message": "Config validation is running \nConfig validation was successful \n"
       },
       "package_installation": {
           "status": "success",
           "message": "This step might take a few minutes...\nSkipping package installation as requirements file is not provided. \nPackage installation was successful \n"
       },
       "git_clone": {
           "status": "success",
           "message": "Git clone is running \nGit clone was successful \n"
       },
       "scripts_run": {
           "status": "success",
           "message": "Scripts run is running \nScripts run was successful \n"
       },
           "copy_dags": {
           "status": "success",
           "message": "Copy dags is running \nCopy dags was successful \n"
       },
           "copy_plugins": {
           "status": "success",
           "message": "Copy plugins is running \nCopy plugins was successful \n"
       }
   }
}

Note

If you do not provide deployment_id (optional parameter), it fetches the status of the latest deployment.