Get Deployment Log

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

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

Required Role

A user with system-admin or system-user role, or read access to the 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>)/getlogs' /

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/115/getlogs' /

Sample Response

{
   "logs": {
       "config_validation": {
       "status": "success",
       "logs": "Config validation is running \nConfig validation was successful \n"
   },
   "package_installation": {
       "status": "success",
       "logs": "This step might take a few minutes...\nSkipping package installation as requirements file is not provided. \nPackage installation was successful \n"
   },
   "git_clone": {
       "status": "pending",
       "logs": null
   },
   "scripts_run": {
       "status": "pending",
       "logs": null
   },
   "copy_dags": {
       "status": "pending",
       "logs": null
   },
   "copy_plugins": {
        "status": "pending",
        "logs": null
    }
  }
}

Note

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