Show Deployment Run Details

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

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

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" -H 'Cookie: qbol_user_id=<user id>' \ -d "deployment_id": <deployment_id>
'https://api.qubole.com/api/v1.2/airflow_deployment/(<cluster_label> or <cluster_id>)' \

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" -H 'Cookie: qbol_user_id=2' \ -d "deployment_id": 4
'https://api.qubole.com/api/v1.2/airflow_deployment/7' \

Sample Response

{
   "id": 4,
   "type": "airflow_deployment_run",
   "attributes": {
       "branch": "master",
       "repo_url": "https://github.com/<user account>/<repo name>",
       "status": "success",
       "cluster_id": 7,
       "commit_message": "Update qubole-airflow.yaml",
       "commit_id": "902fef2ccb6781afa49e6479ea6bb0ec99614987",
       "created_at": "2020-07-13T00:11:35Z",
       "updated_at": "2020-07-13T00:12:11Z",
       "owner": "<user name>"
  }
}

Note

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